public static void PrintWarnings(Console console) { if (SteamStubScanner.CheckCurrentProcess()) { console.WriteLine("Warning: Steam Stub (Embedded Steam DRM) found.\n" + "This means EXE is encrypted at launch, which may render many mods unusable.\n" + "It is recommended that you either remove the DRM using `Steamless` or launch Reloaded II via another mod loader " + "that can handle Steam DRM encryption such as Ultimate ASI Loader. https://github.com/Reloaded-Project/Reloaded-II/blob/master/Docs/InjectionMethods.md#synchronous-and-asynchronous \n" + "Note: If you are already launching through any of these methods, you may ignore this message.", console.ColorYellowLight); } }
public static DrmType CheckDrmAndNotify(BasicPeParser parser, Logger logger, out bool requiresDelayStart) { var drmType = DrmType.None; requiresDelayStart = false; if (SteamStubScanner.HasSteamStub(parser)) { logger?.WriteLineAsync("Warning: Steam Stub (Embedded Steam DRM) found.\n" + "This means EXE is encrypted at launch. Support for bypassing this DRM is experimental.\n" + "If you find issues, remove the DRM using `Steamless` or try using ASI Loader `Edit Application -> Deploy ASI Loader`", logger.ColorWarning); requiresDelayStart = true; drmType |= DrmType.SteamStub; } return(drmType); }