2488 Commits

Author SHA1 Message Date
Kawe Mazidjatari
7f16717d5d Suppress last compiler warnings in sha1.cpp
* Immediate '0x80' is unsigned.
* Assign only the first 32bits to int block.
2023-02-12 18:14:03 +01:00
Kawe Mazidjatari
f21202611c Use sizetypes in Sha1 code
Must use size types instead of unsigned integers to prevent arithmetic overflow on larger (>4gb) buffers. This also suppresses the compiler warnings generated from this particular file.
2023-02-12 18:11:41 +01:00
Kawe Mazidjatari
d52bbfec08 Fix invalid alignment for 'MatchMetrics' 2023-02-12 18:03:12 +01:00
Kawe Mazidjatari
ea4190e534 Slightly more mapped out CUtlBuffer
These are set and used in 'PersistenceParseDefSourceMsg' and 'CAI_NetworkManager::InitializeAINetworks'. Still unknown what they exactly do.
2023-02-12 18:02:37 +01:00
Kawe Mazidjatari
837f53ccb7 Promote CUtlBuffer size types to 64bits
In the engine, all these seem to be 64bits as well as the members are 64bits.
2023-02-12 17:54:15 +01:00
Kawe Mazidjatari
310e4b4af3 Make help text bit more clear 2023-02-12 16:27:17 +01:00
Kawe Mazidjatari
c1107fb4ed Fix spelling 2023-02-12 16:27:09 +01:00
Kawe Mazidjatari
15e9259b77 Use server current time for reload logic
Use server's current time for reload logic instead of a dedicated fast timer.
2023-02-12 15:32:34 +01:00
Kawe Mazidjatari
612ab83b20 Use 'GetNumClients' for hosting and status bar
Use 'GetNumClients' instead of iterating over the client array twice. Also fixed a bug causing the status bar only to display real clients, buts were never counted.
2023-02-12 15:21:33 +01:00
Kawe Mazidjatari
decf3552ea Add 'GetNumClients'
Gets the total amount of clients on the server (both fake and real clients).
2023-02-12 15:20:11 +01:00
Kawe Mazidjatari
b1f2f47058 Update names across codebase 2023-02-12 15:06:08 +01:00
Kawe Mazidjatari
c888422d51 Remove unnecessary padding and add static assert 2023-02-12 14:57:39 +01:00
Kawe Mazidjatari
d2c8f7becc Update 'CGlobalVarsBase'
Mapped it out a little bit better.
2023-02-12 14:54:04 +01:00
Kawe Mazidjatari
1db53a135f Fix dedicated.dll compile error
'g_svNetKey' no longer exists.
2023-02-12 11:49:39 +01:00
Kawe Mazidjatari
236eb861d5 Add global netadr to SDK
Global from engine used in the 'status' command etc..
2023-02-12 11:32:05 +01:00
Kawe Mazidjatari
3139948141 Rename mutex guard lock
Already one named 'l' in this scope. It will work just fine, but having a different name is better.
2023-02-12 11:24:34 +01:00
Kawe Mazidjatari
26f52eea28 Server browser hosting logic improvements
* Added missing mutex lock in 'CBrowser::UpdateHostingStatus' when host status is 'NOT_HOSTING'.
* Use server's remote checksum to test whether or not the checksum is valid, as this is the one that will be used for hosting.
* Construct 'NetGameServer_t' from the main thread instead, and dispatch back into separate thread for remote query.
2023-02-12 11:22:18 +01:00
Kawe Mazidjatari
2d7e2d5567 Fix bug in CPU detection code caused in recent commit
Should be 0x49, not 49. Thanks rexx!
2023-02-12 10:33:46 +01:00
Kawe Mazidjatari
e98a6c31e9 Improve netkey logic
Removed extraneous copy of the base64 netkey. The base64 key is now directly obtained from the netkey singleton.
2023-02-12 02:28:03 +01:00
Kawe Mazidjatari
0734d56fe2 Add reversed 'CNetKey' class
Confirmed size, mostly unknown still. But some of this seems to be data related to OpenSSL.
2023-02-12 02:15:58 +01:00
Kawe Mazidjatari
5f7bf4414e Add additional miles debug info
Log the amount of time it took to initialize miles. Also log the language it gets initialized with, as this has been a common problem in the past. This should make it easier to see the problem regarding audio initialization failures.
2023-02-12 00:05:27 +01:00
Amos
a445e0fc9b Fix compile error for sdklauncher and netconsole
Thirdparty directory has to be set as include directory as well.
2023-02-11 17:44:56 +01:00
Amos
100b538548 Light format change 2023-02-11 17:44:16 +01:00
Amos
8f4a5f45e7 Fixup L3 cache case 0x49
If EAX descriptor is 0x49, a check must be performed to determine whether or not to set the L3 cache.
2023-02-11 17:15:43 +01:00
Amos
c0fe74a321 Set cache desc to whole descriptor for Intel CPU's 2023-02-11 16:31:53 +01:00
Kawe Mazidjatari
cd8b5d3111 Improve CPU info log format
Pack level cache and descriptors on the same line.
2023-02-11 16:25:26 +01:00
Kawe Mazidjatari
4690f6f2e0 Add note in 'CPUInformation' 2023-02-11 16:23:09 +01:00
Amos
9145030b77 Cleanup InterpretIntelCacheDescriptors
Pass 'CPUInformation' by reference instead of using the static directly.
2023-02-11 15:19:29 +01:00
Amos
78288796e2 Fix bug in 'FindIntelCacheDesc'
It never iterates over the static arrays.
2023-02-11 15:15:52 +01:00
Amos
2e7786a4cf Add cache descriptor for Intel CPU using function code 4 2023-02-11 15:15:06 +01:00
Amos
b92d442596 Fix missing cache information on Intel processors
'cpuidex' should return true.
2023-02-10 00:05:58 +01:00
Kawe Mazidjatari
dcf6d12ae1 Fix memory leak in Curl util code
'curl_slist' pointer should be passed in as reference, as its destroyed elsewhere.
2023-02-09 22:56:13 +01:00
Kawe Mazidjatari
1051b3a427 Also compile for client.dll
Mask it off for client.dll as well.
2023-02-08 22:57:14 +01:00
Kawe Mazidjatari
f6df34d68d Fix bug caused by recent addition of completion funcs
'map' and 'map_background' were removed from the array, and thus 'FCVAR_DEVELOPMENTONLY' wasn't masked off. As of this commit, its getting masked off along with 'FCVAR_SERVER_CAN_EXECUTE'.
2023-02-08 22:54:35 +01:00
Kawe Mazidjatari
55ec60e1ae Upgrade nlohmann json to '3.11.2' 2023-02-07 00:19:56 +01:00
Kawe Mazidjatari
ff597ae6ad Add thirdparty folder to project includes 2023-02-07 00:10:48 +01:00
Kawe Mazidjatari
45ae9add6c Add missing includes to project filters 2023-02-06 23:58:42 +01:00
Kawe Mazidjatari
7928ac3b4c Fix SDK Launcher compiler error
Path has to be changed due to project include changes. The r5dev directory is no longer a system include, however, the compiler expects includes from system when compiling resources.
2023-02-06 23:53:32 +01:00
Kawe Mazidjatari
a67967134d Split x64 and x86 binaries
Don't overwrite each other.
2023-02-06 23:52:09 +01:00
Kawe Mazidjatari
d2a57eca8a Fix incorrect configuration mappings 2023-02-06 23:31:49 +01:00
Kawe Mazidjatari
feb1c7712f Remove 32bit project configuration for cppkore
CppKore doesn't support 32bit entirely.
2023-02-06 23:14:07 +01:00
Kawe Mazidjatari
b61870421f Remove 32bit project configuration for pluginsdk
Plugin cannot be 32bit as the game and SDK is 64bit.
2023-02-06 23:11:11 +01:00
Kawe Mazidjatari
354e25633c Don't compile for client.dll
Don't compile 'CC_CreateFakePlayer_f' for the client.dll.
2023-02-06 23:01:53 +01:00
Kawe Mazidjatari
f2fd9102d0 Properly configure project includes
Moved project includes from VC/System includes to project includes. This fixes the problem where the autocomplete feature doesn't work in Visual Studio when trying to include headers from the project itself.
2023-02-06 23:01:18 +01:00
Kawe Mazidjatari
f9245a4070 Fix bug in RPak auto completion
RPaks that have a name larger than 123 chars will have their extension delimiter removed due to the way 'CAutoCompleteFileList::AutoCompletionFunc' works. Ideally this functions receives a full rewrite in the SDK to support dynamic extension lengths.
2023-02-06 21:46:03 +01:00
Kawe Mazidjatari
99b057438f More fixes for console
* Fix 'ClearAutoComplete' getting called recursively for some single operations.
* Fix unnecessary mutex lock.
2023-02-06 21:43:43 +01:00
Kawe Mazidjatari
e4df03c4f2 Add RPak completion callbacks
Add completion for 'pak_requestload' and 'pak_requestunload'.
2023-02-06 02:16:02 +01:00
Kawe Mazidjatari
a8c5ed45fd Fix IAppSystem VFTable
Destruvtor is prepended on every class in-engine. Reflected in SDK. Also removed extraneous method from ICvar causing other methods below it to misalign after the IAppSystem change.
2023-02-06 02:15:01 +01:00
Kawe Mazidjatari
308a700e25 Fix console bug
Fix bug causing autocomplete to not work correctly when command is picked from the suggestion list.
2023-02-06 02:12:53 +01:00
Kawe Mazidjatari
9e9614f908 Only reclaim focus where necessary
Only reclaim it when its actually needed to be reclaimed, else other UI components will not work properly.
2023-02-06 00:04:08 +01:00