resource file names

Open-source port of PoP that runs natively on Windows, Linux, etc.
Post Reply
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

resource file names

Post by Norbert »

Maybe one day the PNG file names, currently res40.png up to and including res930.png, could become more informative.
MININIM and PR use more informative file names, which simplifies the modding process.

From what I can find, load_from_opendats_alloc() and load_from_opendats_to_area() get resource numbers, which are then passed to load_from_opendats_metadata(), that includes an snprintf() with "data/%s/res%d.%s".

The file data/music/names.txt has lines such as "24=regular_death".
A similar text file would probably be required for the PNG file names.

If someone ever feels like adding the code, I'm willing to create the aforementioned text file.
Post Reply