mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
Win32 file dialog: Prefill the filename when saving
This commit is contained in:
@@ -20,7 +20,7 @@ void DumpMemoryWindow::HandleBrowseClick(HWND hwnd) {
|
||||
GetWindowTextW(filenameWnd, &buffer[0], (int)buffer.size());
|
||||
std::string fn = ConvertWStringToUTF8(buffer);
|
||||
|
||||
bool result = W32Util::BrowseForFileName(false, hwnd, L"Select filename", NULL, NULL, NULL, fn);
|
||||
bool result = W32Util::BrowseForFileName(false, hwnd, L"Select filename", nullptr, L"dump.bin", nullptr, nullptr, fn);
|
||||
if (result) {
|
||||
filenameChosen_ = true;
|
||||
buffer = ConvertUTF8ToWString(fn);
|
||||
|
||||
Reference in New Issue
Block a user