From 8b98657d57473ab38600c21c481402fc20f25f6b Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Sat, 15 Jul 2023 14:08:00 -0700 Subject: [PATCH] Load scenes via MxScn.dat d275af7 --- Source/Core/Core/Slippi/SlippiGameFileLoader.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Slippi/SlippiGameFileLoader.cpp b/Source/Core/Core/Slippi/SlippiGameFileLoader.cpp index 03bb1d0319..4986ddbede 100644 --- a/Source/Core/Core/Slippi/SlippiGameFileLoader.cpp +++ b/Source/Core/Core/Slippi/SlippiGameFileLoader.cpp @@ -48,7 +48,13 @@ u32 SlippiGameFileLoader::LoadFile(std::string fileName, std::string& data) } std::string fileContents; - File::ReadFileToString(gameFilePath, fileContents); + + // Don't read MxDt.dat because our Launcher may not have successfully deleted it and + // loading the old one from the file system would break m-ex based ISOs + if (fileName != "MxDt.dat") + { + File::ReadFileToString(gameFilePath, fileContents); + } // If the file was a diff file and the game is running, load the main file from ISO and apply // patch