mirror of
https://github.com/jkdansereau/goldeneye-pc-port.git
synced 2026-10-24 00:02:45 +02:00
romdataInit finds the ROM in CWD data/, exe-dir data/, or ./, but the POSIX $S branch only ever produced a CWD-relative path, so any launch from another directory ran fine while every EEPROM and ini write failed silently (no ./data/ to fopen into) — saves never persisted and F10 settings reset on every launch. Mirror the Windows branch via readlink(/proc/self/exe) and mkdir the target dir best-effort. Verified on WSL with exe+data in /tmp and CWD=/: config, eeprom, and ROM all land in <exedir>/data/.