diff --git a/Core/SaveState.cpp b/Core/SaveState.cpp index 8db56ad1bd..91bd706c32 100644 --- a/Core/SaveState.cpp +++ b/Core/SaveState.cpp @@ -108,12 +108,6 @@ static std::map> g_files; // the value is th // Set when a slot save finishes. That's on the emu thread, so the rescan is left to the next reader. static std::atomic g_filesStale; -struct SaveStart { - void DoState(PointerWrap &p); - // Rewind snapshots and verification don't count towards IsStale(). - bool countsAsSave = true; -}; - enum class OperationType { Save, Load, diff --git a/Core/SaveState.h b/Core/SaveState.h index 4984c6a84d..4373b7c573 100644 --- a/Core/SaveState.h +++ b/Core/SaveState.h @@ -36,6 +36,13 @@ namespace SaveState { }; typedef std::function Callback; + // The whole state, for CChunkFileReader. libretro uses it directly. + struct SaveStart { + void DoState(PointerWrap &p); + // Rewind snapshots and verification don't count towards IsStale(). + bool countsAsSave = true; + }; + static const char * const SCREENSHOT_EXTENSION = "jpg"; void Init(); diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index 1c88d78976..ea68e465c2 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -1808,14 +1808,6 @@ unsigned retro_get_region(void) { return RETRO_REGION_NTSC; } bool retro_load_game_special(unsigned type, const struct retro_game_info *info, size_t num) { return false; } -namespace SaveState -{ - struct SaveStart - { - void DoState(PointerWrap &p); - }; -} // namespace SaveState - size_t retro_serialize_size(void) { if (!gpu) // The HW renderer isn't ready on first pass.