Skip to content

Commit ffa3ba5

Browse files
committed
Fix last open path to include trailing separator
1 parent 8bb06d5 commit ffa3ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/shared/desktop/gui_filedialogs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ static void process_dialog_result(FileDialogID id, const char* path)
305305
{
306306
std::string str_path = path;
307307
std::string::size_type pos = str_path.find_last_of("\\/");
308-
config_emulator.last_open_path.assign(str_path.substr(0, pos));
308+
config_emulator.last_open_path.assign(str_path.substr(0, pos + 1));
309309
gui_load_rom(path);
310310
break;
311311
}

0 commit comments

Comments
 (0)