fabiangreffrath / taradino

SDL2 port of Rise of the Triad
GNU General Public License v2.0
35 stars 9 forks source link

Detect and load level packs #35

Open fabiangreffrath opened 1 year ago

fabiangreffrath commented 1 year ago

It should be possible to detect the huntbgin.rtl level pack (and possibly extreme.rtl, are there any other official addons?) from the registered executable version and offer it for choice when starting a new game.

malespiaut commented 1 year ago

I thought about that as well some time ago. It might be quite a big code change. I don't know how Doom source ports are doing it. With a global constant variable that get set on startup?

fabiangreffrath commented 1 year ago

Will be tricky to load the correct RTL file when e.g. restoring a savegame or loading a demo, though. We'll see...

malespiaut commented 1 year ago

Humm… Maybe this is out of the scope of the project? Or maybe you could assign a specific string to a given version of the game loaded, in the config files.

Like if you load Registered version 1.2, it'll look in ~/.config/rott/reg12 If you load Site License 1.3, it'll look in ~/.config/rott/site13