From c4b0430d5e89fc9e283b455bf9c9b3503b383e6a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 19 Dec 2024 21:51:19 +1000 Subject: [PATCH] System: Remove unused SetExpansionROM() --- src/core/system.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/core/system.cpp b/src/core/system.cpp index 099bc420b..d8b9470a3 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -3641,39 +3641,6 @@ void System::DoFrameStep() PauseSystem(false); } -#if 0 -// currently not used until EXP1 is implemented - -bool SetExpansionROM(const char* filename) -{ - std::FILE* fp = FileSystem::OpenCFile(filename, "rb"); - if (!fp) - { - ERROR_LOG("Failed to open '{}'", Path::GetFileName(filename)); - return false; - } - - std::fseek(fp, 0, SEEK_END); - const u32 size = static_cast(std::ftell(fp)); - std::fseek(fp, 0, SEEK_SET); - - std::vector data(size); - if (std::fread(data.data(), size, 1, fp) != 1) - { - ERROR_LOG("Failed to read ROM data from '{}'", Path::GetFileName(filename)) - std::fclose(fp); - return false; - } - - std::fclose(fp); - - INFO_LOG("Loaded expansion ROM from '{}': {} bytes", Path::GetFileName(filename), size); - Bus::SetExpansionROM(std::move(data)); - return true; -} - -#endif - Controller* System::GetController(u32 slot) { return Pad::GetController(slot);