From 52878557bcafa3629b1e134e53f12abab7d2b6e3 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Fri, 24 Jun 2022 03:45:28 +0200 Subject: [PATCH] Get rid of DumpRAM/DumpVRAM/DumpSPURAM --- src/core/system.cpp | 33 --------------------------------- src/core/system.h | 9 --------- 2 files changed, 42 deletions(-) diff --git a/src/core/system.cpp b/src/core/system.cpp index dd6e68d6..49d1e716 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -1676,11 +1676,6 @@ bool SetExpansionROM(const char* filename) } #endif -void StallCPU(TickCount ticks) -{ - CPU::AddPendingTicks(ticks); -} - Controller* GetController(u32 slot) { return g_pad.GetController(slot); @@ -1885,34 +1880,6 @@ void UpdateMultitaps() } } -bool DumpRAM(const char* filename) -{ - if (!IsValid()) - return false; - - return FileSystem::WriteBinaryFile(filename, Bus::g_ram, Bus::g_ram_size); -} - -bool DumpVRAM(const char* filename) -{ - if (!IsValid()) - return false; - - g_gpu->RestoreGraphicsAPIState(); - const bool result = g_gpu->DumpVRAMToFile(filename); - g_gpu->ResetGraphicsAPIState(); - - return result; -} - -bool DumpSPURAM(const char* filename) -{ - if (!IsValid()) - return false; - - return FileSystem::WriteBinaryFile(filename, g_spu.GetRAM().data(), SPU::RAM_SIZE); -} - bool HasMedia() { return g_cdrom.HasMedia(); diff --git a/src/core/system.h b/src/core/system.h index 0a4ae84e..0eeb376f 100644 --- a/src/core/system.h +++ b/src/core/system.h @@ -178,15 +178,6 @@ bool HasMemoryCard(u32 slot); void SwapMemoryCards(); void UpdateMultitaps(); -/// Dumps RAM to a file. -bool DumpRAM(const char* filename); - -/// Dumps video RAM to a file. -bool DumpVRAM(const char* filename); - -/// Dumps sound RAM to a file. -bool DumpSPURAM(const char* filename); - bool HasMedia(); std::string GetMediaFileName(); bool InsertMedia(const char* path);