Triforce v0.9.0

Character tab, faster renderer defaults, HD rumble shipped, and the 11-30 bug pass: ending softlock below 60 fps, adult first-night lock, Intel Arc robust buffers, adult map, randomizer load order.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-30 20:55:14 -06:00
parent 8cb23131f9
commit 822ee913bc
86 changed files with 8128 additions and 438 deletions

View File

@@ -262,6 +262,28 @@ static void test_game(void) {
}
}
/* ((Triforce) the Unlimited amiibo uses row: the same figure scanned again and again, each choice right after the game read
the last (the Scan amiibo page sends a figure the game has read again, gpu/vk/vk_menu.cpp names_confirm). The reader side
keeps no count: every touch is read as the first, with the same serial number (the game's own once-a-day check is
host/oot_amiibo_uses.c's) */
static void test_scans_in_a_row(void) {
uint8_t tag[NFP_TAG_INFO_SIZE], model[NFP_MODEL_INFO_SIZE];
const AmiiboTag t = figure();
Nfp n;
nfp_reset(&n);
int64_t now = 1000;
for (int scan = 0; scan < 50; scan++) {
CHECK(nfp_choose(&n, &t) == (scan == 0), "scan %d: the readers are said to change again", scan);
memset(tag, 0, sizeof tag), memset(model, 0, sizeof model);
int calls = 0;
const int64_t from = now;
CHECK(game_task(&n, scan & 1, &now, 500, &calls, tag, model) == 1, "scan %d: the game's task does not read the figure", scan);
CHECK(!memcmp(tag, kUid, 7) && !memcmp(model, kModel, 3), "scan %d: the game is handed another figure", scan);
CHECK(now - from < NFP_HOLD_NS + 100000000, "scan %d: the figure is held longer than the first time", scan);
CHECK(n.said == NFP_SAID_READ && n.holder < 0 && !n.waiting, "scan %d: the figure is not lifted off", scan);
}
}
/* ((Triforce) a Flipper Zero NFC file of the tag: its pages as text; the same figure as the tag's bytes */
static size_t flipper_text(char *out, size_t cap, int pages, int unread_page) {
uint8_t d[540];
@@ -344,6 +366,7 @@ int main(void) {
test_names();
test_readers();
test_game();
test_scans_in_a_row();
if (failures) return printf("%d failures\n", failures), 1;
printf("ok\n");
return 0;