File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
app/src/main/java/com/micewine/emu Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -614,19 +614,11 @@ class MainActivity : AppCompatActivity() {
614
614
}
615
615
}
616
616
617
- lifecycleScope.launch {
618
- withContext(Dispatchers .IO ) {
619
- if (exePath == " " ) {
620
- WineWrapper .wine(" explorer /desktop=shell,$selectedResolution window_handler" , winePrefix)
621
- } else {
622
- WineWrapper .wine(" start /unix C:\\\\ windows\\\\ window_handler.exe" , winePrefix)
623
- }
624
- }
625
- }
626
-
627
617
if (exePath == " " ) {
628
- WineWrapper .wine(" explorer /desktop=shell,$selectedResolution TFM" , winePrefix)
618
+ WineWrapper .wine(" explorer /desktop=shell,$selectedResolution window_handler TFM" , winePrefix)
629
619
} else {
620
+ WineWrapper .wine(" start /unix C:\\\\ windows\\\\ window_handler.exe" , winePrefix)
621
+
630
622
if (exePath.endsWith(" .lnk" )) {
631
623
try {
632
624
val shell = ShellLink (exePath)
@@ -642,9 +634,6 @@ class MainActivity : AppCompatActivity() {
642
634
}
643
635
}
644
636
else {
645
- // Wait for window_handler
646
- WineWrapper .waitFor(" window_handler.exe" , winePrefix)
647
-
648
637
WineWrapper .wine(" '$exePath '" , winePrefix, " '${File (exePath).parent!! } '" )
649
638
}
650
639
}
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import android.os.Build
4
4
import com.micewine.emu.core.EnvVars.getEnv
5
5
import com.micewine.emu.core.ShellLoader.runCommand
6
6
import com.micewine.emu.core.ShellLoader.runCommandWithOutput
7
- import kotlinx.coroutines.delay
8
7
import java.io.File
9
8
10
9
object WineWrapper {
You can’t perform that action at this time.
0 commit comments