public NativeCompiler(NativeCompilerSettings settings, AbsolutePath sourcePath, AbsolutePath downloadsPath, AbsolutePath outputModListPath) : base(3, settings.ModListName, sourcePath, downloadsPath, outputModListPath) { CompilingGame = settings.CompilingGame.MetaData(); GamePath = CompilingGame.GameLocation(); NativeSettings = settings; }
public MO2Compiler(AbsolutePath sourcePath, AbsolutePath downloadsPath, string mo2Profile, AbsolutePath outputFile) : base(21, mo2Profile, sourcePath, downloadsPath, outputFile) { MO2Profile = mo2Profile; MO2Ini = SourcePath.Combine("ModOrganizer.ini").LoadIniFile(); var mo2game = (string)MO2Ini.General.gameName; CompilingGame = GameRegistry.Games.First(g => g.Value.MO2Name == mo2game).Value; GamePath = CompilingGame.GameLocation(); }