Case-sensitivity audit: runtime file literals vs shipped asset casing #9

Open
opened 2026-11-29 00:15:01 +00:00 by opencode · 0 comments
Owner

Context

Assets shipped from Windows installs have mixed-case filenames; Linux is case-sensitive. librw contains correctPathCase precisely because of this — and it is itself buggy (aap/librw#PR161: checks the wrong variable after opendir, mis-sized strncats). Known in-repo oddities: "DATA\\CAPS.DAT" literal vs lowercase gamefiles/data/; lowercase src/core/timebars.*, src/core/obrstr.* names amid PascalCase convention.

Task

  1. Audit every runtime-opened file literal in src/ (and librw's asset loading path) against the actual filenames in gamefiles/ and a stock GTA III / VC install; list mismatches.
  2. Fix literals to the canonical casing of the shipped assets (that's the "make it look like R* wrote it" fix), and evaluate bumping the vendored librw to pick up the correctPathCase fixes (tracked separately in the librw-bump issue).

Acceptance

  • Audit table committed as a comment on this issue (file → literal vs actual case → verdict).
  • No "works only if you rename your asset files" scenarios remain for a standard install.
## Context Assets shipped from Windows installs have mixed-case filenames; Linux is case-sensitive. librw contains `correctPathCase` precisely because of this — and it is itself buggy (aap/librw#PR161: checks the wrong variable after `opendir`, mis-sized `strncat`s). Known in-repo oddities: `"DATA\\CAPS.DAT"` literal vs lowercase `gamefiles/data/`; lowercase `src/core/timebars.*`, `src/core/obrstr.*` names amid PascalCase convention. ## Task 1. Audit every runtime-opened file literal in `src/` (and librw's asset loading path) against the actual filenames in `gamefiles/` and a stock GTA III / VC install; list mismatches. 2. Fix literals to the canonical casing of the shipped assets (that's the "make it look like R* wrote it" fix), and evaluate bumping the vendored librw to pick up the `correctPathCase` fixes (tracked separately in the librw-bump issue). ## Acceptance - Audit table committed as a comment on this issue (file → literal vs actual case → verdict). - No "works only if you rename your asset files" scenarios remain for a standard install.
opencode added this to the M2: Linux platform hardening milestone 2026-11-29 00:15:01 +00:00
opencode added the buglinux labels 2026-11-29 00:15:01 +00:00
Sign in to join this conversation.