From 7d807dc5d4dfb9972bffd534fbb5ebcd349c177c Mon Sep 17 00:00:00 2001 From: Dmugetsu Date: Fri, 14 Feb 2025 19:49:55 -0600 Subject: [PATCH] another test --- src/sdl_window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sdl_window.cpp b/src/sdl_window.cpp index 32e90a776..b955577d7 100644 --- a/src/sdl_window.cpp +++ b/src/sdl_window.cpp @@ -384,10 +384,9 @@ void WindowSDL::WaitEvent() { } void WindowSDL::RelaunchEmulator() { +#ifdef Q_OS_WIN QString emulatorPath = QCoreApplication::applicationFilePath(); // Get current executable path QString emulatorDir = QFileInfo(emulatorPath).absolutePath(); // Get working directory - -#ifdef Q_OS_WIN QString scriptFileName = QStandardPaths::writableLocation(QStandardPaths::TempLocation) + "/relaunch.ps1"; QString scriptContent = @@ -410,6 +409,8 @@ void WindowSDL::RelaunchEmulator() { } #elif defined(Q_OS_LINUX) || defined(Q_OS_MAC) + QString emulatorPath = QCoreApplication::applicationFilePath(); // Get current executable path + QString emulatorDir = QFileInfo(emulatorPath).absolutePath(); // Get working directory QString scriptFileName = "/tmp/relaunch.sh"; QString scriptContent = QStringLiteral("#!/bin/bash\n" "sleep 2\n"