mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-11 01:41:02 +00:00
Comments named the agent task (T1-T7, M2-M5, Task 2.x) that once owned each file or block, and pointed at local notes the repository does not carry (backlog items, milestone plans, research notes). They now say what the code does. gfx_stubs.c held weak stand-ins for functions that every build has defined for a long time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
822 B
C
15 lines
822 B
C
// Shared by the system overrides: runtime/ov_system.c, ov_input.c, ov_media.c and ov_gfx.c, and their probe.
|
|
// oe_push_message, oe_set_focus and ov_nv_state are in gfx.h (the window posts focus messages, the NVN layer
|
|
// allocates through the recorded callbacks).
|
|
#pragma once
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "gfx.h"
|
|
|
|
// ---- ov_system.c
|
|
int ov_handheld(void); // TOTK_OPERATION_MODE=handheld (default docked); fatal on another value
|
|
const char *ov_language(void); // the game's language, a Switch language code ("en-US", "zh-Hans", ...)
|
|
const char *ov_shared_font_dir(char *buf, size_t n); // TOTK_SHARED_FONTS, else <romfs>/../../firmware/shared-fonts
|
|
uint64_t ov_bfttf_size(const uint8_t *p, uint64_t len); // decoded font size of a BFTTF image, 0 if it is not one
|