MCPcopy Create free account
hub / github.com/clementgallet/libTAS / finishSave

Method finishSave

src/library/checkpoint/SaveStateSaving.cpp:182–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182size_t SaveStateSaving::finishSave()
183{
184 size_t returned_size = 0;
185
186 /* We don't care about the following order of the saves, because code
187 * guarantees that at most one of those has non-zero queue size. */
188 returned_size += flushSave();
189 returned_size += flushCompressedSave();
190
191 /* Writing the last savestate pagemap chunk */
192 Utils::writeAll(pmfd, ss_pagemaps, ss_pagemap_i);
193 ss_pagemap_i = 0;
194
195 return returned_size;
196}
197
198}

Callers 2

writeAnAreaFunction · 0.80
writeSaveFilesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected