mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-15 19:19:58 -04:00
Bring four tests in line with the merged code.
The frame step test gets a stub for the debug menu's game speed, which frame_rate.c now reads; the mouse camera test one for the input script's perf segment mark. The shared save test defined mem_probing twice. The launcher's self-test draws 16 screens now that both lines added one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ void rt_log(const char *fmt, ...) { (void)fmt; }
|
||||
double gfx_window_refresh_hz(void) { return 144; }
|
||||
int ov_movie_live(void) { return 0; }
|
||||
int vk_fg_generating(void) { return 0; }
|
||||
float dbg_speed_factor(void) { return 1.0f; } // the debug menu's game speed: normal
|
||||
int vk_fg_active(void) { return 0; }
|
||||
int vk_fg_wanted(void) { return 0; }
|
||||
static int fg_mult = 1; // frames on screen per game frame
|
||||
|
||||
@@ -4803,7 +4803,7 @@ class WindowTest(Tmp):
|
||||
r = subprocess.run([sys.executable, '-m', 'launcher', '--root', str(self.tmp / 'w'), '--selftest'],
|
||||
cwd=ROOT, capture_output=True, text=True, timeout=180)
|
||||
self.assertEqual(r.returncode, 0, r.stderr)
|
||||
self.assertIn('15 screens drawn', r.stdout)
|
||||
self.assertIn('16 screens drawn', r.stdout)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -310,6 +310,7 @@ int input_menu_gate(int *h,int open,uint64_t *b,int32_t s[4]) { (void)h;(void)op
|
||||
int input_overlay_gate(int *h,uint64_t *b) { (void)h;(void)b;abort(); }
|
||||
int menu_is_open(void) { abort(); }
|
||||
void menu_toggle(void) { abort(); }
|
||||
void perf_segment(const char *name) { (void)name; } // a script line's mark: no perf trace here
|
||||
void menu_perf_cycle(void) { abort(); }
|
||||
const char *input_action_name(int action) { (void)action;abort(); }
|
||||
void input_map_configure(void) { abort(); }
|
||||
|
||||
@@ -61,7 +61,6 @@ NEVER(mem_thaw) NEVER(romfs_close) NEVER(romfs_entry) NEVER(romfs_entry_type) NE
|
||||
NEVER(romfs_handle) NEVER(romfs_image_path) NEVER(romfs_list) NEVER(romfs_open) NEVER(romfs_overlay)
|
||||
NEVER(romfs_overlay_count) NEVER(romfs_read) NEVER(romfs_size) NEVER(rt_call)
|
||||
NEVER(perf_size) // fs_host_sizes: only the perf trace's size lines call it
|
||||
int mem_probing(void) { return 0; } // the write-back probe is off
|
||||
int romfs_owns(const char *path) { (void)path; return 0; }
|
||||
int mem_probing(void) { return 0; } // write_file asks before each write: no probe, no lazy heap here
|
||||
void mem_kernel_access(uint64_t a, uint64_t n) { (void)a, (void)n; }
|
||||
|
||||
Reference in New Issue
Block a user