| 2103 | snprintf(buffer, sizeof(buffer), "%scontinue.sqh", (const char *)GetSaveDirectory()); |
| 2104 | |
| 2105 | ContinueInfo header; |
| 2106 | Person *veh = GWorld->GetRealPlayer(); |
| 2107 | AIUnit *unit = veh ? veh->Brain() : nullptr; |
| 2108 | if (unit) |
| 2109 | header.rank = unit->GetPerson()->GetRank(); |
| 2110 | else |
| 2111 | header.rank = GStats._campaign._playerInfo.rank; |
| 2112 | header.time = Glob.clock.GetTimeInYear(); |
| 2113 | header.island = Glob.header.worldname; |
| 2114 | if (CurrentTemplate.intel.briefingName.GetLength() > 0) |
| 2115 | header.mission = CurrentTemplate.intel.briefingName; |
| 2116 | else |
| 2117 | header.mission = Glob.header.filename; |
| 2118 | |
| 2119 | ParamArchiveSave ar(1); |
| 2120 | header.Serialize(ar); |
| 2121 | ar.Save(buffer); |
| 2122 | } |
| 2123 | */ |
| 2124 | |
| 2125 | bool ContinueSaved = true; |
| 2126 | |
| 2127 | void StartRandomCutscene(RString world) |
| 2128 | { |
| 2129 | if (world.GetLength() == 0) |
| 2130 | { |
| 2131 | world = GetMenuInitWorld(); |
| 2132 | } |
| 2133 | |
| 2134 | const ParamEntry& cls = Pars >> "CfgWorlds" >> world >> "cutscenes"; |
| 2135 | int n = cls.GetSize(); |