From 61909101e88b2fb401e327a2639f86f580161774 Mon Sep 17 00:00:00 2001 From: Eric Hood Date: Wed, 24 Feb 2021 16:25:00 -0600 Subject: [PATCH] Rename went a bit too far. Fixing. --- GMC/Cartridge.h | 2 +- GMC/CartridgeTrampolines.cpp | 2 +- GMC/CartridgeTrampolines.h | 2 +- library/MC6821.c | 2 +- library/MC6821.h | 3 ++- library/PAKInterface.c | 8 ++++---- mpi/mpi.cpp | 2 +- orch90/orch90.cpp | 3 +-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/GMC/Cartridge.h b/GMC/Cartridge.h index 689779d9..8891619e 100644 --- a/GMC/Cartridge.h +++ b/GMC/Cartridge.h @@ -59,7 +59,7 @@ class Cartridge friend void ModuleConfig(unsigned char menuId); friend void SetIniPath(const char* iniFilePath); friend void ModuleReset(void); - friend void MC6821_SetCart(SETCART pointer); + friend void SetCart(SETCART pointer); friend unsigned char PakMemRead8(unsigned short address); friend void PackPortWrite(unsigned char port, unsigned char data); friend unsigned char PackPortRead(unsigned char port); diff --git a/GMC/CartridgeTrampolines.cpp b/GMC/CartridgeTrampolines.cpp index 79b79112..ede4f12e 100644 --- a/GMC/CartridgeTrampolines.cpp +++ b/GMC/CartridgeTrampolines.cpp @@ -24,7 +24,7 @@ GMC_EXPORT void ModuleReset() Cartridge::m_Singleton->OnReset(); } -GMC_EXPORT void MC6821_SetCart(SETCART callback) +GMC_EXPORT void SetCart(SETCART callback) { Cartridge::m_Singleton->SetCartLineAssertCallback(callback); } diff --git a/GMC/CartridgeTrampolines.h b/GMC/CartridgeTrampolines.h index e864d9a2..600e9ecc 100644 --- a/GMC/CartridgeTrampolines.h +++ b/GMC/CartridgeTrampolines.h @@ -6,7 +6,7 @@ GMC_EXPORT void ModuleStatus(char* statusBuffer); GMC_EXPORT void ModuleConfig(unsigned char /*menuId*/); GMC_EXPORT void SetIniPath(const char* iniFilePath); GMC_EXPORT void ModuleReset(); -GMC_EXPORT void MC6821_SetCart(SETCART pointer); +GMC_EXPORT void SetCart(SETCART pointer); GMC_EXPORT unsigned char PakMemRead8(unsigned short address); GMC_EXPORT void PackPortWrite(unsigned char port, unsigned char data); GMC_EXPORT unsigned char PackPortRead(unsigned char port); diff --git a/library/MC6821.c b/library/MC6821.c index 3805ca14..411de136 100644 --- a/library/MC6821.c +++ b/library/MC6821.c @@ -253,7 +253,7 @@ extern "C" { } extern "C" { - __declspec(dllexport) void __cdecl MC6821_SetCart(unsigned char cart) + __declspec(dllexport) void __cdecl SetCart(unsigned char cart) { instance->CartInserted = cart; } diff --git a/library/MC6821.h b/library/MC6821.h index dceb3fce..6fb33cae 100644 --- a/library/MC6821.h +++ b/library/MC6821.h @@ -29,6 +29,8 @@ typedef struct { extern "C" __declspec(dllexport) MC6821State * __cdecl GetMC6821State(); +extern "C" __declspec(dllexport) void __cdecl SetCart(unsigned char); + extern "C" __declspec(dllexport) int __cdecl OpenPrintFile(char*); extern "C" __declspec(dllexport) unsigned char __cdecl MC6821_DACState(); @@ -45,7 +47,6 @@ extern "C" __declspec(dllexport) void __cdecl MC6821_AssertCart(); extern "C" __declspec(dllexport) void __cdecl MC6821_CaptureBit(unsigned char); extern "C" __declspec(dllexport) void __cdecl MC6821_ClosePrintFile(); extern "C" __declspec(dllexport) void __cdecl MC6821_PiaReset(); -extern "C" __declspec(dllexport) void __cdecl MC6821_SetCart(unsigned char); extern "C" __declspec(dllexport) void __cdecl MC6821_SetCassetteSample(unsigned char); extern "C" __declspec(dllexport) void __cdecl MC6821_SetMonState(BOOL); extern "C" __declspec(dllexport) void __cdecl MC6821_SetSerialParams(unsigned char); diff --git a/library/PAKInterface.c b/library/PAKInterface.c index 06c538ba..c72a7741 100644 --- a/library/PAKInterface.c +++ b/library/PAKInterface.c @@ -420,7 +420,7 @@ extern "C" { instance->RomPackLoaded = false; - MC6821_SetCart(0); + SetCart(0); if (instance->ExternalRomBuffer != nullptr) { free(instance->ExternalRomBuffer); @@ -483,7 +483,7 @@ extern "C" { systemState->ResetPending = 2; - MC6821_SetCart(1); + SetCart(1); return(NOMODULE); @@ -496,7 +496,7 @@ extern "C" { return(NOMODULE); } - MC6821_SetCart(0); + SetCart(0); instance->GetModuleName = (GETNAME)GetProcAddress(instance->hInstLib, "ModuleName"); instance->ConfigModule = (CONFIGIT)GetProcAddress(instance->hInstLib, "ModuleConfig"); @@ -632,7 +632,7 @@ extern "C" { strcat(text, "Can Assert CART\n"); - instance->PakSetCart(MC6821_SetCart); + instance->PakSetCart(SetCart); } strcpy(instance->DllPath, modulePath); diff --git a/mpi/mpi.cpp b/mpi/mpi.cpp index 2f7749c2..713c4fb1 100644 --- a/mpi/mpi.cpp +++ b/mpi/mpi.cpp @@ -403,7 +403,7 @@ void CPUAssertInterrupt(unsigned char interrupt, unsigned char latencey) extern "C" { - __declspec(dllexport) void MC6821_SetCart(SETCART pointer) + __declspec(dllexport) void SetCart(SETCART pointer) { PakSetCart = pointer; } diff --git a/orch90/orch90.cpp b/orch90/orch90.cpp index 6bbc6311..1a596b87 100644 --- a/orch90/orch90.cpp +++ b/orch90/orch90.cpp @@ -107,9 +107,8 @@ extern "C" extern "C" { - __declspec(dllexport) unsigned char MC6821_SetCart(SETCART pointer) + __declspec(dllexport) unsigned char SetCart(SETCART pointer) { - PakSetCart = pointer; return(NULL); }