457bb5e89f
Update coding style.
...
Magnum's type names are fine, but I'd rather limit what depends on
Magnum as much as possible. Vector types are still allowed, though. No
way I'll write my own.
2022-12-13 21:11:54 +01:00
5144121812
Match the new coding style I use.
2022-12-13 21:11:53 +01:00
28eb40f6b4
PropertySerialiser: remove logging for missing serialisers.
...
It's spammy when dealing with most structures in the save files.
2022-11-24 10:45:37 +01:00
d0a3375d7a
Serialisers: use Logger.
2022-11-24 09:12:41 +01:00
393ec4a372
UESaveFile: use Logger.
2022-11-22 11:03:45 +01:00
55eb367eb2
UESaveFile: fix a bug that shouldn't have been there in the first place.
2022-05-03 20:25:32 +02:00
b598476809
UESaveFile: fix a bug when working with a temp file.
2022-04-17 12:46:25 +02:00
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
6b280b2668
UESaveFile: add a new API and change some stuff.
2022-04-02 19:53:58 +02:00
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
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
88afaaceec
UESaveFile/Serialisers: make types() return an ArrayView of Strings.
...
It's the best way to avoid dangling views for now.
2022-03-06 14:29:09 +01:00
fdb7567aea
PropertySerialiser: make into a singleton.
...
Also update UESaveFile to match.
2022-03-06 13:21:56 +01:00
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
7cb9ea28b2
BinaryReader: add a way to read arbitrary types.
2022-02-16 11:47:49 +01:00
975f471a68
BinaryReader: add a way to seek into the file.
2022-02-14 09:31:20 +01:00
76210e147a
BinaryWriter: add a way to access the temp array.
...
That way, I'll be able to easily compute the CRC32 of it.
2022-02-13 15:09:07 +01:00
5e06c48492
BinaryWriter: fix an issue with writeValueToArray().
...
The view needs to be of type T, not U (which can potentially be T&).
2022-02-13 15:03:45 +01:00
8f1e3668a3
BinaryWriter: allow writing string literals.
2022-02-12 11:21:23 +01:00
a6c0614979
BinaryWriter: make non-copyable.
2022-02-11 19:44:16 +01:00
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
bd8ff47f1e
Mass: fix data ordering issue with joint sliders.
2021-11-01 11:19:34 +01:00
3714162b50
UnrealPropertyBase: initialise valueLength.
2021-10-05 10:31:06 +02:00
2b2320ae0a
UESaveFile: clear properties when reloading data.
2021-09-27 16:21:39 +02:00
911e18fc0a
UESaveFile: add a few sanity things.
2021-09-27 16:16:47 +02:00
0c257bcfa6
GenericStructProperty: remove a redundant function.
2021-09-25 15:46:01 +02:00
79e3193309
ArrayProperty: update at() to cast as well.
2021-09-23 21:54:59 +02:00
1caa472833
UESaveFile: add more error messages.
2021-09-23 18:25:28 +02:00
d3d065c945
StructSerialiser: fix serialisation of array'd structs.
...
Not all of them are generic structs, after all.
2021-09-23 18:24:55 +02:00
b8b156a724
Add a serialiser for struct sttResourceItemValue.
2021-09-23 15:09:18 +02:00
9c1aeb753e
UESaveFile: add API to append a property.
2021-09-23 15:08:20 +02:00
0006c90a21
UESaveFile: add sanity check when reading files.
2021-09-23 15:07:29 +02:00
0826d4aede
UESaveFile: close the file after we're done writing to it.
2021-09-22 21:50:39 +02:00
b3220ca8e1
MapPropertySerialiser: fix serialisation of demo saves.
2021-09-22 21:50:08 +02:00
48210c7186
UESaveFile: prevent reloading data on save.
2021-09-22 19:46:41 +02:00
f500e982e6
MapPropertySerialiser: add support for demo props.
2021-09-22 19:35:16 +02:00
2e1949ed5d
BytePropertySerialiser: add support for demo props.
2021-09-22 19:16:33 +02:00
10becfdc31
PropertySerialiser: add an explicit cast.
2021-09-22 18:25:15 +02:00
f286ec0633
UESaveFile,GenericStructProperty: update at().
2021-09-22 18:23:16 +02:00
ce29d6174c
UESaveFile: allow the class to be moved.
2021-09-22 18:22:48 +02:00
de07b760d0
Add UESaveFile.
2021-09-22 17:37:50 +02:00