Kawe Mazidjatari
ddfe027677
Pass by reference
...
CConnectedNetConsoleData was allocated and deallocated manually, but std::vector is able to do it on its own. The vector type has been swapped out with CUtlVector as this removed the need of having to cast size types to a 32bit int to make it more compatible with the other sdk/engine types without throwing compiler warnings.
2023-08-04 10:48:22 +02:00
Kawe Mazidjatari
6eb3388aee
Default to nullptr
...
If null, it uses the statically created breakset.
2023-08-04 10:40:50 +02:00
Kawe Mazidjatari
4bef9fc6cf
Light script cleanup
...
- Rename 'checksum' to 'digest'.
- Sort the data in the correct order to reduce load on the client (client sorts it to the same order).
v2.2_rc9
2023-08-03 17:25:11 +02:00
Kawe Mazidjatari
b967a11ffd
Make switching source directories easier
...
Engine src dir can now be switched with 1 var in CMake.
2023-08-03 16:56:27 +02:00
Kawe Mazidjatari
010c0d0c20
Improve manifest script
...
- Add configuration support for each depot
- Add configurable vendor for each depot
- Add size field for each depot (used for installer's progress callback)
- Compute depot package checksum on the spot
- Take manifest version input as string instead (used as tags)
2023-08-03 16:43:22 +02:00
rexx
b8744a9ab8
create sv_language cvar
...
currently unused, will be implemented in #103
2023-08-01 22:45:58 +01:00
Kawe Mazidjatari
195b2a11d7
Variable rename
...
Its a suffix.
2023-08-01 14:48:08 +02:00
Kawe Mazidjatari
a4da4afd19
FormatBytes function bug fixes
...
- Use snprintf instead to avoid stack buffer overflow.
- Make sure nBytes has a value before using it to create an index for the suffix.
2023-08-01 14:45:55 +02:00
Kawe Mazidjatari
8e8b2ace38
Add cURL parameter to enable 'CURLOPT_FOLLOWLOCATION'
...
Option to allow following redirects.
2023-08-01 02:20:53 +02:00
Kawe Mazidjatari
c059ec65ac
Add 'ForceForegroundWindow' windows utility
...
Forces the window handle to be on top.
2023-07-31 23:43:00 +02:00
Kawe Mazidjatari
5c05f91891
Custom class name for SDK Launcher
...
Something that could be searched up without clashes and pulled up front.
2023-07-31 23:26:34 +02:00
Kawe Mazidjatari
fb35782b9e
Fix cppkore progress bar 'roundings' showing as inverted when progress is null
...
Just don't render the fill if progress is still null.
2023-07-31 19:07:08 +02:00
Kawe Mazidjatari
9a23ab68ec
Rename output file
2023-07-31 11:43:42 +02:00
Kawe Mazidjatari
eb14469178
Create utility function for formatting bytes
...
Byte count to prettified representation as string.
2023-07-31 11:43:25 +02:00
Kawe Mazidjatari
de26e5735f
Add depot names to manifest json
2023-07-30 13:35:55 +02:00
Kawe Mazidjatari
631535a4c9
Add json fields for manifest version and asset list
...
Make it so it could actually be checked and parsed properly.
v2.2_rc8
2023-07-30 01:25:13 +02:00
Kawe Mazidjatari
da3142812b
Create script for creating manifest files
2023-07-29 23:34:19 +02:00
Kawe Mazidjatari
633e6a25b3
Add strcat define
2023-07-29 17:04:27 +02:00
Kawe Mazidjatari
e673b1e180
Suppress more thirdparty warnings
...
Only applied on thirdparty code.
2023-07-28 16:44:52 +02:00
Kawe Mazidjatari
9e9d3342b3
CURL tools improvement
...
- Added wrapper for downloading files.
- Moved many function arguments to dedicated parameters structure.
2023-07-28 14:47:20 +02:00
Kawe Mazidjatari
b7b42786ab
Add STL version of Appendslash
2023-07-28 14:45:04 +02:00
Kawe Mazidjatari
e45c0fde7d
Add CURLProgress structure
...
For a download progress bar.
2023-07-26 20:37:58 +02:00
Kawe Mazidjatari
7ea51dda8a
Set an user agent
...
Some end points require it.
2023-07-26 20:34:02 +02:00
Kawe Mazidjatari
ac0fdf2953
Fix unused parameter
...
Should be used as the write function pointer, this was overseen in commit '31d92b43'.
2023-07-26 20:28:55 +02:00
Kawe Mazidjatari
31d92b439f
Move cvars from curlutils.cpp
...
Move it elsewhere so this code can be shared among tools that don't feature the ConVar class.
2023-07-26 16:52:49 +02:00
Kawe Mazidjatari
85f988dcd7
Launch center screen
...
Make the SDK launcher appear on the center of the client's screen.
2023-07-25 01:05:05 +02:00
Kawe Mazidjatari
6df3f39125
Should be an int
...
Code moves a 4 byte value into this field.
2023-07-25 00:19:48 +02:00
Kawe Mazidjatari
2a4ae390c7
Added more detailed comments
2023-07-24 12:12:59 +02:00
Kawe Mazidjatari
2b05edd374
Fix using incorrect member as bounds for looping exporteds
...
Fixes a crasher on certain modules as it could read oob; must use 'NumberOfNames' to iterate over export names.
2023-07-23 20:02:12 +02:00
Kawe Mazidjatari
af81954b7f
Force 'Cbuf_GetCurrentPlayer()' inline
...
FORCEINLINE will compile this down to an immediate.
2023-07-22 21:15:01 +02:00
Kawe Mazidjatari
21f64bc572
Adjust logging contexts
...
Adjust the context properly, some were wrong (e.g. 'ENGINE' in 'COMMON' code).
2023-07-22 21:14:04 +02:00
Kawe Mazidjatari
36376e3b2f
Rename 'con_suggestion_*' cvars to 'con_suggest_*'
...
Matches the suggest class name more.
2023-07-22 15:01:00 +02:00
Kawe Mazidjatari
00f349c745
Use ICVar iterator for console partial suggest
...
Added public interface to ICVarIteratorInternal, this class also deals with the deletion of the iterator. This fixes the problem of cvars not showing up that have been registered after 'CModAppSystemGroup::Create()' has been called. Currently, no cvar is registered after it. This will/could change when the plugin system is utilized.
Additional changes:
- Cvar 'con_suggestion_flags_realtime' has been removed, as we no longer keep an early copy anymore; real time flags are always shows from now on.
- Fixed a bug in 'CConsole::FindFromPartial()' where we would return in the loop when 'm_vSuggest.size() >= con_suggestion_limit->GetInt()', instead of breaking out, which skips the element sorting process.
2023-07-22 14:51:15 +02:00
Kawe Mazidjatari
9e50266649
Update format specifier
...
Use %lu.
2023-07-22 14:42:44 +02:00
Kawe Mazidjatari
15c293126e
Use fast tolower/toupper defines instead
2023-07-22 14:40:47 +02:00
Kawe Mazidjatari
cb7d1b3709
Normalize module names
...
All lowercase.
v2.2_rc7_tournaments
2023-07-20 22:23:10 +02:00
Kawe Mazidjatari
e7a4a6f161
Make 3 versions of SigCache files
...
The 3 versions are now:
- cfg/server/startup.bin
- cfg/client/startup.bin
- cfg/startup.bin
The last one is used by the GameSDK. Bumped header version to 6.
2023-07-20 22:16:21 +02:00
Kawe Mazidjatari
319b534d62
Enable plugin system
...
Plugin system works and is stable.
2023-07-20 22:00:00 +02:00
Kawe Mazidjatari
c1bdb54b6b
Remove asserts from Microsoft Detours wrappers
...
Intermittently causes compile errors, the asserts should be added in the implementation file instead.
2023-07-20 21:59:25 +02:00
Kawe Mazidjatari
38785bfc9b
Fix kick/ban script function parameters
...
It requires a second parameter, as this contains the reason text.
2023-07-20 21:45:38 +02:00
Kawe Mazidjatari
e8e600f553
Add missing convar flags
...
Added:
- FCVAR_ACCESSIBLE_FROM_THREADS [1<<25]
- FCVAR_STUDIO_SYSTEM [1<<26]
- FCVAR_SERVER_FRAME_THREAD [1<<27]
- FCVAR_PLATFORM_SYSTEM [1<<31]
This commit also removes the 'FCVAR_MATERIAL_THREAD_MASK' from the ConVarFlags class (which is a helper struct for displaying flags on the developer console), as this is a mask and would therefore be marked as such in case a single bit in the mask matches, and all these bits are already added to the list.
2023-07-20 21:02:27 +02:00
Amos
3531a4c4c6
Add missing logger context types in help
2023-07-20 08:16:53 +02:00
Amos
c257cc12c5
Make 'usercmd_dualwield_enable' replicated
2023-07-20 07:49:02 +02:00
Kawe Mazidjatari
20bffe4158
Merge pull request #104 from Mauler125/client_dll
...
Client dll
2023-07-19 20:16:37 +02:00
Kawe Mazidjatari
3b661c22c8
Fix compiler warning
...
Fix warning 'C4189', variable 'hr' was only used in debug. The 'Assert' macro is just a stub in release.
2023-07-19 18:56:01 +02:00
Kawe Mazidjatari
a0f0b79266
Add callback for registering script constants, and added 'LISTEN_SERVER'
...
All listen server code should be compiled out of the scripts using 'LISTEN_SERVER'. The constant must have a non-null value.
2023-07-19 18:52:00 +02:00
Kawe Mazidjatari
80fecd2cb0
Improve help string and add a note
2023-07-19 18:50:07 +02:00
Kawe Mazidjatari
6d39d99941
Fix mistake in comment
2023-07-19 18:47:25 +02:00
Kawe Mazidjatari
193abdc18a
Remove scriptfunc stubs
...
Not really ideal, needs a different solution.
2023-07-19 17:17:38 +02:00
Kawe Mazidjatari
ee1fdca7a9
Register admin panel/core server scriptfunc stubs for client.dll
...
Stubbed to avoid compile errors.
2023-07-19 16:19:34 +02:00