aboutsummaryrefslogtreecommitdiff
path: root/src/Savestate.cpp
Commit message (Collapse)AuthorAge
* Move all core types into namespaces (#1886)Jesse Talavera-Greenberg2023-11-25
| | | | | | | | * Reorganize namespaces - Most types are now moved into the `melonDS` namespace - Only good chance to do this for a while, since a big refactor is next * Fix the build
* update copyright yearsArisotura2023-11-04
|
* Implement in-memory savestates (#1693)Jesse Talavera-Greenberg2023-06-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor Savestate::Var{8,16,32,64} - They now delegate to VarArray - They're declared in the class header so they're likely to be inlined * First crack at refactoring Savestate to work in-memory - Well, third, but who's counting? * Implement Savestate::Finish * Remove the VersionMajor and VersionMinor fields - Instead, pull their values directly from the savestate buffer * Mark a new constructor as explicit * Rename Reset to Rewind * Fix a linebreak * Implement Savestate::Rewind * Add ROMManager::ClearBackupState * Refactor ROMManager to use the refactored Savestate * Capitalize "Least" - It was driving me nuts * Add a log call * Increase default Savestate buffer length to 32MB * Use C-style file I/O instead of C++-style - Dumping bytes to a file with C++'s standard library is a MONSTROUS PAIN IN THE ASS * Quote the savestate's file path for clarity * Write the savestate's length into the header * Add some extra logging calls * Fix section-loading * Remove the deprecated Savestate constructor * Convert a char* to a u32 with memcpy, not a cast * Fix section-handling in loads * Include <cstring> in Savestate.h - This was causing a build error on Linux
* pointless micro optimisationsRSDuck2023-04-28
|
* Introduce `Platform::Log` (#1640)Jesse Talavera-Greenberg2023-03-23
| | | | | | | | | | | | | * Add Platform::Log and Platform::LogLevel * Replace most printf calls with Platform::Log calls * Move a brace down * Move some log entries to one Log call - Some implementations of Log may assume a full line * Log the MAC address as LogLevel::Info
* update copyright headersArisotura2022-01-09
|
* Custom path support (#1333)Arisotura2022-01-07
| | | | | | | also including: * getting rid of shitty strings * all new, cleaner ROM handling code * base for DSi savestates * GBA slot addons (for now, memory cart)
* Fix some compiler warningsWaluigiWare642021-05-03
|
* Savestate: use Platform::OpenLocalFile (#1026)Tatsh2021-04-26
|
* update copyright year and add missing GPL headersRSDuck2021-03-12
|
* remove some UBRSDuck2020-09-04
| | | | | | | - savestates used to read a four bytes from a single byte value - a few unassigned variables - some other things - also make the ROR macro an inline function
* fix teh commentArisotura2020-02-24
|
* update copyright yearsArisotura2020-02-14
|
* prevent loading savestates that are too recentArisotura2019-06-12
|
* Fix all -Wwrite-strings warningsCameron Cawley2019-05-04
|
* move melon_fopen() to Platform.cppArisotura2019-03-27
| | | | melon_fopen_local() will need fixoring
* also, update copyright nameArisotura2019-01-22
|
* * start coding UI shito for savestatesStapleButter2018-10-23
| | | | | * change default mapping for L button to the key right next to Shift because we're gonna derp around with it * still some shito to fix, but hang on, we're getting there
* properly initialize shit before attempting to read from the fileStapleButter2018-10-18
| | | | fixes load failure when attaching a debugger
* zlargStapleButter2018-09-15
|
* fixor copyright years.StapleButter2018-09-15
|
* moar working now.StapleButter2018-09-15
|
* base for savestate crapo.StapleButter2018-09-15
I'm not quite settled yet, so before I can get into the real meat, I figured I'd address some 'popular request' items.