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
1b9707e461
Improve updater reliability
...
Raise privileges so its more likely to being able to terminate the launcher process, also continue if TerminateProcess fails, as there could be a race condition between TerminateProcess and ExitProcess (called from launcher). We just want to make sure launcher is fully closed before proceeding to replace it.
2023-07-31 02:53:50 +02:00
Kawe Mazidjatari
9642ea18f3
New features
...
- check if game is running, and if so, warn and discard update/install request.
- check if launcher instance is running, and if so, not create another one but instead move focus to existing one
- periodic update checks and update installations
2023-07-31 02:51:27 +02:00
Kawe Mazidjatari
b5626cff23
Major cleanup
...
Decouple all logic from installer to shared utils, group all constants into 'sdklauncher_const.h'.
2023-07-30 16:51:44 +02:00
Kawe Mazidjatari
de26e5735f
Add depot names to manifest json
2023-07-30 13:35:55 +02:00
Kawe Mazidjatari
da2cc3b7c4
Merge branch 'indev' into launcher_rework
2023-07-30 12:08:15 +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
1dd7060dfa
Merge branch 'indev' into launcher_rework
2023-07-29 23:34:59 +02:00
Kawe Mazidjatari
da3142812b
Create script for creating manifest files
2023-07-29 23:34:19 +02:00
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