Skip to content

Commit 2aa2a87

Browse files
committed
fix lagging
1 parent 19f191f commit 2aa2a87

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/app/modules/AppModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function doAction(ScriptEvent $e = null)
2525

2626
try
2727
{
28-
if (fs::get('https://zzedovec.github.io/resources/ofmelauncher/currentversion') != '1.4')
28+
if (fs::get('https://zzedovec.github.io/resources/ofmelauncher/currentversion') != '1.4.1')
2929
{
3030
new Process(['./jre/bin/java','-jar','ofmeupd.jar'])->start();
3131
app()->shutdown();

src/app/modules/filesWorker.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ static function runWithDebug($process,$gameName)
6060
if (app()->appModule()->games->get('fakeSteam',$gameName))
6161
$fakeSteam = new Process([self::findProtontricksPath().'protontricks-launch','--appid','480',fs::abs('./steam.exe')])->start();
6262

63-
$process = $process->startAndWait();
63+
$process = $process->start();
64+
65+
while ($process->getExitValue() == null)
66+
sleep(3);
6467

6568
if (isset($fakeSteam))
6669
{

steam.exe

-141 KB
Binary file not shown.

0 commit comments

Comments
 (0)