Commit Graph

23 Commits

Author SHA1 Message Date
Jack e1eb2a6f4b
Don't allow too many arguments to be sent to the map command (#673)
`map` should only take a single arg that specifies the map to load.
2024-03-02 15:29:58 +01:00
Jack 026adbebe5
Check OpenExternalWebBrowser custom flag better (#674)
Properly check string prefix to see if we should open it in browser
2024-03-02 15:29:02 +01:00
cat_or_not ec5dc504bf
Fix bad offsets of `sq_getfunction` (#672)
and remove duplicate assignment
2024-02-25 19:29:38 +01:00
Jan 30e58ac08b
Clean up wsock proxy code and move wsock build system logic (#671)
- moves `WSockProxy` to `wsockproxy/CmakeLists`
- remove exepath stuff from dllmain
  + its still done in loader.cpp because its used when reporting failure
- Disabled any Thread Library calls
  + we don't need to know about threads at all in the proxy
- yoink `wsock32.asm` into outer space
  + turns out, we can just call the function in a void shim since that wont touch the registers
- stop copying `wsock32.dll` to the game directory
  + this should improve the state of things when using the EA App
2024-02-18 22:11:09 +01:00
GeckoEidechse fc63948e09
Update default mods list URL (#662)
The default branch for the VerifiedMods repo was renamed from `master` to `main`.
2024-02-06 23:03:10 +01:00
Jack 73262ca616
Port navmesh debug renderer from primedev (#626)
Adds support for rendering navmeshes in-game using debug overlay

Cherry-picked from primedev, originally written by F1F7Y

Co-authored-by: F1F7Y <filip.bartos07@proton.me>
Co-authored-by: Maya <11448698+RoyalBlue1@users.noreply.github.com>
2024-02-05 18:01:22 +01:00
uniboi edf013952c
Plugin interfaces (plugins v4) (#615)
Replaces the current plugin api with source interfaces.

- backwards compatible
- no more json in binaries (wtf)
- does not rely on structs from third party libraries (wtf)
- actually initializes variables
- no more basically unused classes

The launcher exposes almost everything required by plugins in interfaces that allow for backwards compatibility.
The only thing that's passed to a plugin directly is the northstar dll HWND and a struct of data that's different for each plugin.
2024-02-04 02:14:46 +01:00
Jack 6ad955ae0a
ScopeGuard improvements (#651)
`std::function` introduced a layer of indirection that can be removed through templating the class.
2024-01-30 23:06:40 +01:00
Jack 350e6b1463
Remove unused variable in mod concommands (#652)
Remove unused variable that was also leaking memory
2024-01-27 14:16:11 +01:00
Jack abe5d029e5
Pull zlib from custom fork (#650)
Fixes builds failing due to 2e3d86c4e1
2024-01-24 22:58:18 +01:00
Jack 7f84bdf8fd
Address C4267 compiler warnings (#647)
Implicit conversion from `size_t` to a smaller type
2024-01-21 20:34:19 +01:00
Jack e72f0cbbac
Cherry-pick changes from more recent RapidJSON to reduce warnings (#646)
* fix C5054 (cherry-pick change from https://github.com/Tencent/rapidjson/pull/1817)

* fix C4099  in Rapidjson. Cherry-picks the following:
d87b698d0f
https://github.com/Tencent/rapidjson/pull/1568
2024-01-21 18:56:09 +01:00
Rémy Raes bf7b5e0a81
Add slow-speed timeout when downloading mod (#611)
Abort request if network connection is dropped or too slow.
2024-01-21 00:56:33 +01:00
GeckoEidechse c7edf9bf74
Always print masterserver response request id (#633)
Always print masterserver response request id to logs
2024-01-21 00:13:08 +01:00
Jack 447cace77f
Add and use ScopeGuard (#643)
Use a scope guard instead of `GOTO` statements for curl cleanup
2024-01-20 23:40:27 +01:00
Jan 7c9ffa1cab
Remove `structs.h` in favor of manual padding (#613)
- delete `structs.h`
- completely remove VPKFileEntry (its completely unused)
- convert all other instances of `OFFSET_STRUCT` to normal structs (this was automated and may be wrong)
- Update `m_bZooming` type from `uint32_t` to `bool`
2024-01-20 23:37:47 +01:00
Jack f2dd1583ef
Fix debug overlay not rendering script function stuff (#637)
Call our version of the function instead of native
2024-01-13 17:47:44 +01:00
cat_or_not f98513d71f
Add ban/kick concommand completion (#604)
Adds completion to ban and kick commands when typing them in in-game console.
2024-01-04 22:10:37 +01:00
Jack dcf6e1b1fd
Use .def for function exports (#625)
Cherry-picked from primedev

Co-authored-by: F1F7Y <filip.bartos07@proton.me>
2024-01-04 00:32:20 +01:00
Northstar a59c64becd Format cmake files 2024-01-04 00:01:43 +01:00
Northstar 36e1093620 Format cmake files 2024-01-03 23:39:55 +01:00
Jack a78b7d857f
Simplify vscript stub function (#627)
Since we can get stack info from the sqvm, we don't need to give the function name in the template and stuff.
Cherry picked from primedev
2023-12-30 23:59:56 +01:00
Jack f5ab6fb5e8
Folder restructuring from primedev (#624)
Copies of over the primedev folder structure for easier cherry-picking of further changes

Co-authored-by: F1F7Y <filip.bartos07@proton.me>
2023-12-27 01:32:01 +01:00