Fixed libretro makefile

This commit is contained in:
Sour 2019-08-01 09:05:45 -04:00
parent bf9ed6a5c0
commit b350469e4b
2 changed files with 9 additions and 6 deletions

View file

@ -124,7 +124,7 @@ void SDD1_GCD::getRunCount(uint8_t code_num, uint8_t *MPScount, bool *LPSind)
///////////////////////////////////////////////////////
SDD1_BG::SDD1_BG(SDD1_GCD *associatedGCD, uint8_t code) :
GCD(associatedGCD), code_num(code)
code_num(code), GCD(associatedGCD)
{
}
@ -242,7 +242,6 @@ void SDD1_PEM::prepareDecomp(void)
uint8_t SDD1_PEM::getBit(uint8_t context)
{
bool endOfRun;
uint8_t bit;
@ -253,15 +252,16 @@ uint8_t SDD1_PEM::getBit(uint8_t context)
bit = (BG[pState->code_num])->getBit(&endOfRun);
if(endOfRun)
if(endOfRun) {
if(bit) {
if(!(currStatus & 0xfe)) (pContInfo->MPS) ^= 0x01;
(pContInfo->status) = pState->nextIfLPS;
} else
} else {
(pContInfo->status) = pState->nextIfMPS;
}
}
return bit ^ currentMPS;
return bit ^ currentMPS;
}
//////////////////////////////////////////////////////////////

View file

@ -75,6 +75,9 @@ SOURCES_CXX := $(LIBRETRO_DIR)/libretro.cpp \
$(CORE_DIR)/ScriptHost.cpp \
$(CORE_DIR)/ScriptingContext.cpp \
$(CORE_DIR)/ScriptManager.cpp \
$(CORE_DIR)/Sdd1Decomp.cpp \
$(CORE_DIR)/Sdd1.cpp \
$(CORE_DIR)/Sdd1Mmc.cpp \
$(CORE_DIR)/ShortcutKeyHandler.cpp \
$(CORE_DIR)/SoundMixer.cpp \
$(CORE_DIR)/SoundResampler.cpp \