Call of Duty 5: FastFile Study
*** Article and investigation in early progress ***
<syntaxhighlight lang="cpp"> private void ModBuildFastFileDelegate(Process lastProcess) { if (this.LauncherModBuildFastFilesCheckBox.Checked) { Launcher.CopyFileSmart(Path.Combine(Launcher.GetModDirectory(this.modName), "mod.csv"), Path.Combine(Launcher.GetZoneSourceDirectory(), "mod.csv")); } this.LaunchProcessHelper(this.LauncherModBuildFastFilesCheckBox.Checked, new ProcessFinishedDelegate(this.ModBuildMoveModFastFileDelegate), Launcher.GetLanguage() + " -moddir " + this.modName + " mod"); } </syntaxhighlight>
<syntaxhighlight lang="cpp">
private void CompileLevelMoveFastFilesDelegate(Process lastProcess)
{
string zoneDirectory = Launcher.GetZoneDirectory();
string str2 = Launcher.mapSettings.GetBoolean("compile_modenabled") ? Launcher.GetModDirectory(Launcher.mapSettings.GetString("compile_modname")) : Path.Combine(Launcher.GetUsermapsDirectory(), this.mapName);
string str3 = this.mapName + ".ff";
string str4 = this.mapName + "_load.ff";
Launcher.MoveFile(Path.Combine(str3), Path.Combine(str3));
Launcher.MoveFile(Path.Combine(str3), Path.Combine(str3));
Launcher.MoveFile(Path.Combine(str4), Path.Combine(str4));
Launcher.Publish();
this.CompileLevelRunGameDelegate(lastProcess);
}
</syntaxhighlight>
<syntaxhighlight lang="cpp"> public static void CreateZoneSourceFiles(string mapName) { using (StreamWriter writer = new StreamWriter(GetZoneSourceFile(IsMP(writer.WriteLine("ignore,code_post_gfx_mp"); WriteLine("ignore,common_mp"); WriteLine("col_map_mp,maps/mp/" + writer.WriteLine("rawfile,maps/mp/" + writer.WriteLine("rawfile,maps/mp/" + writer.WriteLine("sound,common," + writer.WriteLine("sound,generic," + writer.WriteLine("sound,voiceovers," + writer.WriteLine("sound,multiplayer," + string GetRawDirectory(); </syntaxhighlight>
What I believe this means, with the little coding I know, I think in the fast file, they combine the d3dbsp with the "launcherCS.launcher" file, and they also combine the zone source directory with the d3dbsp, what i'm I missing?
The more I look into it, the more I realize the launcher.cs.launcher file is mostly just calling every string
<syntaxhighlight lang="cpp"> public static string GetRawMapsDirectory(); public static string GetRootDirectory(); etc.... </syntaxhighlight>