summaryrefslogtreecommitdiff
path: root/src/Companion.h
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-05-25 16:31:32 -0600
committerKiritoDv <kiritodev01@gmail.com>2024-05-25 16:31:32 -0600
commitafd800afc0bad0dd034eb732354ed25c81621d2e (patch)
tree80c18965e4837af9089f73ff11f8affa36351fde /src/Companion.h
parent1b06b44e67ec8f63af3cdcecdabf402405ff9493 (diff)
Fixed possible conflicts with LUS
Diffstat (limited to 'src/Companion.h')
-rw-r--r--src/Companion.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Companion.h b/src/Companion.h
index 7d287b2..e99719f 100644
--- a/src/Companion.h
+++ b/src/Companion.h
@@ -103,7 +103,15 @@ class Companion {
public:
static Companion* Instance;
- explicit Companion(std::filesystem::path rom, const bool otr, const bool debug, const bool modding = false) : gRomPath(std::move(rom)), gCartridge(nullptr) {
+ explicit Companion(std::filesystem::path rom, const bool otr, const bool debug, const bool modding = false) : gCartridge(nullptr) {
+ this->gRomPath = rom;
+ this->gConfig.otrMode = otr;
+ this->gConfig.debug = debug;
+ this->gConfig.modding = modding;
+ }
+
+ explicit Companion(std::vector<uint8_t> rom, const bool otr, const bool debug, const bool modding = false) : gCartridge(nullptr) {
+ this->gRomData = rom;
this->gConfig.otrMode = otr;
this->gConfig.debug = debug;
this->gConfig.modding = modding;
@@ -160,7 +168,7 @@ private:
std::string gCurrentHash;
std::string gAssetPath;
std::vector<uint8_t> gRomData;
- std::filesystem::path gRomPath;
+ std::optional<std::filesystem::path> gRomPath;
bool gNodeForceProcessing = false;
bool gIndividualIncludes = false;
YAML::Node gHashNode;