mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-08-18 22:42:23 +00:00
fix(launcher): focus emulator window on launch
This commit is contained in:
@@ -789,12 +789,14 @@ void Presenter::Present(Frame& frame, bool reuse) {
|
||||
[&window] {
|
||||
window.UpdateIcon();
|
||||
SDL_ShowWindow(window.window);
|
||||
SDL_RaiseWindow(window.window);
|
||||
},
|
||||
true);
|
||||
#else
|
||||
window.UpdateIcon();
|
||||
|
||||
SDL_ShowWindow(window.window);
|
||||
SDL_RaiseWindow(window.window);
|
||||
#endif
|
||||
|
||||
window.window_hidden = false;
|
||||
|
||||
@@ -42,9 +42,7 @@ constexpr char EMULATOR_EXE[] = "kyty_emulator.exe";
|
||||
constexpr char EMULATOR_EXE[] = "kyty_emulator";
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
constexpr char CMD_EXE[] = "cmd.exe";
|
||||
#elif defined(__linux__)
|
||||
#if defined(__linux__)
|
||||
constexpr char KYTY_BASH_FILE[] = "kyty_run.sh";
|
||||
#endif
|
||||
#if defined(_WIN32)
|
||||
@@ -360,14 +358,6 @@ void MainDialog::RunInterpreter(QProcess* process, const Configuration& info) {
|
||||
process->setArguments({QStringLiteral("-c"), bash_file_name});
|
||||
}
|
||||
}
|
||||
#elif defined(_WIN32)
|
||||
{
|
||||
process->setProgram(CMD_EXE);
|
||||
QStringList process_args;
|
||||
process_args << QStringLiteral("/K") << interpreter;
|
||||
process_args += args;
|
||||
process->setArguments(process_args);
|
||||
}
|
||||
#else
|
||||
process->setProgram(interpreter);
|
||||
process->setArguments(args);
|
||||
|
||||
Reference in New Issue
Block a user