Get the latest tech news

A compact bitset implementation used in Ocarina of Time save files


A 16-bit bitset implementation used in Ocarina of Time save files - jb55/oot_bitset

A no‑frills, zero‑overhead flag system inspired by The Legend of Zelda: Ocarina of Time Need to pack hundreds (or thousands) of one‑bit flags —“talked to an NPC”, “opened a chest”, etc.—into a save file without wasting bytes? Simple, header‑only, zero deps – drop a header (C) or add a tiny dependency (Rust).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Files

Files

Photo of Time

Time

Photo of ocarina

ocarina

Related news:

News photo

Apple's iPad Mini 7 Hits New All-Time Low Price of $379 for Prime Day

News photo

Prime Day iPad Air Deals Include New All-Time Low Prices Across Entire M3 Lineup

News photo

OnePlus launches smaller Watch 3 and new Buds 4 just in time for your summer escapades