aboutsummaryrefslogtreecommitdiff
path: root/primedev
AgeCommit message (Collapse)Author
2024-09-17dedicated: Remove uses of Autohook from `dedicatedmaterialsystem.cpp` (#800)Jack
Removes AUTOHOOK macro from dedicatedmaterialsystem.cpp
2024-09-16dedicated: Remove uses of Autohook from `dedicated.cpp` (#799)v1.28.2-rc2Jack
Removes use of AUTOHOOK macro from dedicated.cpp
2024-09-12plugins: Remove duplicate sqvm destroy log (#822)v1.28.2-rc1uniboi
2024-09-08Set thread names for game threads (#666)v1.28.1-rc1v1.28.1v1.28.0-rc5v1.28.0-rc4v1.28.0p0358
Adds nice thread names that can be visible in crash dumps, non-attachable debuggers and generally in all places where old method of throwing exceptions to attached debugger on game start wouldn't work
2024-09-08Adjust for restructured `verified-mods.json` (#748)Rémy Raes
Updates the launcher code to deal with adjusted verified mods JSON structure from the default manifest source The idea here is to allow installing mods from other sources than Thunderstore.
2024-09-07Big rpak loading refactor (#766)v1.28.0-rc3v1.28.0-rc2Jack
This reworks how rpaks are loaded, unloaded and tracked. It allows for rpak reloading between map loads, meaning that skins and map overhauls could be enabled and disabled on the fly. Previous methods of loading rpaks still work.
2024-09-07Remove uses of Autohook from `logging.cpp` (#811)v1.28.0-rc1Jack
Remove AUTOHOOK_INIT
2024-09-05core: Remove use of `SourceInterface` for `IFileSystem` (#805)F1F7Y
`SourceInteface` class goes back to icepick and is not good. We have a replacement, let's use it.
2024-09-05game: Add more ways to crash to the `crash_test` concommand (#807)F1F7Y
Adds more types of crashes to the `crash_test` concommand
2024-09-02engine: Remove uses of Autohook from `host.cpp` (#802)v1.27.7-rc1Jack
Removes the AUTOHOOK macro from `host.cpp` and replaces it with HookAttach.
2024-09-02vscript: Move squirrel types to their respective files (#788)v1.27.6-rc4v1.27.6F1F7Y
Refactor logic to move Squirrel types to their own respective files and extend existing layouts in the process where applicable. Contains additional smaller fixes.
2024-09-02logging: Remove use of `SourceInterface` for `CGameConsole` (#803)v1.27.6-rc3F1F7Y
`SourceInteface` class goes back to icepick and is not good. We have a replacement, let's use it.
2024-09-02core: Remove use of `SourceInterface` for `CCvar` (#804)F1F7Y
`SourceInteface` class goes back to icepick and is not good. We have a replacement, let's use it.
2024-09-01Remove uses of Autohook from `gl_matsysiface.cpp` (#801)Jack
Removes AUTOHOOK macro from gl_matsysiface.cpp and replaces it with HookAttach
2024-08-31core: Remove uses of Autohook from `sourceinterface.cpp` (#798)Jack
Replaces the AUTOHOOK macro in `sourceinterface.cpp` with HookAttach.
2024-08-31client: Remove uses of Autohook from `languagehooks.cpp` (#787)v1.27.6-rc2Jack
Removes AUTOHOOK macro from `languagehooks.cpp`.
2024-08-31client: Remove uses of Autohook from `latencyflex.cpp` (#789)Jack
Removes AUTOHOOK macro from `latencyflex.cpp`.
2024-08-31core: Remove uses of Autohook from `hooks.cpp` (#796)Jack
Removes AUTOHOOK macro from `hooks.cpp`.
2024-08-31core: Remove uses of Autohook from `filesystem.cpp` (#795)Jack
Replace cases of autohook macro with manual hook calls
2024-08-30client: Remove uses of Autohook from `modlocalisation.cpp` (#792)v1.27.6-rc1v1.27.5-rc2v1.27.5Jack
Remove use of AUTOHOOK macro from `modlocalisation.cpp`
2024-08-30client: Remove uses of Autohook from `rejectconnectionfixes.cpp` (#793)Jack
Removes AUTOHOOK macro from `rejectconnectionfixes.cpp`.
2024-08-29Fix module callbacks related crash (#790)v1.27.5-rc1Jack
Check optional headers size Check size and address of the image directory
2024-08-28Remove uses of Autohook from `debugoverlay.cpp` (#786)v1.27.4-rc3v1.27.4Jack
Removes AUTOHOOK macros from `debugoverlay.cpp` and replaces them with `HookAttach`.
2024-08-28client: Remove uses of Autohook from `audio.cpp` (#777)Jack
Removes AUTOHOOK macros from `audio.cpp` and replaces them with `HookAttach`.
2024-08-27Remove uses of Autohook from `clientruihooks.cpp` (#783)v1.27.4-rc2Jack
Manually hook DrawRUIFunc Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH
2024-08-27Remove uses of Autohook from `clientvideooverrides.cpp` (#784)Jack
Run callbacks for nested modules, and prevent running callbacks multiple times for the same module. Manually hook BinkOpen Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH
2024-08-27Remove uses of Autohook from `clientauthhooks.cpp` (#782)Jack
Manually hook AuthWithStryder Manually hook Auth3PToken Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH
2024-08-27core: Remove unused `CModule` variable (#785)v1.27.4-rc1F1F7Y
Removes unused `CModule` var. CModule crashes when you give it a dll tha's been loaded as one of these: `LOAD_LIBRARY_AS_DATAFILE`, `LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE`, `LOAD_LIBRARY_AS_IMAGE_RESOURCE`. We have guards for this in libsys but not here.
2024-08-27hooking: run callbacks for imported modules (#780)v1.27.3-rc6v1.27.3Jack
Previously we only ran callbacks for modules loaded using WinAPI. This now also runs callbacks for modules imported by those loaded by WinAPI. This fixes callbacks for miles and bink dlls.
2024-08-26Format projectNorthstar
2024-08-25Fix manual hooks storing their name badly (#774)v1.27.3-rc4v1.27.3-rc3Jack
Fix manual hooks storing their name wrong and move to just using std::string since it's much more convenient and this isn't C
2024-08-25engine: restore `mat_crosshair_printmaterial` concommand (#763)F1F7Y
Restores the `mat_crosshair_printmaterial` concommand by reimplementing it's callback. Adds `CMaterialGlue` and `CShaderGlue` classes.
2024-08-23Format projectNorthstar
2024-08-23Try loading XInput 1.4 before trying to load 9.1.0 (#769)Barnaby
XInput 9.1.0 has some limitations to do with XInputGetCapabilities that may make the game behave differently when we use it as a replacement for XInput 1.3 XInput 1.4 doesn't have this issue, which means that if it works correctly we should always prioritise using this version over 9.1.0
2024-08-19Fix casing of `KERNEL32.DLL` (#768)v1.27.3-rc2v1.27.3-rc1Jack
This is a certified windows moment. Case insensitive but also not sometimes I guess
2024-08-18Refactor DLL callbacks (#665)Jack
Cherry-picked from primedev and slightly modified Co-authored-by: F1F7Y <filip.bartos07@proton.me>
2024-08-09Fix postload crash from missing `rpak.json` (#762)v1.27.2-rc2v1.27.2FourthVolt
Missing `rpak.json` would previously crash the game due to faulty boolean logic in the `if` statement. This change ensures that a missing `rpak.json` is handled gracefully.
2024-07-30Add CreateScriptInstance (#692)v1.27.1-rc1v1.27.1v1.27.0-rc1v1.27.0EladNLG
Adds a function that converts entities to SQObjects to the SquirrelManagers.
2024-07-30Only fetch MAD manifesto on server join (#751)Rémy Raes
Previously, the verified mods manifesto was fetched on game start without checking if the verified mod feature is enabled Squirrel-side; with this, the manifesto is only fetched when the user wants to download a mod (meaning they enabled the feature beforehand).
2024-07-28Fix logging sometimes not working (#754)v1.26.4-rc3v1.26.4Jack
Revert #741 and remove log message since it's not a big deal
2024-07-10Define `fs` alias in source file where used (#747)v1.26.4-rc2v1.26.4-rc1v1.26.3-rc3v1.26.3-rc2v1.26.3GeckoEidechse
for filesystem namespace instead of relying on implicit include Co-authored-by: Jan <sentrycraft123@gmail.com>
2024-07-10Fix typo in class member function (#750)GeckoEidechse
`pushSQObject` does not exist Co-authored-by: EladNLG <e1lad8955@gmail.com>
2024-07-10fix: Do not crash on unknown MAD manifesto format (#749)Rémy Raes
Verify JSON has attributes before trying to access them
2024-07-06Fix multiple audio file overrides (#677)v1.26.3-rc1v1.26.2v1.26.1-rc5v1.26.1-rc4v1.26.1Rémy Raes
This basically prevents audio files from being loaded into memory if matching audio event has already been overriden by a previous mod, preventing a crash from occurring. This means that audio mods now respect the load priority, i.e. mods with higher priority (= lower int value) will have priority over other mods on audio overrides.
2024-07-04Expose mods remote status to Squirrel VM (#684)v1.26.1-rc3v1.26.1-rc2v1.26.1-rc1v1.26.0-rc4v1.26.0-rc3v1.26.0Rémy Raes
Add a Squirrel VM method to know if a given mod is remote or not.
2024-07-04Make Script Errors from Northstar Callbacks Fatal (#698)v1.26.0-rc2EladNLG
Because: - Errors are incredibly confusing when non-fatal - there is no indicator that an error is happening - The error is unknown without a try/catch block - Errors cannot be tracked to a line, or file, and its location has to be figured out manually - They can throw a game into an unexpected state with no indicator, confusing both players AND developers
2024-07-04Properly handle invalid cvar replications without blocking netmessage (#408)v1.26.0-rc1BobTheBob
Properly handle invalid cvar replications without blocking netmessage entirely and restore `ns_server_name` replication
2024-06-28Remove unused typedefs from precompiled header (#737)v1.25.4-rc2v1.25.4Jan
2024-06-28Remove precompiled header from wsock proxy (#739)Jan
The wsock proxy is so small and self contained that it really does not benefit from a precompiled header.
2024-06-28Remove EXPORT macro from precompiled header (#738)Jan
as its used once and does not warrant being in the precompiled header