[XAM] Fixed missing CreateFolder in XamWriteGamerTile

Fixed Rez HD failing to get past main menus in unlocked state.
This commit is contained in:
Adrian
2026-06-02 18:46:44 +01:00
committed by Radosław Gliński
parent 73945c06d7
commit be6e53e383

View File

@@ -938,13 +938,16 @@ dword_result_t XamWriteGamerTile_entry(
const auto gamerpic_small_png =
kernel_state()->xam_state()->spa_info()->GetIcon(small_tile_id);
const std::error_code ec =
xe::filesystem::CreateFolder(gamer_pictures_storage_path);
FILE* big_gamerpic_file = xe::filesystem::OpenFile(big_gamerpic_path, "ab");
FILE* small_gamerpic_file =
xe::filesystem::OpenFile(small_gamerpic_path, "ab");
X_RESULT result = X_ERROR_SUCCESS;
if (!big_gamerpic_file || !small_gamerpic_file) {
if (ec || !big_gamerpic_file || !small_gamerpic_file) {
extended_error = X_E_FUNCTION_FAILED;
return X_ERROR_FUNCTION_FAILED;
}