Cleanups; turn some functions static
This commit is contained in:
18
src/ines.c
18
src/ines.c
@@ -224,10 +224,13 @@ static struct BADINF BadROMImages[] =
|
||||
#include "ines-bad.h"
|
||||
};
|
||||
|
||||
void CheckBad(uint64 md5partial) {
|
||||
static void CheckBad(uint64 md5partial)
|
||||
{
|
||||
int32 x = 0;
|
||||
while (BadROMImages[x].name) {
|
||||
if (BadROMImages[x].md5partial == md5partial) {
|
||||
while (BadROMImages[x].name)
|
||||
{
|
||||
if (BadROMImages[x].md5partial == md5partial)
|
||||
{
|
||||
FCEU_PrintError("The copy game you have loaded, \"%s\", is bad, and will not work properly in FCE Ultra.", BadROMImages[x].name);
|
||||
return;
|
||||
}
|
||||
@@ -247,7 +250,8 @@ struct CHINF {
|
||||
int32 extra;
|
||||
};
|
||||
|
||||
static void CheckHInfo(void) {
|
||||
static void CheckHInfo(void)
|
||||
{
|
||||
#define DEFAULT (-1)
|
||||
#define NOEXTRA (-1)
|
||||
|
||||
@@ -804,13 +808,15 @@ INES_BOARD_BEGIN()
|
||||
INES_BOARD( "LH53", 535, LH53_Init )
|
||||
INES_BOARD_END()
|
||||
|
||||
static uint32 get_ines_version(void) {
|
||||
static uint32 get_ines_version(void)
|
||||
{
|
||||
if ((head.ROM_type2 & 0x0C) == 0x08)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static uint32 get_ines_mapper_id(void) {
|
||||
static uint32 get_ines_mapper_id(void)
|
||||
{
|
||||
/* If byte 7 AND $0C = $08, and the size taking into account byte 9 does not exceed the actual size of the ROM image, then NES 2.0.
|
||||
* If byte 7 AND $0C = $00, and bytes 12-15 are all 0, then iNES.
|
||||
* Otherwise, archaic iNES. - nesdev*/
|
||||
|
||||
Reference in New Issue
Block a user