Skip to content

Commit 0dc3f40

Browse files
committed
Add support for epic store world war z
* added world war z to the gamedb * added noadmin hack to try and stop gta5 from needing UAC elevation
1 parent 950ce92 commit 0dc3f40

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

bnetlauncher/Program.cs

+7
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,13 @@ static void Main(string[] args)
337337
DateTime launch_request_date = DateTime.Now;
338338

339339

340+
// Attempts to force the application to run without admin
341+
if (selected_game.Options.Contains("noadmin"))
342+
{
343+
Logger.Information($"Setting compatibility flag to disable UAC prompt.");
344+
Environment.SetEnvironmentVariable("__COMPAT_LAYER", "RUNASINVOKER");
345+
}
346+
340347
// If nolaunch is selected don't actually launch the game but instead shows the client window and adds 1 minute to param_timeout
341348
if (!selected_game.Options.Contains("nolaunch"))
342349
{

bnetlauncher/Resources/gamesdb.ini

+7-1
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,10 @@ exe=HeroesSwitcher%.exe
9494
name=GTA V
9595
client=epic
9696
cmd=9d2d0eb64d5c44529cece33fe2a46482
97-
exe=PlayGTAV.exe
97+
exe=PlayGTAV.exe
98+
99+
[ewwz]
100+
name=GTA V
101+
client=epic
102+
cmd=Wombat
103+
exe=wwzRetailEgs.exe

bnetlauncher/Utils/WinApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static public void SendEnterByHandle(IntPtr handle)
9999
{
100100
if (handle == IntPtr.Zero)
101101
{
102-
Logger.Error($"Givne null handle. aborting...");
102+
Logger.Error($"Given null handle. aborting...");
103103
return;
104104
}
105105

0 commit comments

Comments
 (0)