Closed IMP1 closed 8 years ago
Done, but when this becomes an issue more will need to be done (a file stored somewhere on the user's computer (appdata?) that holds the version and an installer that checks there when updating the software to see if data needs updating... but also maybe data would be updated with the software?) ehhhh
Give the game a version number. Maybe in Main.
That way, patches can update data files from v0.1 to v0.2 (when we add X feature) automatically, to increase backwards compatibility, before they overwrite the code files. Or after really - they're kinda independent. And you can change updates, to go from v0.1 to v0.3, by going via v0.2 or something.
Maybe two variables?
long PATCH_NUMBER;
, which is just whenever a non-backwards compatible change happens, i.e whenever a patch is released;String VERSION_NUMBER;
, which is a string containing the version number in the formatmajor.minor.patch
.