Skip to content

Commit 7c23814

Browse files
committed
bugfix: Save As dialog now appends .uae extension if missing
1 parent 17a1fc5 commit 7c23814

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/osdep/imgui/configurations.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ void render_panel_configurations()
213213
{
214214
if (!save_as_path.empty())
215215
{
216+
if (save_as_path.size() < 4 ||
217+
strcasecmp(save_as_path.c_str() + save_as_path.size() - 4, ".uae") != 0)
218+
{
219+
save_as_path += ".uae";
220+
}
216221
snprintf(changed_prefs.description, 256, "%s", desc);
217222
if (cfgfile_save(&changed_prefs, save_as_path.c_str(), 0))
218223
{

0 commit comments

Comments
 (0)