Commit Graph

569 Commits

Author SHA1 Message Date
Tixx 708da44fec Remove unused code 2024-10-20 16:57:47 +02:00
Tixx 6b6e304cfd Switch to std::async 2024-10-18 19:23:53 +02:00
Tixx 06cb366bb5 Add mutex to CoreSend 2024-10-16 23:12:02 +02:00
Tixx 0b35f0484f put blocking http requests on another thread 2024-10-16 23:12:02 +02:00
Lion 9dbbd8298d Switch to only timeout on connection (#140) 2024-10-15 19:32:55 +02:00
Tixx ca9dd1ae75 Switch to only timeout on connection 2024-10-14 20:29:19 +02:00
Lion 9ebd218856 Fix empty modlist (#136)
This PR fixes the launcher getting confused when the server sends an
empty mod list using the new downloading system.
Related server PR: https://github.com/BeamMP/BeamMP-Server/pull/377
2024-10-12 22:10:47 +02:00
Pranay Sanghai 43b02f0118 Update Check For Game Files
Beforehand, it would check only if the game directory existed. This would lead to an error if the game is moved through Steam since it leaves the BeamNG.Drive directory. Now it checks for integrity.json. I also removed some commented out code I left behind.
2024-10-12 21:15:10 +02:00
Tixx d9874ce70e Make return from parsemodinfo look better 2024-10-12 21:12:12 +02:00
Tixx 423519f31e Only listen on localhost ipv4 (#134)
This avoids the firewall popup on windows.
2024-10-12 20:58:29 +02:00
Tixx 3f12bb757a Mod info logs and check for old format 2024-10-10 21:35:27 +02:00
Lion Kortlepel 7d52e44434 only listen on localhost ipv4 2024-10-10 16:14:16 +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 Kortlepel 76cfc47a2f log invocation v2.2.0 2024-10-07 00:43:25 +02:00
Lion Kortlepel 7b59cb6f87 fix various commandline argument related things 2024-10-07 00:33:43 +02:00
Lion Kortlepel 0eba745d4c remove silly license 2024-10-07 00:33:29 +02:00
Lion 259b21502e Add command-line options (#90)
This PR adds command-line options as outlined in #74 

Closes #74
2024-10-06 23:49:47 +02:00
Tixx afac729505 Ixmplement game arguments for linux 2024-10-06 15:56:48 +02:00
Lion f57ebb7a92 follow HTTP redirects (#133)
Follow HTTP redirects on HTTP Get and Post functions
2024-10-06 15:20:49 +02:00
snepsnepsnep ace96b7e33 follow HTTP redirects 2024-10-05 23:45:50 +02:00
Lion Kortlepel fcb51adcb8 bump version 2024-10-05 21:05:02 +02:00
Tixx 0c53ff4cd4 Pass game arguments to beamng on windows 2024-10-05 18:34:39 +02:00
Tixx 68a4d64387 Fix linux relauch 2024-10-05 18:08:25 +02:00
Tixx 5bdd8c11da Fix relaunch 2024-10-05 18:01:47 +02:00
Tixx 47681cda50 Let user know about update even if --no-update was specified 2024-10-05 18:01:36 +02:00
Tixx c99fecfa1c Fix debug log 2024-10-05 17:26:14 +02:00
Tixx d26e0320e4 Add back support for old dev argument with warning 2024-10-05 17:26:14 +02:00
Tixx 57422a6105 Add optional dev config value 2024-10-05 17:20:40 +02:00
Tixx 467c8dc584 Add no-update flag 2024-10-05 17:20:40 +02:00
Tixx 2ddb576e72 Log core port 2024-10-05 17:20:40 +02:00
Tixx e242057583 Improve port cli flag 2024-10-05 17:20:40 +02:00
Tixx 06686688fc Move console clear to main to avoid clearing logs 2024-10-05 17:20:40 +02:00
Tixx aca61886d0 add command-line options 2024-10-05 17:20:40 +02:00
Lion 768f11f6ec Add mod hashing, improve download protocol (#129) 2024-10-04 23:36:57 +02:00
Lion 7944e9dbe8 Switch to curl for Get and Post (#132)
Because we can. I got a segfault while testing but then it didn't happen
again, so I'm tempted to call it done.
2024-10-04 23:23:49 +02:00
Lion Kortlepel 0c68f91fb2 remove debug print 2024-10-04 23:22:50 +02:00
Lion b8fdbc4ed9 Fix GetGamePath (#130)
Previously, the registry was used to get the local appdata folder for
the user folder. I've switched this over to a windows api function which
fixes some cases where the launcher wouldn't be able to find the appdata
folder in the registry.
2024-10-04 23:12:56 +02:00
Lion Kortlepel 85908e42d5 fix download code, error checking 2024-10-04 23:12:23 +02:00
Lion Kortlepel 5c77e60f29 remove mis-merged code 2024-10-04 23:04:30 +02:00
Lion Kortlepel c74455e0fe switch to curl for Get and Post 2024-10-04 22:59:29 +02:00
Lion dc13e4a03c remove extra return 2024-10-04 14:13:04 +02:00
Tixx 1d7eb64fe0 Get localappdata via winapi instead of registry 2024-10-03 22:42:49 +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