Skip to content

Commit

Permalink
Changes to quickerNES and quickerArkBot
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMartin86 committed Jul 13, 2024
1 parent bce3711 commit 9a1c0be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions emulators/quickerNES/quickerNES.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ class QuickerNES final : public Emulator

// For testing purposes, the rom file SHA1 can be overriden by environment variables
if (auto *value = std::getenv("JAFFAR_QUICKERNES_OVERRIDE_ROM_FILE_SHA1")) _romFileSHA1 = std::string(value);

// Getting Nametable size to use
_NTABBlockSize = jaffarCommon::json::getNumber<size_t>(config, "Nametable Block Size");
};

void initializeImpl() override
Expand Down Expand Up @@ -90,6 +93,9 @@ class QuickerNES final : public Emulator

// Now disabling state properties, as requested
disableStateProperties();

// Setting Nametable block size to serialize. Some games don't use the entire memory so it's ok to reduce it
_quickerNES.setNTABBlockSize(_NTABBlockSize);
}

// State advancing function
Expand Down Expand Up @@ -262,6 +268,7 @@ class QuickerNES final : public Emulator

NESInstance _quickerNES;

size_t _NTABBlockSize;
std::string _controller1Type;
std::string _controller2Type;
std::string _romFilePath;
Expand Down

0 comments on commit 9a1c0be

Please sign in to comment.