Skip to content

Commit

Permalink
Merge branch 'main' into ed64-vseries
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion authored Jan 10, 2024
2 parents 99c3d39 + 0996e88 commit 4a6d471
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output/docs
cname: menu.summercart64.dev
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
# N64 Flashcart Menu
An open source menu for N64 flashcarts.

## Supported Flashcarts

### Fully supported
* SummerCart64
* 64Drive

### Work in Progress
* ED64
* ED64P


## Current (notable) menu features
* Fully Open Source.
Expand Down
8 changes: 4 additions & 4 deletions src/menu/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include "views/views.h"


#define TV_TYPE_RAM *((uint32_t *) (0x80000300))

#define CACHE_DIRECTORY "sd:/menu/cache"
#define BACKGROUND_CACHE "sd:/menu/cache/background.data"

Expand All @@ -33,6 +31,8 @@ static menu_t *menu;
static tv_type_t tv_type;
static volatile int frame_counter = 0;

extern tv_type_t __boot_tvtype;


static void frame_counter_handler (void) {
frame_counter += 1;
Expand Down Expand Up @@ -99,7 +99,7 @@ static void menu_init (boot_params_t *boot_params) {
tv_type = get_tv_type();
if ((tv_type == TV_PAL) && menu->settings.pal60_enabled) {
// HACK: Set TV type to NTSC, so PAL console would output 60 Hz signal instead.
TV_TYPE_RAM = TV_NTSC;
__boot_tvtype = TV_NTSC;
}

display_init(RESOLUTION_640x480, DEPTH_16_BPP, 2, GAMMA_NONE, FILTERS_DISABLED);
Expand All @@ -111,7 +111,7 @@ static void menu_deinit (menu_t *menu) {
unregister_VI_handler(frame_counter_handler);

// NOTE: Restore previous TV type so boot procedure wouldn't passthrough wrong value.
TV_TYPE_RAM = tv_type;
__boot_tvtype = tv_type;

hdmi_send_game_id(menu->boot_params);

Expand Down

0 comments on commit 4a6d471

Please sign in to comment.