2017-06-05 21:39:15 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2017-09-07 00:04:09 +00:00
|
|
|
#include <Register.h>
|
2017-06-05 21:39:15 +00:00
|
|
|
|
2018-11-27 22:28:09 +00:00
|
|
|
class Configuration final {
|
2017-06-05 21:39:15 +00:00
|
|
|
public:
|
2018-12-01 16:41:39 +00:00
|
|
|
Configuration() = default;
|
2017-06-05 21:39:15 +00:00
|
|
|
|
|
|
|
bool isDebugMode() const {
|
|
|
|
return m_debugMode;
|
|
|
|
}
|
|
|
|
|
|
|
|
void setDebugMode(bool value) {
|
|
|
|
m_debugMode = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool isProfileMode() const {
|
|
|
|
return m_profileMode;
|
|
|
|
}
|
|
|
|
|
|
|
|
void setProfileMode(bool value) {
|
|
|
|
m_profileMode = value;
|
|
|
|
}
|
|
|
|
|
2018-11-27 22:28:09 +00:00
|
|
|
const std::string& getRomDirectory() const {
|
2017-06-05 21:39:15 +00:00
|
|
|
return m_romDirectory;
|
|
|
|
}
|
|
|
|
|
|
|
|
EightBit::register16_t getStartAddress() const {
|
2018-06-15 23:55:32 +00:00
|
|
|
return 0x100;
|
2017-06-05 21:39:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2018-11-27 22:28:09 +00:00
|
|
|
bool m_debugMode = false;
|
|
|
|
bool m_profileMode = false;
|
|
|
|
std::string m_romDirectory = "roms";
|
2017-06-05 21:39:15 +00:00
|
|
|
};
|