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.

Among Us: the app's name with the other calculator calls in plat_eadk.c

Mason36376aa6066db1e
diff --git a/games/amongus/src/main.c b/games/amongus/src/main.c
index 25475604..4a1ea5fc 100644
--- a/games/amongus/src/main.c
+++ b/games/amongus/src/main.c
@@ -7,8 +7,6 @@
#include "plat.h"
#ifndef HOST
-const char eadk_app_name[] __attribute__((section(".rodata.eadk_app_name"))) = "Among Us";
-const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level"))) = 0;
uint32_t perf_frames __attribute__((used)); /* read by tools/emu.py */
uint32_t perf_max __attribute__((used));
diff --git a/games/amongus/src/plat_eadk.c b/games/amongus/src/plat_eadk.c
index 8c71881e..cac3c432 100644
--- a/games/amongus/src/plat_eadk.c
+++ b/games/amongus/src/plat_eadk.c
@@ -4,6 +4,9 @@
#include "../../common/epsilon_files.h"
#include "plat.h"
+const char eadk_app_name[] __attribute__((section(".rodata.eadk_app_name"))) = "Among Us";
+const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level"))) = 0;
+
#define KEY(k) ((uint64_t)1 << (k))
uint32_t plat_keys(void) {
diff --git a/games/amongus/src/plat_host.c b/games/amongus/src/plat_host.c
index 91a01972..119a58b1 100644
--- a/games/amongus/src/plat_host.c
+++ b/games/amongus/src/plat_host.c
@@ -41,12 +41,6 @@ const uint8_t *plat_load(const char *name, uint32_t *len) {
fclose(f);
return b;
}
-static uint8_t reserved[1 << 16];
-uint8_t *plat_reserve(const char *name, uint32_t len) {
- (void)name;
- return len <= sizeof reserved ? reserved : NULL;
-}
-void plat_reserved(const char *name, uint32_t len) { plat_save(name, reserved, len); }
bool plat_remove(const char *name) {
char p[512];
snprintf(p, sizeof p, "%s/%s", save_dir, name);
@@ -54,7 +48,6 @@ bool plat_remove(const char *name) {
}
void plat_begin(void) {}
int plat_end(void) { return 0; }
-bool plat_slow(void) { return false; }
/* writes the screen as a PPM image */
void host_shot(const char *path) {