Kawe Mazidjatari
3d5ad71f25
Force full rebuild of SMap
...
Force rebuild due to invalid RVA in shipped cache map.
2023-02-13 23:53:53 +01:00
Kawe Mazidjatari
a20b66e93c
CMDLCache error handling code improvements
...
* Use unordered_set for mdl handles, and use insertion logic in 'CMDLCache::IsKnownBadModel' to determine if it already exists or not.
* Only set 'old_gather_props' to true if its false instead of forcing it every time 'mdl/error.rmdl' is obtained (this has to be properly fixed still in the future!).
2023-02-13 23:50:37 +01:00
Kawe Mazidjatari
0b85476011
Belongs to the previous commit
2023-02-13 23:47:12 +01:00
Kawe Mazidjatari
9a8db42575
Improve and fix 'CStudioHdr'
...
* Fixed crash that occurred due to misaligned member 'm_pMdlCacheVTable' which has been retyped to 'CMDLCache*' and renamed to 'm_pMDLCache' (actual object).
* Added mapped out member 'm_pModelName'.
2023-02-13 23:46:37 +01:00
Kawe Mazidjatari
5806f719c6
Should be u8string
v2.2_rc3
2023-02-12 23:32:58 +01:00
Kawe Mazidjatari
4d68a2edbe
Fix deadlock when file entry is truncated
...
* Fixed endless loop when condition is hit.
* Fixed file name not being formatted correctly.
2023-02-12 23:28:24 +01:00
Kawe Mazidjatari
e738ed9cc5
Update playlists file
...
Disable circle spawn by default in dev_default.
2023-02-12 23:11:41 +01:00
Kawe Mazidjatari
46ddaf9b01
Add ability to deselect a map in the SDK launcher
2023-02-12 20:30:35 +01:00
Kawe Mazidjatari
246312840b
Force full rebuild of SMap
...
Force full rebuild due to changed/added/removed signatures.
2023-02-12 20:07:27 +01:00
Kawe Mazidjatari
ae8a6222fe
Update license file
...
Add curl license in place of 'yhirose HTTP library', which has been replaced with curl.
2023-02-12 20:05:59 +01:00
Kawe Mazidjatari
89978d795e
Add missing include guards
...
Last few files which do not have include guards.
2023-02-12 19:50:45 +01:00
Kawe Mazidjatari
33b8fcd825
Fix compiler output paths
...
Some output paths were wrong.
2023-02-12 19:35:10 +01:00
Kawe Mazidjatari
cbed704bab
Performance improvements for str tools
...
Improve performance for 'StringToMaskedBytes' and 'PatternToMaskedBytes' by appending characters as immediate (char) values instead of pointers.
2023-02-12 19:05:34 +01:00
Kawe Mazidjatari
a97915ed64
Fix many compiler warnings
...
Verbose warnings about implicit conversions from double to float.
2023-02-12 18:17:19 +01:00
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