Expand Max Cheat Count

Expand Max Cheat Count to 1024 instead of 128.

Maybe add in config option if this isn't good enough or not suitable for everyone?
This commit is contained in:
proferabg 2021-11-29 06:31:06 -05:00 committed by GitHub
parent 26714c7f3b
commit 58220116ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,8 @@ namespace ams::dmnt::cheat::impl {
namespace {
/* Helper definitions. */
constexpr size_t MaxCheatCount = 0x80;
constexpr size_t MaxFrozenAddressCount = 0x80;
constexpr size_t MaxCheatCount = 0x1000;
constexpr size_t MaxFrozenAddressCount = 0x1000;
class FrozenAddressMapEntry : public util::IntrusiveRedBlackTreeBaseNode<FrozenAddressMapEntry> {
public:
@ -58,7 +58,7 @@ namespace ams::dmnt::cheat::impl {
};
constinit os::SdkMutex g_text_file_buffer_lock;
constinit char g_text_file_buffer[64_KB];
constinit char g_text_file_buffer[256_KB];
constinit u8 g_frozen_address_map_memory[sizeof(FrozenAddressMapEntry) * MaxFrozenAddressCount];
constinit lmem::HeapHandle g_frozen_address_map_heap;