Commit Graph

86 Commits

Author SHA1 Message Date
Katharine Chui 809080c9aa use RecvWaitAll outside of VehicleEvent.cpp as well 2026-04-30 19:58:05 +02:00
Tixx b9cc025083 Check hashes after downloading 2025-07-25 23:50:16 +02:00
Tixx 8025c0884f Fix download path generation 2025-06-19 17:56:59 +02:00
Tixx 9c53f86593 Convert GetGamePath() to fs::path 2025-06-08 14:01:23 +02:00
Tixx e0257e9526 Update NewSyncResources logs to use wstring 2025-06-08 13:51:16 +02:00
Tixx 6c740e2562 Fix merge 2025-06-08 13:34:15 +02:00
Tixx 06c741edc5 Fix wstring for windows and add crossplatform code for fs strings 2025-06-08 13:34:15 +02:00
Tixx 5e448dc34f Switch to wstring for paths on windows 2025-06-08 13:34:15 +02:00
Tixx a8cd208208 Make duplicate mod detection more readable
Co-authored-by: SaltySnail <51403141+SaltySnail@users.noreply.github.com>
2025-06-08 12:37:35 +02:00
Tixx 2529146d5a Implement DeleteDuplicateMods option 2025-06-08 12:37:32 +02:00
Tixx b1ebcfc18d Fix mod protection message 2025-05-27 22:12:07 +02:00
Tixx 187ef3b24f Show cached mods being loaded in download progress 2025-05-27 22:09:52 +02:00
Tixx 943889d588 Fix mod downloading progress 2025-05-27 22:08:50 +02:00
Tixx 0341d401e7 Download check (#184)
This PR makes it so that the mod hash and download confirmation are
verified before proceeding.

---

By creating this pull request, I understand that code that is AI
generated or otherwise automatically generated may be rejected without
further discussion.
I declare that I fully understand all code I pushed into this PR, and
wrote all this code myself and own the rights to this code.
2025-05-05 23:46:32 +02:00
Tixx d3263acead Log corrupted download confirmation 2025-05-01 20:54:28 +02:00
Tixx 4de0bc9a40 Check download confirmation packet 2025-05-01 20:47:16 +02:00
Tixx 25a1061700 Verify mod hash after downloading 2025-05-01 20:42:01 +02:00
Tixx dc78883451 Notify user about missing protected mods 2025-04-01 09:09:49 +02:00
Tixx dd5256ae22 Increase download speed calculation precision 2025-03-29 00:19:25 +01:00
Tixx e24cbf61bb Only fail on socket error or connection closed 2025-03-29 00:19:24 +01:00
Tixx 472e2d16b6 Fix recv return type and better download error handling 2025-03-29 00:19:24 +01:00
Tixx d52a791dd9 Create mods.json if its missing 2025-01-18 22:29:49 +01:00
Tixx 649514ca1a Save mod usage date 2024-12-24 13:53:50 +01:00
Tixx c485fba26b Change an easily confusable warning to debug 2024-12-22 12:13:59 +01:00
Tixx d35567dd47 Look for new mods in the old format 2024-12-22 12:07:25 +01:00
Tixx 46e6fda26e Update license header 2024-12-07 11:26:09 +01:00
Tixx d9874ce70e Make return from parsemodinfo look better 2024-10-12 21:12:12 +02:00
Tixx 3f12bb757a Mod info logs and check for old format 2024-10-10 21:35:27 +02:00
Tixx 4fbd25b551 Handle new modlist being empty but still valid 2024-10-09 19:41:38 +02:00
Tixx 3cf1a2e51b Add mod info debug log 2024-10-09 19:39:27 +02:00
Lion Kortlepel 49874fd633 Revert "remove 'D' socket initialization code"
This reverts commit 6a23518eff.
2024-10-09 18:00:43 +02:00
Lion Kortlepel 6a23518eff remove 'D' socket initialization code 2024-10-09 17:36:54 +02:00
Lion Kortlepel 3297b3e62e fix not recognizing empty mod lists on new mod list 2024-10-09 17:35:50 +02:00
Lion dc13e4a03c remove extra return 2024-10-04 14:13:04 +02:00
Lion Kortlepel 1676d4174e make mods not keep the hash when copying them 2024-09-29 02:36:41 +02:00
Lion Kortlepel ad468a8971 remove debug prints 2024-09-29 02:04:39 +02:00
Lion Kortlepel d3805f2cfd fix mod deleting misnamed mods 2024-09-29 01:57:15 +02:00
Lion Kortlepel 9f1cc15b15 fix bugs with new download 2024-09-29 01:15:57 +02:00
Lion Kortlepel c0fb4e4ad6 implement support for new mod hashing and download 2024-09-29 00:33:15 +02:00
Lion Kortlepel cbb5502a40 send download speed to game UI, bump version to 2.1.4 2024-09-24 21:50:09 +02:00
Lion Kortlepel d6dfe85f69 add download speed to ingame ui 2024-09-24 21:10:10 +02:00
Lion Kortlepel 19d1245379 catch errors when the custom caching directory is not accessible
🧯
2024-09-23 22:39:44 +02:00
Lion Kortlepel 1362471657 add CachingDirectory config setting to cache mods elsewhere
also moved cls/clear to the beginning, idk wtf it was doing in there.
2024-09-23 22:31:58 +02:00
Lion Kortlepel 1260515a40 fix crash when cancelling download 2024-09-22 20:20:31 +02:00
Lion 007cd6573e Refactor downloading (#116)
The way it was done was so horrid, it was not only impossible to debug,
with TODO comments saying it sucks, and other shit like that, but it was
also just full of data races. You can rest easy however - I left most of
the data races in there <3 For nostalgia (totally not because it's a
massive pain to fix that).

We now do single-threaded download, which can not only saturate my 100
Mbit/s line without any hickups, it can also go up to ~600000 Mbit/s for
localhost transfers :) So I think it's fine.
2024-09-22 20:04:45 +02:00
Lion Kortlepel 96c9c89238 add extra layer of checks for data races in download
yeah
2024-09-22 19:52:52 +02:00
Lion Kortlepel 191fbf083d fix stupid microsoft macro <3 2024-09-22 19:06:46 +02:00
Lion Kortlepel 8c4342853a refactor downloading
The way it was done was so horrid, it was not only impossible to debug,
with TODO comments saying it sucks, and other shit like that, but it was
also just full of data races. You can rest easy however - I left most of
the data races in there <3 For nostalgia (totally not because it's a
massive pain to fix that).

We now do single-threaded download, which can not only saturate my 100
Mbit/s line without any hickups, it can also go up to ~600000 Mbit/s for
localhost transfers :) So I think it's fine.
2024-09-22 18:52:50 +02:00
Tixx a128099619 Patch up removal of while loop in Core 2024-09-14 22:17:21 +02:00
Tixx ac2db7c73f Remove now unused variable 2024-09-14 22:17:21 +02:00