Prevent some warnings from unused functions

This commit is contained in:
twinaphex 2021-08-12 15:56:43 +02:00
parent 88d4b81bd2
commit b5b90f70c0
2 changed files with 0 additions and 83 deletions

View File

@ -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;

View File

@ -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);