3010 Commits

Author SHA1 Message Date
Kawe Mazidjatari
ee0ca5c9b9 Add zip file extraction and self replacing
The installer is now capable of fully installing r5reloaded and itself! Download code has been temporarily commented for debugging with local cached files.
2023-07-29 17:06:27 +02:00
Kawe Mazidjatari
0f18585a44 Merge branch 'indev' into launcher_rework 2023-07-29 17:04:51 +02:00
Kawe Mazidjatari
633e6a25b3 Add strcat define 2023-07-29 17:04:27 +02:00
Kawe Mazidjatari
4da3977409 Disable the control box in the update progress window
Disables the close (X) button and the dropdown button embedded in the application icon.
2023-07-29 16:55:49 +02:00
Kawe Mazidjatari
a3ea28e70c Add standalone SDK updater
Compiled to 'game/bin/', current purpose is to just replace launcher.exe after update as launcher.exe is the main updater, but needs to be killed to update itself.
2023-07-29 16:55:34 +02:00
Kawe Mazidjatari
931ee11bf3 Fix compiler errors
Conflicted with the 'min' and 'max' macro's, putting them in parentheses fixes it.
2023-07-29 16:27:01 +02:00
Kawe Mazidjatari
d31fa3b8c7 Remove redundant files
Generated files no longer used.
2023-07-28 16:45:51 +02:00
Kawe Mazidjatari
955d3405e7 Merge branch 'indev' into launcher_rework 2023-07-28 16:45:12 +02:00
Kawe Mazidjatari
e673b1e180 Suppress more thirdparty warnings
Only applied on thirdparty code.
2023-07-28 16:44:52 +02:00
Kawe Mazidjatari
072eca55de Light rename 2023-07-28 16:44:16 +02:00
Kawe Mazidjatari
e69d7d79b7 Add libraries 2023-07-28 16:44:10 +02:00
Kawe Mazidjatari
ce99a2653c Add thirdparty compression libraries
Added:
- Zlib
- Bzip2
- LZMA

And a wrapper for zip.
2023-07-28 16:43:23 +02:00
Kawe Mazidjatari
14b0106521 Remove old non-existent source files from makelist 2023-07-28 15:46:22 +02:00
Kawe Mazidjatari
bc5e4feabe Fix crash when canceling 2023-07-28 15:45:44 +02:00
Kawe Mazidjatari
682e7d8847 Merge branch 'indev' into launcher_rework 2023-07-28 14:50:55 +02:00
Kawe Mazidjatari
41ebc431b2 Finish downloading of game and sdk files
Moved entire logic to dedicated wrappers.
2023-07-28 14:50:46 +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
79ecc735a9 Merge branch 'indev' into launcher_rework 2023-07-26 20:38:20 +02:00
Kawe Mazidjatari
e45c0fde7d Add CURLProgress structure
For a download progress bar.
2023-07-26 20:37:58 +02:00
Kawe Mazidjatari
d59f37fe63 Merge branch 'indev' into launcher_rework 2023-07-26 20:34:24 +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
d12fc7a2ba Merge branch 'indev' into launcher_rework 2023-07-26 16:53:07 +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
b85d91defb Add basic dashboard panel
Basic dashboard for the average user, along with an install/repair button that is yet to be implemented.
2023-07-26 15:56:08 +02:00
Kawe Mazidjatari
c7d5bc5c86 Add XorStr header
For obfuscating string literals.
2023-07-25 01:06:21 +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