void C4SHead::CompileFunc(StdCompiler *pComp, bool fSection) { if (!fSection) { pComp->Value(mkNamingAdapt(Icon, "Icon", 18)); pComp->Value(mkNamingAdapt(mkStringAdaptMA(Title), "Title", "Default Title")); pComp->Value(mkNamingAdapt(mkStringAdaptMA(Loader), "Loader", "")); pComp->Value(mkNamingAdapt(mkStringAdaptMA(Font), "Font", "")); pComp->Value(mkNamingAdapt(mkArrayAdaptDM(C4XVer,0), "Version" )); pComp->Value(mkNamingAdapt(Difficulty, "Difficulty", 0)); pComp->Value(mkNamingAdapt(MaxPlayer, "MaxPlayer", C4S_MaxPlayerDefault)); pComp->Value(mkNamingAdapt(MaxPlayerLeague, "MaxPlayerLeague", MaxPlayer)); pComp->Value(mkNamingAdapt(MinPlayer, "MinPlayer", 0)); pComp->Value(mkNamingAdapt(SaveGame, "SaveGame", false)); pComp->Value(mkNamingAdapt(Replay, "Replay", false)); pComp->Value(mkNamingAdapt(Film, "Film", 0)); } pComp->Value(mkNamingAdapt(NoInitialize, "NoInitialize", false)); pComp->Value(mkNamingAdapt(RandomSeed, "RandomSeed", 0)); if (!fSection) { pComp->Value(mkNamingAdapt(mkStringAdaptMA(Engine), "Engine", "")); pComp->Value(mkNamingAdapt(mkStringAdaptMA(MissionAccess), "MissionAccess", "")); pComp->Value(mkNamingAdapt(Secret, "Secret", false)); pComp->Value(mkNamingAdapt(NetworkGame, "NetworkGame", false)); pComp->Value(mkNamingAdapt(NetworkRuntimeJoin, "NetworkRuntimeJoin", false)); pComp->Value(mkNamingAdapt(mkStrValAdapt(mkParAdapt(Origin, StdCompiler::RCT_All), C4InVal::VAL_SubPathFilename), "Origin", StdCopyStrBuf())); // windows needs backslashes in Origin; other systems use forward slashes if (pComp->isCompiler()) Origin.ReplaceChar(AltDirectorySeparator, DirectorySeparator); } }
void C4SHead::CompileFunc(StdCompiler *pComp, bool fSection) { if (!fSection) { pComp->Value(mkNamingAdapt(Icon, "Icon", 18)); pComp->Value( mkNamingAdapt(mkStringAdaptMA(Title), "Title", "Default Title")); pComp->Value(mkNamingAdapt(mkStringAdaptMA(Loader), "Loader", "")); pComp->Value(mkNamingAdapt(mkStringAdaptMA(Font), "Font", "")); pComp->Value(mkNamingAdapt(mkArrayAdaptDM(C4XVer, 0), "Version")); pComp->Value(mkNamingAdapt(Difficulty, "Difficulty", 0)); pComp->Value(mkNamingAdapt(EnableUnregisteredAccess, "Access", FALSE)); pComp->Value(mkNamingAdapt(MaxPlayer, "MaxPlayer", C4S_MaxPlayerDefault)); pComp->Value(mkNamingAdapt(MaxPlayerLeague, "MaxPlayerLeague", MaxPlayer)); pComp->Value(mkNamingAdapt(MinPlayer, "MinPlayer", 0)); pComp->Value(mkNamingAdapt(SaveGame, "SaveGame", FALSE)); pComp->Value(mkNamingAdapt(Replay, "Replay", FALSE)); pComp->Value(mkNamingAdapt(Film, "Film", FALSE)); pComp->Value(mkNamingAdapt(DisableMouse, "DisableMouse", FALSE)); pComp->Value(mkNamingAdapt(IgnoreSyncChecks, "IgnoreSyncChecks", FALSE)); } pComp->Value(mkNamingAdapt(NoInitialize, "NoInitialize", FALSE)); pComp->Value(mkNamingAdapt(RandomSeed, "RandomSeed", 0)); if (!fSection) { pComp->Value(mkNamingAdapt(mkStringAdaptMA(Engine), "Engine", "")); pComp->Value( mkNamingAdapt(mkStringAdaptMA(MissionAccess), "MissionAccess", "")); pComp->Value(mkNamingAdapt(NetworkGame, "NetworkGame", false)); pComp->Value( mkNamingAdapt(NetworkRuntimeJoin, "NetworkRuntimeJoin", false)); pComp->Value(mkNamingAdapt(ForcedGfxMode, "ForcedGfxMode", 0)); pComp->Value(mkNamingAdapt(ForcedFairCrew, "ForcedNoCrew", 0)); pComp->Value(mkNamingAdapt(FairCrewStrength, "DefCrewStrength", 0)); pComp->Value( mkNamingAdapt(ForcedAutoContextMenu, "ForcedAutoContextMenu", -1)); pComp->Value( mkNamingAdapt(ForcedControlStyle, "ForcedAutoStopControl", -1)); pComp->Value( mkNamingAdapt(mkStrValAdapt(mkParAdapt(Origin, StdCompiler::RCT_All), C4InVal::VAL_SubPathFilename), "Origin", StdCopyStrBuf())); // windows needs backslashes in Origin; other systems use forward slashes if (pComp->isCompiler()) Origin.ReplaceChar(AltDirectorySeparator, DirectorySeparator); } }