mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-22 02:29:19 +01:00
Minor improvements
This commit is contained in:
parent
39ac475bc1
commit
a0d7630e86
@ -47,13 +47,13 @@ void menu_fileinfo_draw_n64_rom_info(surface_t *disp) {
|
||||
void menu_fileinfo_draw_header(surface_t *disp) {
|
||||
|
||||
graphics_draw_text(disp, (disp->width / 2) - 64, vertical_start_position, "FILE INFORMATION"); // centre = numchars * font_horizontal_pixels / 2
|
||||
graphics_draw_line(disp,0,30,disp->width,30, 0xff);
|
||||
graphics_draw_line(disp, 0, 30, disp->width, 30, 0xff);
|
||||
|
||||
}
|
||||
|
||||
void menu_fileinfo_draw_footer(surface_t *disp) {
|
||||
|
||||
graphics_draw_line(disp,0,disp->height - overscan_vertical_pixels - font_vertical_pixels,disp->width,disp->height - overscan_vertical_pixels - font_vertical_pixels, 0xff);
|
||||
graphics_draw_line(disp, 0, disp->height - overscan_vertical_pixels - font_vertical_pixels, disp->width,disp->height - overscan_vertical_pixels - font_vertical_pixels, 0xff);
|
||||
graphics_draw_text(disp, (disp->width / 2) - 80,disp->height - overscan_vertical_pixels, "Press (B) to return!"); // centre = numchars * font_horizontal_pixels / 2
|
||||
|
||||
}
|
||||
|
@ -5,13 +5,13 @@
|
||||
void menu_info_draw_header(surface_t *disp) {
|
||||
|
||||
graphics_draw_text(disp, (disp->width / 2) - 64, vertical_start_position, "MENU INFORMATION"); // centre = numchars * font_horizontal_pixels / 2
|
||||
graphics_draw_line(disp,0,30,disp->width,30, 0xff);
|
||||
graphics_draw_line(disp, 0, 30, disp->width, 30, 0xff);
|
||||
|
||||
}
|
||||
|
||||
void menu_info_draw_footer(surface_t *disp) {
|
||||
|
||||
graphics_draw_line(disp,0,disp->height - overscan_vertical_pixels - font_vertical_pixels,disp->width,disp->height - overscan_vertical_pixels - font_vertical_pixels, 0xff);
|
||||
graphics_draw_line(disp, 0, disp->height - overscan_vertical_pixels - font_vertical_pixels, disp->width,disp->height - overscan_vertical_pixels - font_vertical_pixels, 0xff);
|
||||
graphics_draw_text(disp, (disp->width / 2) - 80,disp->height - overscan_vertical_pixels, "Press (B) to return!"); // centre = numchars * font_horizontal_pixels / 2
|
||||
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ void load_n64_rom() {
|
||||
printf("ROM version: %hhu\n", temp_header.version);
|
||||
printf("ROM checksum: %llu\n\n", temp_header.checksum);
|
||||
|
||||
// FIXME: if the ROM header does not make sense, it is an invalid ROM.
|
||||
|
||||
uint8_t save_type = rom_db_match_save_type(temp_header);
|
||||
|
||||
@ -119,7 +120,7 @@ void menu_main_draw_header(surface_t *disp) {
|
||||
|
||||
void menu_main_draw_footer(char *dir_path, surface_t *disp) {
|
||||
|
||||
graphics_draw_line(disp,0,disp->height - overscan_vertical_pixels - font_vertical_pixels,disp->width,disp->height - overscan_vertical_pixels - font_vertical_pixels, 0xff);
|
||||
graphics_draw_line(disp,0,disp->height - overscan_vertical_pixels - font_vertical_pixels, disp->width,disp->height - overscan_vertical_pixels - font_vertical_pixels, 0xff);
|
||||
|
||||
char str_buffer[1024];
|
||||
sprintf(str_buffer, "Current Directory: SD:%s\nFile: %d of %d\n\n", dir_path, scroll_menu_position, items_in_dir);
|
||||
@ -218,11 +219,7 @@ void menu_main_init (settings_t *settings) {
|
||||
}
|
||||
else {
|
||||
|
||||
console_init();
|
||||
console_clear();
|
||||
|
||||
printf("Failed... Returning to menu...\n");
|
||||
wait_ms(1000);
|
||||
menu_fileinfo(current_fileinfo);
|
||||
menu_main_refresh(current_dir);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user