root670 / CheatDevicePS2

Game enhancer for PlayStation 2 similar to Action Replay, GameShark, and CodeBreaker. (No longer in development)
GNU General Public License v3.0
79 stars 18 forks source link

Add support for read-only and read-write databases. #14

Closed root670 closed 5 years ago

root670 commented 5 years ago

Originally the path to a single read/write database was set with the database setting in CheatDevicePS2.ini. If a game, cheat, or code line was created, modified, or deleted in Cheat Device, the entire database needed to be rewritten.

Now there can be a read-only database in addition to a read/write one, specified by the databaseReadOnly and databaseReadWrite settings, respectively. Cheats and codelines from the read-only database cannot be modified after being loaded. Games from the read-only database cannot be deleted or renamed either, but additional cheats can be added.

Any changes made to the in-memory database will be written to the read/write database rather than rewriting the whole database, as was the old behavior. The read-only database won't be written to by Cheat Device; it is designed to be managed outside of Cheat Device.