Commit Graph

19 Commits

Author SHA1 Message Date
Unknown W. Brackets
fd8a0612fa SaveState: Initialize some memory that is saved.
At the very least, will help them compress better.  Also good not to leak
random memory.
2018-06-22 21:29:18 -07:00
Unknown W. Brackets
16b11138b4 SaveState: Use latest version if initial missing.
This may be useful for debugging or if we decide on a buffer between
versions.
2018-06-14 18:29:55 -07:00
Unknown W. Brackets
349b36f000 SaveState: Correct free on error and uncomp format.
The uncompressed path had diverged, so refactor to avoid this in the
future.  Also, some errors weren't freeing all buffers.
2017-11-05 10:19:09 -08:00
Unknown W. Brackets
66ddf592b4 SaveState: Use malloc to avoid Android OOM crash.
We have exceptions disabled on Android, which is exactly where we need the
OOM check most.
2017-11-05 10:04:22 -08:00
Henrik Rydgård
6062262431 Add a comment explaining why a strncpy can't be replaced by truncate_cpy, because it would break savestates. 2017-03-13 13:55:29 +01:00
Henrik Rydgård
440e72d250 Clean up among the logs. Remove MASTER_LOG. 2017-03-06 13:10:23 +01:00
Henrik Rydgård
0e83a4c418 Fix savestates. Still don't understand quite how this broke though, it should work. Fixes #9365 2017-02-28 00:09:33 +01:00
Henrik Rydgard
fcbc20f240 Small changes to make Common and Core build under my preliminary UWP setup. 2017-02-24 18:59:41 +01:00
Florent Castelli
46fdc0f5f5 cmake: Move some cmake includes to ext 2016-12-18 22:17:41 +01:00
Unknown W. Brackets
6a5096e546 Save the game title in savestates, if available.
So that the UI can show them.  Old savestates still load fine, just don't
have the title.
2016-01-23 12:56:36 -08:00
Henrik Rydgard
6785a95384 Fix some memory leaks on corrupt savestates 2015-10-04 14:11:33 +02:00
Henrik Rydgard
58d3137b10 Get rid of a bunch of more uses of stat64 on Windows. 2015-09-23 09:48:55 +02:00
Unknown W. Brackets
cf0e337b27 Fix a memleak on an error condition. 2015-01-17 18:21:03 -08:00
Henrik Rydgard
215abfb951 Some cleanup in /Common 2014-09-06 10:47:25 +02:00
Henrik Rydgard
d6b51d4dfa Reduce some excessive logging 2014-06-09 19:40:05 +02:00
Unknown W. Brackets
f14361c3b8 Add a bunch more missing cstring includes. 2013-12-30 21:37:19 -08:00
Unknown W. Brackets
3e18027b8d Fix some type comparison warnings. 2013-10-19 14:57:45 -07:00
Unknown W. Brackets
607f19b6a4 Savestate tm differently for crossplat.
Especially Linux 32/64, but really all are nice.
2013-10-06 22:09:51 -07:00
Unknown W. Brackets
0ec09f9700 Move parts of ChunkFile into a cpp, cleanup. 2013-10-06 22:09:50 -07:00