aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2021-08-12 15:56:43 +0200
committertwinaphex2021-08-12 15:56:43 +0200
commitb5b90f70c087d52e302d750486f21e0810af6504 (patch)
tree58d0a164442698f4996eaafd3ee9067439905e0d
parent88d4b81bd22912cc32c67ad4cf6db5e6d2fada3d (diff)
downloadsnes9x2005-b5b90f70c087d52e302d750486f21e0810af6504.tar.gz
snes9x2005-b5b90f70c087d52e302d750486f21e0810af6504.tar.bz2
snes9x2005-b5b90f70c087d52e302d750486f21e0810af6504.zip
Prevent some warnings from unused functions
-rw-r--r--source/memmap.c79
-rw-r--r--source/memmap.h4
2 files changed, 0 insertions, 83 deletions
diff --git a/source/memmap.c b/source/memmap.c
index 2fe0fe7..850bb15 100644
--- a/source/memmap.c
+++ b/source/memmap.c
@@ -2546,85 +2546,6 @@ const char* MapType(void)
return Memory.HiROM ? "HiROM" : "LoROM";
}
-const char* StaticRAMSize(void)
-{
- static char tmp [20];
-
- if (Memory.SRAMSize > 16)
- return "Corrupt";
- sprintf(tmp, "%dKB", (Memory.SRAMMask + 1) / 1024);
- return tmp;
-}
-
-const char* Size(void)
-{
- static char tmp [20];
-
- if (Memory.ROMSize < 7 || Memory.ROMSize - 7 > 23)
- return "Corrupt";
- sprintf(tmp, "%dMbits", 1 << (Memory.ROMSize - 7));
- return tmp;
-}
-
-const char* KartContents(void)
-{
- static char tmp [30];
- static const char* CoPro [16] =
- {
- "DSP", "SuperFX", "OBC1", "SA-1", "S-DD1", "S-RTC", "CoPro#6",
- "CoPro#7", "CoPro#8", "CoPro#9", "CoPro#10", "CoPro#11", "CoPro#12",
- "CoPro#13", "CoPro#14", "CoPro-Custom"
- };
- static const char* Contents [3] =
- {
- "ROM", "ROM+RAM", "ROM+RAM+BAT"
- };
- if (Memory.ROMType == 0 && !Settings.BS)
- return "ROM only";
-
- sprintf(tmp, "%s", Contents [(Memory.ROMType & 0xf) % 3]);
-
- if (Settings.BS)
- sprintf(tmp, "%s+%s", tmp, "BSX");
- else if (Settings.SPC7110 && Settings.SPC7110RTC)
- sprintf(tmp, "%s+%s", tmp, "SPC7110+RTC");
- else if (Settings.SPC7110)
- sprintf(tmp, "%s+%s", tmp, "SPC7110");
- else if(Settings.C4)
- sprintf(tmp, "%s+%s", tmp, "C4");
- else if (Settings.SETA != 0)
- {
- switch (Settings.SETA)
- {
- case ST_010:
- sprintf(tmp, "%s+%s", tmp, "ST-010");
- break;
- case ST_011:
- sprintf(tmp, "%s+%s", tmp, "ST-011");
- break;
- case ST_018:
- sprintf(tmp, "%s+%s", tmp, "ST-018");
- break;
- }
- }
- else if ((Memory.ROMType & 0xf) >= 3)
- {
- if (Memory.ROMType & 0xf0)
- sprintf(tmp, "%s+%s", tmp, CoPro [(Memory.ROMType & 0xf0) >> 4]);
- else
- sprintf(tmp, "%s+DSP%d", tmp, Settings.DSP == 0 ? 1 : Settings.DSP);
- }
-
- return tmp;
-}
-
-const char* MapMode(void)
-{
- static char tmp [4];
- sprintf(tmp, "%02x", Memory.ROMSpeed & ~0x10);
- return tmp;
-}
-
const char* ROMID(void)
{
return Memory.ROMId;
diff --git a/source/memmap.h b/source/memmap.h
index 654054b..d5c94f1 100644
--- a/source/memmap.h
+++ b/source/memmap.h
@@ -70,11 +70,7 @@ void CapcomProtectLoROMMap(void);
const char* TVStandard(void);
const char* Speed(void);
-const char* StaticRAMSize(void);
const char* MapType(void);
-const char* MapMode(void);
-const char* KartContents(void);
-const char* Size(void);
const char* Headers(void);
const char* ROMID(void);
const char* CompanyID(void);