aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL
AgeCommit message (Collapse)Author
2023-07-22Safe I/O 2 - Electric Boogaloo! (#404)EladNLG
* Safe I/O initial commit * Formatting * Formatting 2 * God help us all. * fix diffs part 1 * fix diffs 2 * Fix invalid filter file * Update NorthstarLauncher.vcxproj * Remove newline at EOF * fix the damn thing * God help the diffs * diff hate * diff hate the 2nd * Add comments since this code is unreadable Now, this code may look readable, but I barely understand what I did here myself. * Remove char limit and file definitions * Fix build * organization stuff * Fix build * More funcs, more stuff * format fix * oops, this is wrong. * fix a thing * Add max folder size (250MB) and add getallfiles * Fix build also size cap * reduce max folder size to 50MB * he forgor * i give up * aync edition????? * Fix max size bypass * fix it * Remove logs * Add max folder size launch arg * boop * FUCK SHIT * FUCKKKKKKKKKKK * Fix build * Fix crash * Fix error FINAL!!! * fix scriptjson.h not being found * fix scriptjson.h not appearing correctly * shit diffself * format fix * Fix indentation (thank you vscode) * Fix indentation again * adadasa * shit diffself adadasa Fix indentation (thank you vscode) Fix indentation again * format fix * Revert "shit diffself" This reverts commit b49a62b5b36784df1c01663cdec2e4e403279618. * Revert "Merge branch 'safe-io-rewrite' of https://github.com/EladNLG/NorthstarLauncher into safe-io-rewrite" This reverts commit 761eb8a1cb11ccf1dadf55f5be9a08700fe1d560, reversing changes made to 65549b2f799660d7fe7b5a53e81425922b996ea9. * Fix the diff finally * more diff fixes * Fix more diffs * Allow non-ascii characters that aren't NUL * format fix :( * this is untested and I don't wanna update the safe i/o test thing * fix build :( * fix mayhaps? * fix build * Fix lotsa stuff :D * FIxed :D * Rewrite error messages, rename CheckFileName to IsPathSafe * Shout out to clang-format! * oops, wrong error message :3 * SHOUT OUT TO CLANG-FORMAT!!! * Revert "SHOUT OUT TO CLANG-FORMAT!!!" This reverts commit c536384073528b4eee7c330dfab320a5527ff240. * :( * oop * Add failure callback (launcher) * unnecessary comment * holy shit format fix boooooo. BOOOOOO! * restrict path to ASCII * Fix ascii check I hate you all * reformat * Clang-format my beloved :) * Move the thing * Apply suggestions from code review Co-authored-by: Rémy Raes <contact@remyraes.com> * clang-format no like code suggestions :( * name change * doc'd * - Replace the mutex map with a single mutex for all file actions - Fix Load calls sometimes failing and not calling NSHandleLoadResult - Add NSGetTotalSpaceRemaining which checks how much space a mod has, in KB - Add contstant MAX_FOLDER_SIZE which holds the maximum save folder size, in KB * add safe-io stuff to cmake * surrounds IsPathSafe with a try/catch --------- Co-authored-by: Rémy Raes <contact@remyraes.com> Co-authored-by: uniboi <kami.0.katze@gmail.com>
2023-07-22Replace vendored libcurl and minhook with submodules (#500)v1.17.1-rc1Jan
* Replace vendored libcurl and minhook with submodules * Add cmake utility for checking submodules and initializing them * Update build instructions to use Git
2023-07-16Add OS, Wine and Proton logging (#502)Jan
Adds logging for OS, Wine, and Proton versions.
2023-07-16Add support for loading Thunderstore mods natively (#503)GeckoEidechse
Allows for loading Thunderstore mods directly from a separate directory called `packages`.
2023-07-07Improve logging for mods (#445)v1.16.3-rc2v1.16.3-rc1v1.16.3v1.16.2-rc1v1.16.2v1.16.1-rc1v1.16.11.16.XJack
- Removes the log spam of "changing mod search path" - Logs mods as they are loaded, alongside their ConVars, Scripts, ConCommands, etc. - Warns in the console about errors in the mod.json instead of silently skipping things
2023-07-07Memory class renaming (#469)F1F7Y
- Renames `MemoryAddress` to `CMemoryAddress` - Renames `CMemoryAddress::As` to `CMemoryAddress::RCast`
2023-07-02Basic mods blacklisting (#474)v1.16.0-rc2v1.16.0F1F7Y
2023-06-29Reorganize third-party dependencies into `thirdparty` directory (#491)F1F7Y
* rename `include` to `thirdparty` * remove duplicate minhook in wsock32 * move minhook into its own directory * move openssl lib into separate directories
2023-06-28Code cleanup (#478)v1.16.0-rc1v1.15.1-rc1v1.15.11.15.XJan
* turn implicit type casts into standard compliant explicit type casts * correct includes and library names * correct implicit use of std-namespaced functions * turn incomplete virtual implementations into pure virtuals (this also follows what the Source SDK tier0 header does) * define SqRecurseArgs ahead of implementation to fix templating problems * switch out removed getentity with getthisentity * fix calls to curl_easy_escape with wrong types * replace winapi-specific function with std starts_with function * format squirrel header
2023-06-28Replace dependent names with explicit template definition (#490)Jan
2023-06-28Fix const pointer const (#488)Jan
2023-06-28Remove pragma once from source file (#487)Jan
2023-06-28Use correctly typed values for variables (#486)Jan
2023-06-28Cast types in MAKEHOOK macro to follow C++ Standard (#489)Jan
2023-06-22Move to cmake (#467)v1.15.0-rc1F1F7Y
Moves the entire project to cmake as the build system
2023-06-07Restore `-noplugins` argument (#459)v1.14.3-rc1v1.14.31.14.Xcat_or_not
2023-06-07Fix `maps *` command, expose to squirrel (#442)F1F7Y
2023-05-05Support loading plugins from subdirs (#460)cat_or_not
Support loading plugins from subdirs to allow for better organising plugins and easier mod-manager installation
2023-04-27Use structs for the Script Server Browser (#453)v1.14.2-rc1v1.14.2v1.14.1-rc1v1.14.1v1.14.0-rc1v1.14.0uniboi
* fix vector garbage data * use structs for script server browser * use sq struct api wrappers * use sqfloat return type for getvector * use const references for access * move fn to make the diff more readable (hopefully)
2023-04-23Fix initscript issue (#457)v1.13.2-rc2v1.13.2-rc1v1.13.2v1.13.1-rc1v1.13.1cat_or_not
Fix initscript issue that prevented Northstar from being run without any mods enabled/installed.
2023-04-19Remove leftover LoadPlugins declaration (#449)pg9182
Doesn't exist since 450d0b1ed437cf37b4309af952af8904f3f07768 (#343).
2023-04-19Fix parsing string ConVar/ConCommand.Flags from `mod.json` (#450)pg9182
Fix parsing string ConVar/ConCommand.Flags from mod.json The ParseConVarFlagsString function introduced in 64100065b55f79e76542ba689545c60e6fb0dcef (#373) is utterly broken. It only parses the first flag, logs misleading warnings, has an undefined return value in some codepaths, and is somewhat convoluted. Luckily, this doesn't appear to affect most (if not all) existing mods, as they all seem to be using integer values for Flags, which is taken as-is. https://github.com/search?q=path%3A**%2Fmod.json+ConVars+Flags&type=code
2023-04-19Fix incorrect script ConCommand argc (#446)Glacir
2023-04-18Fix DecodeJSON fatalParseErrors param (#443)EladNLG
Previously, DecodeJSON would log a warning and swallow the error silently, even if the second argument (fatalParseErrors) was true (default is false).
2023-04-18Fix getvector returning garbage data (#448)uniboi
* fix vector garbage data * change typedef to use IDA's types
2023-04-17Set default server auth failure reasonpg9182
Not all error paths set it.
2023-04-17Use detailed master server error messages when availablepg9182
The error.msg field has always been around, but we never used it.
2023-04-17Remove httplibpg9182
2023-04-17Replace HTTP auth server with Atlas connectionless packetpg9182
2023-04-17Add missing curl lib depspg9182
2023-04-17Implement Atlas sigreq1 connectionless packetpg9182
Consists of a JSON object including a type key and a HMAC-SHA256 signature using the gameserver-specific token from the masterserver as the key.
2023-04-17Add support for Atlas connectionless packetspg9182
2023-04-17Extract ProcessConnectionlessPacket hook to separate filepg9182
2023-04-11Plugin system v2 (#343)Emma Miler
* Some work * Rewrite gamestate presence * Add plugin system logger * Format changes * Format chjange * Fix gamestate stuff * some callback stuff * move around invite stuff * move invite to funcs * fix presence server data * Actually call InformSQVMCreated * bruh * Fix TODO's * Formatting * Fix filters * Add InformDLLLoads * Fix plugin handle always being 0 * Formatting * Fix merge issues * Formatting * Mods can add files compiled at SQVM init * Some Small Fixes * Add changes from review * Fix load failure * Add new squirrel functions * actually call InformSQVMDestroyed * add CreateObject function * answers to complaints * remove snake cases from GameStatePresence --------- Co-authored-by: cat_or_not <41955154+catornot@users.noreply.github.com>
2023-04-08Fix stringcmd limits causing unnecessary disconnects (#447)Jack
revert some changes made by #411
2023-03-31Bring back sq_getobject and sq_getthisentity for the client and ui vm (#428)cat_or_not
bring sq funcs back
2023-03-08Fix `sv_alltalk 1` (broken originally by respawn changes) (#291)BobTheBob
* fix sv_alltalk 1 (broken originally by respawn changes) * nvm i forgor to commit literally the main file * fix formatting * unsure why this was buidling but it shouldn't've been? fix build errors regardless * remove duplicate alltalk.cpp * add (experimental) potentially less jank patch * (now working) better patch for checking if alltalk is enabled * oops put a z in it boo womp * fixup formatting
2023-03-08Reject banned players during masterserver auth (#434)pg9182
* Reject banned players during masterserver auth This is backwards-compatible with old masterserver versions (it will be treated as a general authentication failure). * Reword server ban message
2023-03-07me when case inconsistency (#437)v1.12.4-rc1v1.12.4EladNLG
one line fix baby!
2023-03-05Fix build errors due to declaration order in scripthttprequesthandler (#430)pg9182
2023-02-23Add `FUNCTION_AT` and `VAR_AT` macros (#416)BobTheBob
* add FUNCTION_AT and VAR_AT macros * fix build issues oops * fix formatting * add PREDEFINED_VAR_AT * change func name * fixup formatting * update to use DEFINED_VAR_AT
2023-02-22Implement `dedi_sendPrintsToClient` (#418)BobTheBob
* add CGlobals class and g_pGlobals, and update scripts to support * don't automatically enable antispeedhack (oops) * add dedicated.cpp * format * bad push oops * reformat again * implement dedi_sendPrintsToClient * update formatting
2023-02-22Add additional properties to `CBasePlayer` (#329)BobTheBob
* add additional properties to CBasePlayer * fixup names * use hex offsets
2023-02-14Force-include `pch.h` to all files, remove explicit includes (#393)p0358
* force-include "pch.h" in all units, as it will error if it's not included anyways * remove #include "pch.h" from all files as it's not needed anymore now * fix size of NSUserAgent to be consistent (it's 256 in version.cpp, caused compile error) * Re-add explicit pch.h include to pch.cpp (and ran clang-format) * drop pch.h inclusion from new files
2023-02-12Add `CGlobals` class and `g_pGlobals`, and update code to support (#411)BobTheBob
* add CGlobals class and g_pGlobals, and update scripts to support * don't automatically enable antispeedhack (oops) * add dedicated.cpp * format * bad push oops * reformat again
2023-02-09Add Destroy callback for squirrel scripts. (#383)v1.12.3-rc2v1.12.3-rc1v1.12.3Erlite
* Add Destroy callback for squirrel scripts. * Switch _call() to Call()
2023-02-07Do not load streaming files on dedicated server (#412)BobTheBob
dont load streaming files on dedicated server
2023-02-06Flush loggers properly on dedicated server shutdown (#413)v1.12.2-rc1v1.12.2v1.12.1-rc1v1.12.1BobTheBob
flush loggers properly on dedicated server shutdown
2023-02-01Allow `launchplaylist` to be used to start dedicated servers (#409)BobTheBob
allow launchplaylist to be used to start dedicated servers
2023-01-30feat: Remote mods directory (#403)Rémy Raes
* feat: create remote mod directory * feat: look for mods in remote mods directory