Implemented shader cache preloading

This commit is contained in:
Mr-Wiseguy
2024-04-27 00:02:10 -04:00
parent a6f94f9e2e
commit 598948bfb6
7 changed files with 36 additions and 2 deletions
+2
View File
@@ -16,6 +16,7 @@
#include "xxHash/xxh3.h"
#include "../ultramodern/ultramodern.hpp"
#include "../../RecompiledPatches/patches_bin.h"
#include "mm_shader_cache.h"
#ifdef _MSC_VER
inline uint32_t byteswap(uint32_t val) {
@@ -412,6 +413,7 @@ void recomp::start(ultramodern::WindowHandle window_handle, const ultramodern::a
if (!recomp::load_stored_rom(recomp::Game::MM)) {
recomp::message_box("Error opening stored ROM! Please restart this program.");
}
ultramodern::load_shader_cache({mm_shader_cache_bytes, sizeof(mm_shader_cache_bytes)});
init(rdram, &context);
try {
recomp_entrypoint(rdram, &context);