Files
Triforce-Source/host/pouch_live.h
ruckus7382sfgsgdf 4fa4f9188b Triforce v0.8.0
Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
2026-11-25 10:21:32 -06:00

24 lines
1.4 KiB
C

/* (Triforce, 11-24) The Debug tab's Inventory: an item given or taken away is given to or taken from the live pouch, the
pouch manager the game asks whether Link has something, through the game's own add and remove (host/hos_main.c
oot_pouch_change), and then set in GameData as before. Set in GameData alone, it showed on the Inventory page and in the
save, and the game did not see it: unlocked gauntlets lifted nothing (the owner, 11-24).
pouch_live_delta says what the pouch is asked: the difference between the count wanted and the pouch's own count, none
when the pouch has no answer (no save loaded, no such content: -1) or already holds it. HOS_POUCH_LIVE=0: GameData alone,
as before. Read by host/hos_main.c and tests/test_pouch_live.py, which compiles these rules. */
#ifndef HOS_POUCH_LIVE_H
#define HOS_POUCH_LIVE_H
#define POUCH_NAME_ROOM 0x60 /* the name's buffer: the longest content name the pouch is asked about, as oot_pouch_count */
#define POUCH_REASON_SCRIPT 9 /* OneShotAddOrRemovePouchContent's reasons: PickUp 0 ... Event 7, Seq 8, Script 9 */
static inline int pouch_live_env(const char *e) { return !(e && e[0] == '0' && !e[1]); }
/* the add (> 0) or remove (< 0) the pouch is asked for, 0 none: live is the pouch's count (-1 no answer), want the count set */
static inline int pouch_live_delta(int on, int live, int want) {
if (!on || live < 0 || want < 0 || live == want) return 0;
return want - live;
}
#endif