Commit Graph

20 Commits

Author SHA1 Message Date
Guillaume Jacquemin 393ec4a372 UESaveFile: use Logger. 2022-11-22 11:03:45 +01:00
Guillaume Jacquemin 55eb367eb2 UESaveFile: fix a bug that shouldn't have been there in the first place. 2022-05-03 20:25:32 +02:00
Guillaume Jacquemin b598476809 UESaveFile: fix a bug when working with a temp file. 2022-04-17 12:46:25 +02:00
Guillaume Jacquemin 70ddb0ce39 UESaveFile: don't create a backup if the file is already temporary.
Also improve error handling.
2022-04-04 09:21:31 +02:00
Guillaume Jacquemin 6b280b2668 UESaveFile: add a new API and change some stuff. 2022-04-02 19:53:58 +02:00
Guillaume Jacquemin 1871440a7b UESaveFile: copy the temp file over the old one.
This is to prevent an issue where updating a profile save makes the app
think it's deleted.
2022-03-21 15:20:36 +01:00
Guillaume Jacquemin b859bf7ab5 Update Corrade/Magnum and adapt to changes.
Also a few misc things, but nothing really noteworthy.
2022-03-09 11:04:19 +01:00
Guillaume Jacquemin fdb7567aea PropertySerialiser: make into a singleton.
Also update UESaveFile to match.
2022-03-06 13:21:56 +01:00
Guillaume Jacquemin 8791eb32ac Use Corrade's String(View) types where possible.
Utility::Directory, efsw, cpr, and json.hpp are the only obstacles to a
complete removal of std::string usages.
2022-03-04 21:18:55 +01:00
Guillaume Jacquemin 51faed7210 Update copyright years.
I should have done that earlier... and of course I forgot a few files...
2022-01-30 11:38:22 +01:00
Guillaume Jacquemin 2b2320ae0a UESaveFile: clear properties when reloading data. 2021-09-27 16:21:39 +02:00
Guillaume Jacquemin 911e18fc0a UESaveFile: add a few sanity things. 2021-09-27 16:16:47 +02:00
Guillaume Jacquemin 1caa472833 UESaveFile: add more error messages. 2021-09-23 18:25:28 +02:00
Guillaume Jacquemin 9c1aeb753e UESaveFile: add API to append a property. 2021-09-23 15:08:20 +02:00
Guillaume Jacquemin 0006c90a21 UESaveFile: add sanity check when reading files. 2021-09-23 15:07:29 +02:00
Guillaume Jacquemin 0826d4aede UESaveFile: close the file after we're done writing to it. 2021-09-22 21:50:39 +02:00
Guillaume Jacquemin 48210c7186 UESaveFile: prevent reloading data on save. 2021-09-22 19:46:41 +02:00
Guillaume Jacquemin f286ec0633 UESaveFile,GenericStructProperty: update at(). 2021-09-22 18:23:16 +02:00
Guillaume Jacquemin ce29d6174c UESaveFile: allow the class to be moved. 2021-09-22 18:22:48 +02:00
Guillaume Jacquemin de07b760d0 Add UESaveFile. 2021-09-22 17:37:50 +02:00