Skip to content

Commit

Permalink
Normalizing custom rom path after input.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Jul 13, 2020
1 parent db4f06d commit c7483a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/SysVita/UI/MenuBarScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ void dummy_func () {}

void change_custom_rom_path () {
getDialogTextResult(gCustomRomPath);
if (gCustomRomPath[strlen(gCustomRomPath) - 1] != '/') {
gCustomRomPath[strlen(gCustomRomPath)] = '/';
gCustomRomPath[strlen(gCustomRomPath) + 1] = 0;
}
saveCustomRomPath();
resetRomList();
custom_path_str_dirty = true;
Expand Down

0 comments on commit c7483a8

Please sign in to comment.