2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:47:43 +00:00

Fixes with in-app console

This commit is contained in:
Jack Andersen
2018-01-03 13:53:01 -10:00
parent 3f2f8f6b35
commit f29e44209e
5 changed files with 322 additions and 262 deletions

View File

@@ -1,5 +1,6 @@
#include "Common.hpp"
#include <QStringList>
#include <csignal>
#ifndef _WIN32
#include <unistd.h>
@@ -134,8 +135,13 @@ QString URDEVersion::fileString(bool withExtension) const
VectorISAToString(m_vectorISA));
}
static void HUPHandler(int) {}
void InitializePlatform()
{
/* This can happen when terminating hecl - do nothing */
signal(SIGHUP, HUPHandler);
#if ZEUS_ARCH_X86_64
const_cast<Architecture&>(CurArchitecture) = Architecture::X86_64;
#elif ZEUS_ARCH_X86