Commit graph

779 commits

Author SHA1 Message Date
Rémy Raes
8c546ed68c
Adjust for restructured verified-mods.json (#748)
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-08 00:27:44 +02:00
Jack
160f503bc8
Big rpak loading refactor (#766)
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-07 22:10:28 +02:00
Jack
dab57649ca
Remove uses of Autohook from logging.cpp (#811)
Remove AUTOHOOK_INIT
2024-09-07 17:47:34 +02:00
F1F7Y
27f478e7a2
core: Remove use of SourceInterface for IFileSystem (#805)
`SourceInteface` class goes back to icepick and is not good. We have a replacement, let's use it.
2024-09-05 15:22:52 +02:00
F1F7Y
68d374dbac
game: Add more ways to crash to the crash_test concommand (#807)
Adds more types of crashes to the `crash_test` concommand
2024-09-05 10:10:07 +02:00
GeckoEidechse
e5c9e5d699
Add dependabot config to check for GitHub Actions updates (#814) 2024-09-04 23:00:04 +02:00
GeckoEidechse
b75daf36ad
Bump clang-format-lint-action to v0.18.2 (#813)
which is the newest upstream version currently
2024-09-04 22:05:23 +02:00
GeckoEidechse
8f6f81caa5
Ensure whitespace indentation is consistent in Dockerfile (#809) 2024-09-03 23:53:31 +02:00
GeckoEidechse
f9cb7d12c1
Update build instructions and CI for build subfolder (#808)
Update build instructions for compiling from command line or both Windows and Linux
Update CI to build into CI subfolder to match suggested build instructions
Update gitignore in regards to build directory

Co-authored-by: F1F7Y <64418963+F1F7Y@users.noreply.github.com>
2024-09-03 15:49:28 +02:00
Jack
261fcdaec4
engine: Remove uses of Autohook from host.cpp (#802)
Removes the AUTOHOOK macro from `host.cpp` and replaces it with HookAttach.
2024-09-02 19:47:38 +02:00
F1F7Y
ce21abe9c4
vscript: Move squirrel types to their respective files (#788)
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-02 17:50:37 +02:00
F1F7Y
79fbb9b9a7
logging: Remove use of SourceInterface for CGameConsole (#803)
`SourceInteface` class goes back to icepick and is not good. We have a replacement, let's use it.
2024-09-02 17:11:47 +02:00
F1F7Y
669fdaed4c
core: Remove use of SourceInterface for CCvar (#804)
`SourceInteface` class goes back to icepick and is not good. We have a replacement, let's use it.
2024-09-02 17:10:57 +02:00
Jack
96c34f64ab
Remove uses of Autohook from gl_matsysiface.cpp (#801)
Removes AUTOHOOK macro from gl_matsysiface.cpp and replaces it with HookAttach
2024-09-01 19:44:04 +02:00
Jack
f2d07f5d19
core: Remove uses of Autohook from sourceinterface.cpp (#798)
Replaces the AUTOHOOK macro in `sourceinterface.cpp` with HookAttach.
2024-08-31 17:25:59 +02:00
Jack
cb62662816
client: Remove uses of Autohook from languagehooks.cpp (#787)
Removes AUTOHOOK macro from `languagehooks.cpp`.
2024-08-31 11:42:55 +02:00
Jack
4d609a8d1c
client: Remove uses of Autohook from latencyflex.cpp (#789)
Removes AUTOHOOK macro from `latencyflex.cpp`.
2024-08-31 11:34:12 +02:00
Jack
a60c2738a2
core: Remove uses of Autohook from hooks.cpp (#796)
Removes AUTOHOOK macro from `hooks.cpp`.
2024-08-31 11:31:08 +02:00
Jack
e73ede2ef8
core: Remove uses of Autohook from filesystem.cpp (#795)
Replace cases of autohook macro with manual hook calls
2024-08-31 01:36:03 +02:00
Jack
4ff226d7fc
client: Remove uses of Autohook from modlocalisation.cpp (#792)
Remove use of AUTOHOOK macro from `modlocalisation.cpp`
2024-08-30 09:05:54 +02:00
Jack
db353e6837
client: Remove uses of Autohook from rejectconnectionfixes.cpp (#793)
Removes AUTOHOOK macro from `rejectconnectionfixes.cpp`.
2024-08-30 09:00:55 +02:00
Jack
46478a36af
Add GitHub Action to automatically label PRs (#794)
Adds "needs code review" and "needs testing" to all new PRs
2024-08-30 00:34:39 +02:00
Jack
efecb84a9f
Fix module callbacks related crash (#790)
Check optional headers size
Check size and address of the image directory
2024-08-29 18:48:27 +02:00
GeckoEidechse
c9059104ab
Add code review and testing sections to pull request template (#791) 2024-08-29 17:07:26 +02:00
Jack
6a26194710
Remove uses of Autohook from debugoverlay.cpp (#786)
Removes AUTOHOOK macros from `debugoverlay.cpp` and replaces them with `HookAttach`.
2024-08-28 09:22:08 +02:00
Jack
39c2ec9c09
client: Remove uses of Autohook from audio.cpp (#777)
Removes AUTOHOOK macros from `audio.cpp` and replaces them with `HookAttach`.
2024-08-28 09:18:37 +02:00
GeckoEidechse
37452ee2db
Document coding standards (#779)
Adds documentation explaining the coding standards to follow.

Co-authored-by: F1F7Y <64418963+F1F7Y@users.noreply.github.com>
2024-08-28 02:26:42 +02:00
Jack
dafd7ab5cf
Remove uses of Autohook from clientruihooks.cpp (#783)
Manually hook DrawRUIFunc
Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH
2024-08-27 23:31:31 +02:00
Jack
3a930e481a
Remove uses of Autohook from clientvideooverrides.cpp (#784)
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-27 23:13:35 +02:00
Jack
aec239ddd7
Remove uses of Autohook from clientauthhooks.cpp (#782)
Manually hook AuthWithStryder
Manually hook Auth3PToken
Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH
2024-08-27 23:10:39 +02:00
F1F7Y
a73006df20
core: Remove unused CModule variable (#785)
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-27 19:31:39 +02:00
Jack
f1288350c7
hooking: run callbacks for imported modules (#780)
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-27 08:48:33 +02:00
GeckoEidechse
932735e050 Add formatting commit to git-blame-ignore-revs 2024-08-26 15:23:42 +02:00
Northstar
6e9792f365 Format project 2024-08-26 15:18:56 +02:00
Jack
f6915dc331
Format constructor initializers in a better way (#775) 2024-08-26 15:13:36 +02:00
Jack
3e2d4035ad
Fix manual hooks storing their name badly (#774)
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-25 22:49:45 +02:00
F1F7Y
5aae42126a
engine: restore mat_crosshair_printmaterial concommand (#763)
Restores the `mat_crosshair_printmaterial` concommand by reimplementing it's callback. Adds `CMaterialGlue` and `CShaderGlue` classes.
2024-08-25 13:58:17 +02:00
GeckoEidechse
2dce58a733 Add formatting commit to git-blame-ignore-revs 2024-08-23 23:30:31 +02:00
Northstar
5b2c608b22 Format project 2024-08-23 23:26:57 +02:00
Jack
d333a966ed
Formatting: Set short inline functions to be on one line (#771)
Allow short inline functions to be on one line as otherwise short getters and setters are expanded way too much.
2024-08-23 23:22:31 +02:00
Barnaby
9615ba206d
Try loading XInput 1.4 before trying to load 9.1.0 (#769)
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-23 22:05:54 +02:00
Jack
bebda79491
Fix casing of KERNEL32.DLL (#768)
This is a certified windows moment. Case insensitive but also not sometimes I guess
2024-08-19 01:06:48 +02:00
Jack
5c730b0bb3
Refactor DLL callbacks (#665)
Cherry-picked from primedev and slightly modified

Co-authored-by: F1F7Y <filip.bartos07@proton.me>
2024-08-18 12:21:06 +02:00
FourthVolt
a28c1cb10c
Fix postload crash from missing rpak.json (#762)
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-08-09 20:28:26 +02:00
GeckoEidechse
a176b707fa
Add option to manually run merge conflict label action (#760)
so that labels can easily be updated if need be
2024-08-08 17:13:46 +02:00
GeckoEidechse
9715c89b1c
Add comment explaining time choice for cron job (#759) 2024-08-08 17:04:52 +02:00
EladNLG
51991cc45f
Add CreateScriptInstance (#692)
Adds a function that converts entities to SQObjects to the SquirrelManagers.
2024-07-30 00:52:15 +02:00
Rémy Raes
6551632861
Only fetch MAD manifesto on server join (#751)
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-30 00:40:59 +02:00
Jack
c4055830dd
Fix logging sometimes not working (#754)
Revert #741 and remove log message since it's not a big deal
2024-07-28 14:14:09 +02:00
GeckoEidechse
2cd7829727
Define fs alias in source file where used (#747)
for filesystem namespace instead of relying on implicit include

Co-authored-by: Jan <sentrycraft123@gmail.com>
2024-07-10 15:13:52 +02:00