Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Launcher: room for 96 games, since games.json has 65 with Famidash

Mason36347378ca6e115
diff --git a/customize/app.js b/customize/app.js
index 01909dcf..cef3d381 100644
--- a/customize/app.js
+++ b/customize/app.js
@@ -398,7 +398,7 @@
// An app's .nwa becomes a game of NumPlay the way a big game's does (apps.js). It may only leave undefined what
// the calculator's installer gives an app (tools/kit.py's check) and what the launcher gives a big game (KIT_API)
const LOOSE = /^(eadk_|_heap_end$|_data_section_|_bss_section_|np_keyboard_scan$|np_event_get$|np_display_draw_string$|np_sbrk$|numplay_launcher$|__sf$|_printf_float$)/;
- const MAX_GAMES = 64; // (launcher/src/np.h's NP_MAX_GAMES: games, Retro-Go and apps)
+ const MAX_GAMES = 96; // (launcher/src/np.h's NP_MAX_GAMES: games, Retro-Go and apps)
const entries = () => ordered().length + (rg && st.roms.length ? 1 : 0) + st.apps.length;
const ascii = (t) => (t || '').replace(/[^\x20-\x7e]/g, '').trim().slice(0, 24);
const allocBytes = (obj) => npApps.readElf(obj).secs.reduce((n, x) => n + (x.flags & 2 && x.type !== 8 ? align4(x.size) : 0), 0);
diff --git a/launcher/src/np.h b/launcher/src/np.h
index e1cce70c..886601a7 100644
--- a/launcher/src/np.h
+++ b/launcher/src/np.h
@@ -68,7 +68,7 @@ typedef struct {
} np_game_t;
/* every game of games.json, the kit's too, can be in one NumPlay (tools/gen_games.py checks it) */
-#define NP_MAX_GAMES 64
+#define NP_MAX_GAMES 96
#if NP_SIMULATOR
extern const np_game_t np_games[];
extern const int np_game_count;