runtime: add opt-in 8 MB main RAM mod

Adapt the 8 MB RAM work from the rbengine branch into a master-targeted change. The builtin package is disabled by default, activation requests expanded RAM before memory init, and runtime/state/digest/dispatch paths respect the live RAM map.
This commit is contained in:
Matthew Stanley
2026-08-27 21:33:40 -07:00
parent d62f4b4420
commit fa951645b4
17 changed files with 314 additions and 33 deletions
+2
View File
@@ -5,6 +5,7 @@
#include "mod_packages.h"
#include "mod_plugins.h"
#include "gpu.h"
#include "psx_ram.h"
#include "psx_sha256.h"
#if defined(RECOMP_LAUNCHER)
@@ -1337,6 +1338,7 @@ extern "C" int psx_mod_read_disc_file(const char* path, void* buffer,
extern "C" void mod_runtime_activate_plugins(void) {
using namespace PSXRecompV4;
RuntimeMods& s = state();
psx_ram_reset_size_request();
if (!s.initialized || !s.plan.ok) return;
for (const ModResolution::Plugin& plugin : s.plan.plugins) {
s.current_plugin = &plugin;