Files
FEX-Emu--FEX/include/FEXCore/Config/Config.h
T
Ryan Houdek 0eb5e2b332 Adds unified memory option without supporting it yet
This allows you to set the option from the frontend but it doesn't yet
do anything.
2020-03-06 07:56:16 +02:00

30 lines
716 B
C++

#pragma once
#include <FEXCore/Core/Context.h>
#include <stdint.h>
namespace FEXCore::Config {
enum ConfigOption {
CONFIG_MULTIBLOCK,
CONFIG_MAXBLOCKINST,
CONFIG_DEFAULTCORE,
CONFIG_VIRTUALMEMSIZE,
CONFIG_SINGLESTEP,
CONFIG_GDBSERVER,
CONFIG_ACCURATESTDOUT,
CONFIG_ROOTFSPATH,
CONFIG_UNIFIED_MEMORY,
};
enum ConfigCore {
CONFIG_INTERPRETER,
CONFIG_IRJIT,
CONFIG_LLVMJIT,
CONFIG_CUSTOM,
};
void SetConfig(FEXCore::Context::Context *CTX, ConfigOption Option, uint64_t Config);
void SetConfig(FEXCore::Context::Context *CTX, ConfigOption Option, std::string const &Config);
uint64_t GetConfig(FEXCore::Context::Context *CTX, ConfigOption Option);
}