I want to make code that hashes the world file/dmb as well as the rsc file with sha1() and then automatically clears out a cache folder if this changes to standardize a bunch of code, but noticed I'd have to hard code the name of world and then downstreams would have to modify this code, which seems silly.
world.name defaults to what i want, but can be written to so won't always point to what i want it to point to.
a new var, something like world.dmb_file and world.rsc_file pointing to the path or filename of those files would be nice. it could even be a single var something like world.base_file which just has the filename part of filename.dmb/filename.rsc and then i can just append the extension.
ID:2912240
Feb 11, 1:58 pm
|
|||||||
| |||||||