diff --git a/UnleashedRecomp/locale/locale.h b/UnleashedRecomp/locale/locale.h index a59c892..0513000 100644 --- a/UnleashedRecomp/locale/locale.h +++ b/UnleashedRecomp/locale/locale.h @@ -167,13 +167,13 @@ inline static std::unordered_map 0) ? Localise("Installer_Step_AvailableSpace").c_str() : "", availableGiB); + snprintf(descriptionText, sizeof(descriptionText), "%s%s\n%s", GetWizardText(g_currentPage).c_str(), requiredSpaceText, availableSpaceText); } else if (g_currentPage == WizardPage::InstallSucceeded) { @@ -1109,8 +1103,12 @@ static void InstallerStart() static bool InstallerParseSources() { - std::filesystem::space_info spaceInfo = std::filesystem::space(g_installPath); - g_installerAvailableSize = spaceInfo.available; + std::error_code spaceErrorCode; + std::filesystem::space_info spaceInfo = std::filesystem::space(g_installPath, spaceErrorCode); + if (!spaceErrorCode) + { + g_installerAvailableSize = spaceInfo.available; + } Installer::Input installerInput; installerInput.gameSource = g_gameSourcePath;