[physfs] How to check if some files got overriden?

Indy Sams indy at driftsolutions.com
Fri Jan 2 01:39:43 EST 2015


Hello Sik,

You can try PHYSFS_getRealDir, but a better way may be to store a hash
of the relevant files or a unique string defined by the mod in your save
files  so  people  can still save even with mods and it will only load
games that match the current mod.

Best regards,
 Indy Sams
 mailto:indy at driftsolutions.com

Thursday, January 1, 2015, 11:11:15 PM, you wrote:

Sth> I'm using PhysicsFS mounting to implement mods in my game (where a mod
Sth> is just an archive that overrides those in the game). I need a way to
Sth> check if some of those get altered when I add a mod though (to disable
Sth> saving, otherwise the savegame could become invalid). More
Sth> specifically, I need to see if the archive:

Sth> - Contains system/scenes
Sth> - Contains system/tweaks.ini
Sth> - Contains levels/*.sol

Sth> How can I check this? I would do the check every time I mount a mod
Sth> (not after mounting all of them), if this helps.
Sth> _______________________________________________
Sth> physfs mailing list
Sth> physfs at icculus.org
Sth> http://icculus.org/mailman/listinfo/physfs



More information about the physfs mailing list