@@ -1044,6 +1044,7 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
1044
1044
bool scriptable = (FTYPE_SCRIPT (filetype ));
1045
1045
bool fontable = (FTYPE_FONT (filetype ));
1046
1046
bool viewable = (FTYPE_GFX (filetype ));
1047
+ bool setable = (FTYPE_SETABLE (filetype ));
1047
1048
bool bootable = (FTYPE_BOOTABLE (filetype ));
1048
1049
bool installable = (FTYPE_INSTALLABLE (filetype ));
1049
1050
bool agbexportable = (FTYPE_AGBSAVE (filetype ) && (drvtype & DRV_VIRTUAL ) && (drvtype & DRV_SYSNAND ));
@@ -1109,7 +1110,7 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
1109
1110
(filetype & BIN_LEGKEY ) ? "Build " KEYDB_NAME :
1110
1111
(filetype & BIN_NCCHNFO )? "NCCHinfo options..." :
1111
1112
(filetype & TXT_SCRIPT ) ? "Execute GM9 script" :
1112
- (filetype & FONT_PBM ) ? "Set as active font" :
1113
+ (filetype & FONT_PBM ) ? "Font options..." :
1113
1114
(filetype & GFX_PNG ) ? "View PNG file" :
1114
1115
(filetype & HDR_NAND ) ? "Rebuild NCSD header" :
1115
1116
(filetype & NOIMG_NAND ) ? "Rebuild NCSD header" : "???" ;
@@ -1259,6 +1260,7 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
1259
1260
int view = (viewable ) ? ++ n_opt : -1 ;
1260
1261
int agbexport = (agbexportable ) ? ++ n_opt : -1 ;
1261
1262
int agbimport = (agbimportable ) ? ++ n_opt : -1 ;
1263
+ int setup = (setable ) ? ++ n_opt : -1 ;
1262
1264
if (mount > 0 ) optionstr [mount - 1 ] = (filetype & GAME_TMD ) ? "Mount CXI/NDS to drive" : "Mount image to drive" ;
1263
1265
if (restore > 0 ) optionstr [restore - 1 ] = "Restore SysNAND (safe)" ;
1264
1266
if (ebackup > 0 ) optionstr [ebackup - 1 ] = "Update embedded backup" ;
@@ -1290,6 +1292,7 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
1290
1292
if (font > 0 ) optionstr [font - 1 ] = "Set as active font" ;
1291
1293
if (agbexport > 0 ) optionstr [agbexport - 1 ] = "Dump GBA VC save" ;
1292
1294
if (agbimport > 0 ) optionstr [agbimport - 1 ] = "Inject GBA VC save" ;
1295
+ if (setup > 0 ) optionstr [setup - 1 ] = "Set as default" ;
1293
1296
1294
1297
// auto select when there is only one option
1295
1298
user_select = (n_opt <= 1 ) ? n_opt : (int ) ShowSelectPrompt (n_opt , optionstr , (n_marked > 1 ) ?
@@ -1831,6 +1834,13 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
1831
1834
}
1832
1835
return 0 ;
1833
1836
}
1837
+ else if (user_select == setup ) { // set as default (font)
1838
+ if (filetype & FONT_PBM ) {
1839
+ if (SetAsSupportFile ("font.pbm" , file_path ))
1840
+ ShowPrompt (false, "%s\nFont will be active on next boot" , pathstr );
1841
+ }
1842
+ return 0 ;
1843
+ }
1834
1844
1835
1845
return FileHandlerMenu (current_path , cursor , scroll , pane );
1836
1846
}
0 commit comments