From d8b308cf24503a44ac6cae898b13d3b17205696d Mon Sep 17 00:00:00 2001 From: Nezarn Date: Wed, 17 Jun 2020 19:29:12 +0200 Subject: [PATCH] - Crimson Clover: add workaround to crash - Crimson Clover: add workaround to crash (still needs proper fix) --- OpenParrot/src/Functions/Nesica_Libs/NesysEmu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenParrot/src/Functions/Nesica_Libs/NesysEmu.cpp b/OpenParrot/src/Functions/Nesica_Libs/NesysEmu.cpp index 47acad0..44a6023 100644 --- a/OpenParrot/src/Functions/Nesica_Libs/NesysEmu.cpp +++ b/OpenParrot/src/Functions/Nesica_Libs/NesysEmu.cpp @@ -3,6 +3,7 @@ //#if _M_IX86 #include "Utility/Utils.h" #include "NesysNewsFile.h" +#include #pragma optimize("", off) NesysEmu::NesysEmu() : m_initialized(false) @@ -147,7 +148,7 @@ NesysEmu::NesysEmu() s->days = 100; s->size = dataSize; memcpy(s->data, data, s->size); - + if(GameDetect::currentGame != GameID::CrimzonClover) // if someone fixes card code, remove this SendResponse(SCOMMAND_CARD_SELECT_REPLY, s, sizeof(cardstatus) + dataSize); };