Commit graph

473 commits

Author SHA1 Message Date
938bf7b8b5 Logger: go back to outputting to the console.
Considering I went back to Windows, this is gonna be better than
outputting to a file.
2023-10-29 15:24:27 +01:00
389dabfc77
SaveTool: separate update checking mechanism.
THIS IS BROKEN, ONLY BUILD THIS COMMIT FOR DEBUGGING PURPOSES!
2023-10-29 11:32:17 +01:00
07cbaefeac
General code maintenance. 2023-10-29 11:31:21 +01:00
f9aa4bc817
SaveTool: Update the M.A.S.S. viewer weapon screen. 2023-10-29 10:48:31 +01:00
e634ef037d
Change how the project version is defined. 2023-10-29 10:40:02 +01:00
bb85c3d6b0
src/CMakeLists: make project less Windows-only. 2023-10-29 10:36:46 +01:00
b19c3e0025
Logger: indent some preprocessor stuff.
Should have been indented from the get-go, but I forgot about it.
2023-09-30 11:06:19 +02:00
1851867b7e
Update copyright year.
This was long overdue...
2023-09-02 18:30:29 +02:00
d612b0afe6
SaveTool: various fixes for HiDPI screens. 2023-09-02 14:28:28 +02:00
f7a8962194
main,SaveTool,Configuration: further Wine support. 2023-08-31 12:34:34 +02:00
ecdf7d736f
SaveTool: add a TODO for later. 2023-08-28 15:47:39 +02:00
3fc9243c81
Logger: also output to a file in debug mode.
CLion can't grab stdout on Wine/Proton, so this is the only way to get any
kind of output there.
2023-08-28 15:46:13 +02:00
81430de345
main: support running the app in Wine/Proton.
Turns out the flag I used for SHGetKnownFolderPath() is not only deprecated
starting with Win10 1703, but it also isn't implemented in Wine. It also was
completely useless because the Save Tool isn't a "packaged process", as the
docs call it. Ah, the joys of using WinAPI...
2023-08-28 15:03:11 +02:00
39d71a7a09
SaveTool: remove licences for third-party deps.
This should thin the exe up a bit.
2023-08-28 13:32:06 +02:00
4b3912f6ef
src/CMakeLists: change how deps are linked to.
This might break submodule builds on MSYS2. Not like I care anyway, as they
were already broken on my Arch rig.
2023-08-28 13:17:54 +02:00
c4f061aa65 CMakeLists: reorganise the sub-libs. 2023-01-13 10:03:28 +01:00
dc8fd24cb7 CMakeLists: we're working on 1.5 now. 2023-01-13 10:03:24 +01:00
5f43e143dc CMakeLists: change how defines are handled. 2023-01-13 10:02:29 +01:00
03472e56dc Profile,SaveTool: change how materials are handled. 2023-01-13 10:02:29 +01:00
8e0f0e5beb SaveTool: update a TextUnformatted() call. 2023-01-13 10:02:29 +01:00
9c074c24bd 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.
2023-01-13 10:02:29 +01:00
3c2cb001ff Match the new coding style I use. 2023-01-13 10:02:29 +01:00
c1701c19f4 Configuration: add missing licence text. 2023-01-13 10:02:29 +01:00
e336b37d81 SaveTool: move the configuration to its own class. 2023-01-13 10:02:29 +01:00
5ce73712cc SaveTool: add a wrapper over ImGui::Checkbox().
This way, I can make it work like radio buttons or selectables.
2023-01-13 10:02:29 +01:00
7b64d78b5b CMakeLists: bump version number. 2022-12-13 22:53:47 +01:00
59aa006611 Profile: actually fix the fix. 2022-12-13 22:53:36 +01:00
81b35476a0 CMakeLists: bump version number. 2022-12-13 21:08:30 +01:00
b909f0ac13 Profile: fix bug in material saving when array doesn't exist. 2022-12-13 21:03:43 +01:00
aff84ccc96 SaveTool: minor formatting changes. 2022-12-01 23:39:53 +01:00
8177d61755 SaveTool: fix some string-related issues. 2022-12-01 23:38:54 +01:00
c0943bd084 Bump version number. 2022-11-30 10:03:57 +01:00
6fa21128ab SaveTool: improve FPS capping mechanism. 2022-11-30 10:03:45 +01:00
a8ab212931 Bump version number. 2022-11-27 08:58:54 +01:00
9de6766750 SaveTool: add the libcurl version to the about screen. 2022-11-26 11:31:14 +01:00
90ff680aff Main: fix Clang builds.
For some reason, only GCC has setlocale() wrapped in the std namespace.
2022-11-26 11:30:48 +01:00
07fca7b0d0 SaveTool: make the update checker split on CRLF, not just LF.
Just in case...
2022-11-25 17:34:42 +01:00
4ea694ea6e SaveTool: add advanced mode.
This'll help hide undocumented values.
2022-11-25 17:10:56 +01:00
722cc511d6 Main: don't forget to initialise Logger.
Especially on release builds...
2022-11-25 17:10:26 +01:00
924838ecb4 Logger: cleanup. 2022-11-25 17:10:01 +01:00
dfd0d56ab0 Profile,SaveTool: add support for T6 materials. 2022-11-25 16:25:56 +01:00
89a10ff98d Maps/LastMissionId: update for version 0.9. 2022-11-25 15:19:37 +01:00
71fde374a9 Maps/StoryProgress: update for 0.9. 2022-11-25 15:19:21 +01:00
c7cc3ba76c Maps/WeaponParts: added the new ranged base parts. 2022-11-25 11:47:12 +01:00
0aa933e766 SaveTool: change the SDL version check. 2022-11-25 11:46:47 +01:00
5ea6f1e3a7 SaveToo: add HiDPI support to ImGui.
I... kinda forgot to do that.
2022-11-25 11:46:14 +01:00
32046d9bf8 Update dependencies and adapt to changes. 2022-11-25 10:33:55 +01:00
3c4dfbda9a SaveTool: make the weapon part selector focus on the current item. 2022-11-25 09:43:32 +01:00
d1712bf8cb Mass: add logging indentation to refreshValues(). 2022-11-25 09:43:11 +01:00
567546489f Maps/Accessories: update with 0.9 accessories.
Also update formatting for better readability.
2022-11-25 09:42:44 +01:00
c054169124 SaveTool: update formatting of accessory numbers. 2022-11-24 11:13:08 +01:00
b58ff5a763 Maps/Accessories: separate the size from the label.
That now means it's possible to filter the accessory list by accessory
size.
2022-11-24 10:46:58 +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
83e9169dae MassManager: use Logger ***everywhere***. 2022-11-22 10:35:05 +01:00
8625f8835c SaveTool: use Logger. 2022-11-22 10:34:25 +01:00
c3a9c8dd31 ToastQueue: use strings for data instead of views.
Why the fuck didn't I catch that sooner ?
2022-11-22 10:23:53 +01:00
51b25ea9c5 MassManager: use Logger _everywhere_. 2022-11-22 10:06:22 +01:00
1421257c4f SaveTool: some more cleanup. 2022-11-21 20:47:09 +01:00
df5fa7a39e SaveTool: remove the FPS cap implementation.
I should port the code from my raycaster engine to here.
2022-11-21 20:40:10 +01:00
c5b4747685 SaveTool: clean things up a bit. 2022-11-21 20:37:28 +01:00
7ddc8e0748 Main: edit a message. 2022-11-21 19:28:49 +01:00
7392d961c7 SaveTool: update formatting. 2022-11-21 19:28:37 +01:00
fa81d2428e SaveTool: increase reliability. 2022-11-21 19:22:03 +01:00
79c97733db ProfileManager: use Logger. 2022-11-21 19:21:49 +01:00
060daebe17 SaveTool: improve reliability. 2022-11-21 19:09:18 +01:00
8cf5351f0b Profile: use Logger. 2022-11-21 19:03:18 +01:00
e795e276da Profile(Manager),SaveTool: get rid of that legacy nonsense. 2022-11-21 19:03:00 +01:00
bf820f65ec Profile: setResource() now can create an array if it's missing. 2022-11-21 18:59:30 +01:00
fb6246cff7 Profile: ensure a profile is invalid if the GVAS underneath is too. 2022-11-21 18:58:57 +01:00
7257b9865c Profile: clean headers up a bit. 2022-11-21 18:58:19 +01:00
45bc2b97d9 Profile: add property names. 2022-11-21 18:58:01 +01:00
9de62db449 MassManager: use Logger. 2022-11-21 18:12:42 +01:00
44656b32d5 Mass: use Logger.
Oh, and some stuff didn't initially get logged, so now I can have better
insight in case of errors.
2022-11-21 18:01:29 +01:00
9ec88fa521 Mass: QoL changes.
Now property names are behind defines, so if a name changes, I don't
have to hunt it down in up to six source files.
2022-11-21 18:00:38 +01:00
ee540b601e Mass: do some header cleanup. 2022-11-21 12:31:01 +01:00
fe10bbb3f3 Main: use Logger. 2022-11-21 10:17:13 +01:00
bb066d3134 CMakeLists: add Logger from the old 1.4 branch. 2022-11-21 10:15:10 +01:00
e21e7a1aba Main: add processor detection. 2022-11-21 09:51:21 +01:00
714d8cc6bb Main: force UTF-8 locale. 2022-11-21 09:50:43 +01:00
a33cbdfad6 SaveTool: fix includes. 2022-11-21 09:49:01 +01:00
b7cd78ca21 Main: reformat includes. 2022-11-21 09:48:33 +01:00
453c5391a4 Main: Improve some dialogs. 2022-11-21 09:47:21 +01:00
05611d59b1 Main: update log. 2022-11-21 09:30:38 +01:00
a5a8db289a Main: update formatting. 2022-11-21 09:30:13 +01:00
6130734764 Application.manifest: add HiDPI and force UTF-8 codepage. 2022-11-21 09:29:51 +01:00
16b8807eb7 SaveTool: remove unsafe mode.
It was just not good at all.
2022-11-21 09:20:21 +01:00
f1ea2bda25 CMakeLists: officially start work on version 1.4. 2022-11-21 09:20:21 +01:00
42cec59c71 CMakeLists: improve formatting. 2022-11-21 09:20:21 +01:00
e6c597ffbc Disable Interconnect.
Nope, it's just not needed.
2022-11-21 09:20:02 +01:00
6cb52761be Bump version number. 2022-07-06 17:23:34 +02:00
6f2b19dbc3 SaveTool: fix a condition. 2022-07-06 17:22:55 +02:00
e61d4bba85 Adapt to Corrade/Magnum changes. 2022-07-06 17:22:40 +02:00
8ba8ec3219 CMakeLists: bump version number. 2022-05-03 20:29:18 +02:00
55eb367eb2 UESaveFile: fix a bug that shouldn't have been there in the first place. 2022-05-03 20:25:32 +02:00
b6398f3373 CMakeLists: bump version number. 2022-04-17 13:50:09 +02:00
b598476809 UESaveFile: fix a bug when working with a temp file. 2022-04-17 12:46:25 +02:00
0ce03f5395 CMakeLists: bump version number. 2022-04-15 12:20:04 +02:00
0fd157f33c SaveTool: add weapon part mappings and the ability to change parts.
With that, I think I'm ready to push 1.3.2.
2022-04-15 11:05:01 +02:00
918ead0733 SaveTool: add "unequip" button to shield parts and BL projectiles.
It doesn't actually unequip them (the game has no concept of that,
unlike accessories), but replaces the ID with one that doesn't exist.
2022-04-08 14:33:17 +02:00
42b4974b43 SaveTool: make the weapon part radio buttons match the game. 2022-04-08 14:12:56 +02:00
c35735b2fc SaveTool: fix an issue with the damage type radio buttons. 2022-04-08 14:12:14 +02:00
32a1a6d014 Mass: fix a bug when writing armour parts. 2022-04-08 12:44:30 +02:00
71d38f4a91 SaveTool,MassManager: improve staged file updates.
No need to redo the whole staged list when only one file gets updated.
Considering the call to refreshStagedMasses() is blocking (I might look
into threading stuff), its time complexity is O(n) at worst, which can
be bad on slower systems.
2022-04-04 10:37:09 +02:00
869ca07b20 SaveTool: remove an extraneous call to data().
Corrade arrays implicitly decay to their T* form (wchar_t here), after
all.
2022-04-04 09:58:12 +02:00
c1ae793800 SaveTool: add a help marker for the melee effect colour picker. 2022-04-04 09:22:12 +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
704f6e2f49 Maps: why was this double-indented ?
WTF, CLion ?
2022-04-02 21:44:50 +02:00
dbc52ec28f SaveTool: allow changing the equipped accessory. 2022-04-02 21:34:45 +02:00
11c089d408 Mass,Profile: improve safety by checking the save type. 2022-04-02 19:54:32 +02:00
6b280b2668 UESaveFile: add a new API and change some stuff. 2022-04-02 19:53:58 +02:00
213269521d Maps: update the accessory map. 2022-04-02 19:53:34 +02:00
b6ad795383 SaveTool: fragment files more.
SaveTool.cpp was getting on the unmanageable side.
2022-04-01 09:36:33 +02:00
94979907b1 SaveTool::drawAbout(): update for cpr removal, add a link, fix various issues.
That function was in _dire_ need of an update...
2022-03-31 19:20:11 +02:00
a36d9134bf SaveTool: update formatting. 2022-03-31 18:43:39 +02:00
0e3e3145b7 MassManager: update formatting. 2022-03-31 17:58:47 +02:00
3be094febc ToastQueue: make toasts wrap instead of cutting them off. 2022-03-31 17:58:37 +02:00
a166948aec SaveTool: remove dependency on cpr, switch to raw libcurl.
Took me pretty much a whole day, but I managed to do it.
2022-03-31 17:57:53 +02:00
b909aa85b7 SaveTool: handle error code 0 (blocked by firewall). 2022-03-31 09:00:57 +02:00
94f6192aa8 CMakeLists: bump version number.
I'm technically working on 1.3.2, so...
2022-03-30 21:58:36 +02:00
5705f408a5 MassManager: this piece of code is in SaveTool.
Why the Hell is it still here ?
2022-03-30 20:35:04 +02:00
4ed7aff835 MassManager: change how hangars are handled. 2022-03-30 20:34:37 +02:00
718a6fd754 Mass: improve logging. 2022-03-30 19:51:00 +02:00
677bf21c9f Mass: slight formatting update.
Seriously, how did this slip through the cracks ?
2022-03-30 19:46:09 +02:00
2c2e5ad936 SaveTool: remove the dependency on json.hpp. 2022-03-30 15:15:54 +02:00
ef05c075ba main: improve logging. 2022-03-30 14:18:23 +02:00
14d75e0e83 Save Tool: improve logging and reorganise stuff. 2022-03-30 14:18:08 +02:00
63a8cf7075 SaveTool: fix another bug in the updater. 2022-03-28 09:58:22 +02:00
bf3288772e SaveTool: ensure old_filename isn't SSO'd so it can be released. 2022-03-28 09:46:29 +02:00
bde6fc41a0 Main: don't include <fstream> in debug builds. 2022-03-27 22:09:56 +02:00
ac1276761e SaveTool: fix "external changes detected" on saving in the tool.
I hope.
2022-03-22 09:59:30 +01:00
fd3306b175 CMakeLists: bump version number. 2022-03-21 16:47:44 +01:00
cf72cbe2c6 SaveTool: fix a bug in the update checker. 2022-03-21 16:47:29 +01:00
f4adb9e26a SaveTool: fix a few bugs. 2022-03-21 16:31:29 +01:00
592fd2ba3a SaveTool: what is that comment doing here ? 2022-03-21 15:37:06 +01:00
84b1e276a1 SaveTool: don't pass a StringView to ImGui, it doesn't like that. 2022-03-21 15:36:49 +01:00
0c8c2601ce CMakeLists: bump version number. 2022-03-21 15:22:46 +01:00
147c38669f StoryProgress: add missing story events as well as the "new" chapter 3. 2022-03-21 15:21:45 +01: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
133c34f5f7 SaveTool: make the tuning tab present only in debug builds. 2022-03-20 11:32:08 +01:00
47890f6939 ArmourSets: add Axial Core. 2022-03-20 11:31:37 +01:00
354c3ff3d9 LastMissionId: add missing IDs. 2022-03-20 11:31:15 +01:00
04beebbc1c SaveTool: implement the UI for BL placement editing. 2022-03-20 10:17:14 +01:00
47520b89e3 Mass: implement BL attachment writing.
Needs testing, though.
2022-03-20 10:16:39 +01:00
ce0ca07afc SaveTool: various UI tweaks. 2022-03-20 09:14:46 +01:00
e91c015c00 SaveTool,ProfileManager: make backups 0.8-ready. 2022-03-20 09:14:11 +01:00
75d77413f6 Mass: add a new value to BulletLauncherSockets.hpp. 2022-03-13 15:26:00 +01:00
ddad6536c6 Mass: fix a condition. 2022-03-13 15:25:11 +01:00
d9f6470dc6 Mass: make the code look in the right places.
Time to facepalm...
2022-03-13 11:02:43 +01:00