another test

This commit is contained in:
Dmugetsu 2025-02-14 19:49:55 -06:00
parent 7d64ba4d6b
commit 7d807dc5d4

View File

@ -384,10 +384,9 @@ void WindowSDL::WaitEvent() {
} }
void WindowSDL::RelaunchEmulator() { void WindowSDL::RelaunchEmulator() {
#ifdef Q_OS_WIN
QString emulatorPath = QCoreApplication::applicationFilePath(); // Get current executable path QString emulatorPath = QCoreApplication::applicationFilePath(); // Get current executable path
QString emulatorDir = QFileInfo(emulatorPath).absolutePath(); // Get working directory QString emulatorDir = QFileInfo(emulatorPath).absolutePath(); // Get working directory
#ifdef Q_OS_WIN
QString scriptFileName = QString scriptFileName =
QStandardPaths::writableLocation(QStandardPaths::TempLocation) + "/relaunch.ps1"; QStandardPaths::writableLocation(QStandardPaths::TempLocation) + "/relaunch.ps1";
QString scriptContent = QString scriptContent =
@ -410,6 +409,8 @@ void WindowSDL::RelaunchEmulator() {
} }
#elif defined(Q_OS_LINUX) || defined(Q_OS_MAC) #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 scriptFileName = "/tmp/relaunch.sh";
QString scriptContent = QStringLiteral("#!/bin/bash\n" QString scriptContent = QStringLiteral("#!/bin/bash\n"
"sleep 2\n" "sleep 2\n"