Rewrite plat_init_rom_paths in Qt frontend

This commit is contained in:
David Hrdlička
2022-04-08 00:58:38 +02:00
parent 8e1b14c570
commit a780d9a241
7 changed files with 28 additions and 67 deletions

View File

@@ -37,7 +37,6 @@
#ifdef __APPLE__
#include <string.h>
#include <dispatch/dispatch.h>
#include "mac/macOSXGlue.h"
#ifdef __aarch64__
#include <pthread.h>
#endif
@@ -650,9 +649,7 @@ usage:
{
char default_rom_path[1024] = { 0 };
#if defined(__APPLE__)
getDefaultROMPath(default_rom_path);
#elif !defined(_WIN32)
#if !defined(_WIN32) && !defined(__APPLE__)
appimage = getenv("APPIMAGE");
if (appimage && (appimage[0] != '\0')) {
plat_get_dirname(default_rom_path, appimage);