diff --git a/stratosphere/ams_mitm/source/utils.cpp b/stratosphere/ams_mitm/source/utils.cpp index 52e52090c..ab30b8682 100644 --- a/stratosphere/ams_mitm/source/utils.cpp +++ b/stratosphere/ams_mitm/source/utils.cpp @@ -204,6 +204,9 @@ void Utils::InitializeThreadFunc(void *args) { if (IsEmummc()) { const char *emummc_file_path = GetEmummcFilePath(); if (emummc_file_path != nullptr) { + char emummc_path[0x100] = {0}; + std::strncpy(emummc_path, emummc_file_path, 0x80); + std::strcat(emummc_path, "/eMMC"); fsFsOpenFile(&g_sd_filesystem, emummc_file_path, FS_OPEN_READ | FS_OPEN_WRITE, &g_emummc_file); } }