MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Save2

Method Save2

ogsr_engine/Layers/xrRender/PSLibrary.cpp:243–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243bool CPSLibrary::Save2(bool override) const
244{
245 if (!FS.path_exist("$game_particles$"))
246 {
247 Msg("! Path $game_particles$ is not configured! Cannot export particles to ltx");
248 }
249
250 // FS.dir_delete("$game_particles$", "", TRUE); ???
251
252 string_path fn;
253
254 for (auto& [m_Name, pe] : m_PEDs)
255 {
256 FS.update_path(fn, "$game_particles$", m_Name.c_str());
257 strcat(fn, ".pe");
258
259 if (FS.exist(fn) && !override)
260 continue;
261
262 CInifile ini(fn, FALSE, TRUE, TRUE);
263 pe->Save2(ini);
264 }
265
266 for (auto& [m_Name, pg] : m_PGDs)
267 {
268 FS.update_path(fn, "$game_particles$", m_Name.c_str());
269 strcat(fn, ".pg");
270
271 if (FS.exist(fn) && !override)
272 continue;
273
274 CInifile ini(fn, FALSE, TRUE, TRUE);
275 pg->Save2(ini);
276 }
277
278 return true;
279}
280
281void CPSLibrary::DumpTextures() const
282{

Callers 1

ExecuteMethod · 0.45

Calls 5

MsgFunction · 0.85
path_existMethod · 0.80
existMethod · 0.80
update_pathMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected