Merge pull request #950 from Thorarin/load-preview-fix

Fix load with preview file names and time stamps on extra banks
This commit is contained in:
bearoso 2024-09-15 10:18:26 -05:00 committed by GitHub
commit e06f1887d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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