Exemplo n.º 1
0
        void ProcessUserconfig(IHaveInstalledState currentGame, bool force = true)
        {
            var checksum = userconfigProcessor.ProcessUserconfig(Path, currentGame.InstalledState.Directory,
                                                                 Mod.UserConfigChecksum, force);

            if (checksum != null)
            {
                Mod.UserConfigChecksum = checksum;
            }
        }
Exemplo n.º 2
0
 void TryProcessUserconfig(IHaveInstalledState currentGame, bool forceUserconfig)
 {
     try {
         ProcessUserconfig(currentGame, forceUserconfig);
     } catch (IOException e) {
         // It is extremly hard to figure out failure with the DirectoryCopy method :S
         // The Data property has info, but it is probably localized in the OS language.
         // If Overwrite is true, THhen the exception could be warranted.
         this.Logger().FormattedWarnException(e);
     } catch (Exception e) {
         Tools.InformUserError(null,
                               "Failure during processing of mod userconfig for " + Mod.Name, e);
     }
 }
Exemplo n.º 3
0
 void ProcessUserconfig(IHaveInstalledState currentGame, bool force = true) {
     var checksum = userconfigProcessor.ProcessUserconfig(Path, currentGame.InstalledState.Directory,
         Mod.UserConfigChecksum, force);
     if (checksum != null)
         Mod.UserConfigChecksum = checksum;
 }
Exemplo n.º 4
0
 void TryProcessUserconfig(IHaveInstalledState currentGame, bool forceUserconfig) {
     try {
         ProcessUserconfig(currentGame, forceUserconfig);
     } catch (IOException e) {
         // It is extremly hard to figure out failure with the DirectoryCopy method :S
         // The Data property has info, but it is probably localized in the OS language.
         // If Overwrite is true, THhen the exception could be warranted.
         this.Logger().FormattedWarnException(e);
     } catch (Exception e) {
         UserError.Throw(new InformationalUserError(e, null,
             "Failure during processing of mod userconfig for " + Mod.Name));
     }
 }
Exemplo n.º 5
0
 bool BuildMatch(IHaveInstalledState game) => BuildMatch(game.InstalledState.Version);