VERY experimental Nintendo Switch 2 emulator
C++
system_version: Correct sizes on VectorVfsFile construction
Zach Hilmand741f8ee9007
diff --git a/src/core/file_sys/system_archive/system_version.cpp b/src/core/file_sys/system_archive/system_version.cppindex 3fc5f95866..52df10f55c 100644--- a/src/core/file_sys/system_archive/system_version.cpp+++ b/src/core/file_sys/system_archive/system_version.cpp@@ -34,13 +34,13 @@ VirtualDir SystemVersion() {file->WriteObject(SystemVersionData::REVISION_MAJOR, 4);file->WriteObject(SystemVersionData::REVISION_MINOR, 5);file->WriteArray(SystemVersionData::PLATFORM_STRING,- std::min(sizeof(SystemVersionData::PLATFORM_STRING), 0x20ull), 0x8);+ std::min<u64>(sizeof(SystemVersionData::PLATFORM_STRING), 0x20ull), 0x8);file->WriteArray(SystemVersionData::VERSION_HASH,- std::min(sizeof(SystemVersionData::VERSION_HASH), 0x40ull), 0x28);+ std::min<u64>(sizeof(SystemVersionData::VERSION_HASH), 0x40ull), 0x28);file->WriteArray(SystemVersionData::DISPLAY_VERSION,- std::min(sizeof(SystemVersionData::DISPLAY_VERSION), 0x18ull), 0x68);+ std::min<u64>(sizeof(SystemVersionData::DISPLAY_VERSION), 0x18ull), 0x68);file->WriteArray(SystemVersionData::DISPLAY_TITLE,- std::min(sizeof(SystemVersionData::DISPLAY_TITLE), 0x80ull), 0x80);+ std::min<u64>(sizeof(SystemVersionData::DISPLAY_TITLE), 0x80ull), 0x80);return std::make_shared<VectorVfsDirectory>(std::vector<VirtualFile>{file},std::vector<VirtualDir>{}, "data");}