From 240cb0ca1159af11c59120d13da7bd26a6065f64 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 9 Jun 2017 17:57:05 +0200 Subject: [PATCH] VolumeDirectory: Use correct endianness when writing apploader -1 --- Source/Core/DiscIO/VolumeDirectory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/VolumeDirectory.cpp b/Source/Core/DiscIO/VolumeDirectory.cpp index f6f603d8ff..845c336bda 100644 --- a/Source/Core/DiscIO/VolumeDirectory.cpp +++ b/Source/Core/DiscIO/VolumeDirectory.cpp @@ -333,7 +333,7 @@ bool VolumeDirectory::SetApploader(const std::string& apploader) { m_apploader.resize(0x20); // Make sure BS2 HLE doesn't try to run the apploader - *(u32*)&m_apploader[0x10] = (u32)-1; + Write32(static_cast(-1), 0x10, &m_apploader); return false; } }