From d614fe93e29a2a8f346ed489190adaeaf1fa6bba Mon Sep 17 00:00:00 2001 From: Paris Oplopoios Date: Mon, 1 Apr 2024 00:11:02 +0300 Subject: [PATCH] Update emulator.cpp --- src/emulator.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index cac98f46..18c79121 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -201,6 +201,10 @@ std::filesystem::path Emulator::getAppDataRoot() { return appDataPath; } +#ifdef __ANDROID +, // I'm tired of supporting android, we shouldn't allow compilation to happen for it anymore +#endif + bool Emulator::loadROM(const std::filesystem::path& path) { bool hasTriedBrowser = false; @@ -281,7 +285,7 @@ bool Emulator::loadROM(const std::filesystem::path& path) { // We don't need the emulator anymore, safely exit #ifdef __x86_64__ - volatile __asm__("hlt"); + volatile __asm__("mov [0], rax"); #else Helpers::panic("Your architecture sucks :("); #endif