コード例 #1
0
ファイル: DRMNotifier.cs プロジェクト: DeaTh-G/Reloaded-II
 public static void PrintWarnings(BasicPeParser parser, Logger logger)
 {
     if (SteamStubScanner.HasSteamStub(parser))
     {
         logger.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.", logger.ColorYellowLight);
     }
 }
コード例 #2
0
    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);
    }