From d5ba1c6017a906a950b0163511f70228f94bba57 Mon Sep 17 00:00:00 2001 From: Marcel Veldhuizen Date: Sat, 14 Sep 2024 23:32:58 +0200 Subject: [PATCH] Fix load with preview file names and time stamps on extra banks --- win32/CSaveLoadWithPreviewDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/CSaveLoadWithPreviewDlg.cpp b/win32/CSaveLoadWithPreviewDlg.cpp index 1eeb997f..4f404293 100644 --- a/win32/CSaveLoadWithPreviewDlg.cpp +++ b/win32/CSaveLoadWithPreviewDlg.cpp @@ -126,7 +126,7 @@ void CSaveLoadWithPreviewDlg::load_slot_image_text(int slot, int bank, HWND hDlg SendMessage(GetDlgItem(hDlg, IDC_BUTTON_SLOT_1 + slot), BM_SETIMAGE, (WPARAM)IMAGE_BITMAP, (LPARAM)previewHbmps[slot]); char filename[_MAX_PATH + 1]; - GetSlotFilename(slot, filename); + GetSlotFilename(bank * SAVE_SLOTS_PER_BANK + slot, filename); Utf8ToWide filenameW(filename); // text with filename and last write time