mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-28 12:11:50 +01:00
2c2f760f44
.improved hardware initialization (fixes Ultimate Mortal Kombat Trilogy) .improved soft-reset emulation .fixed some menu bugs on Gamecube
57 lines
2.2 KiB
C
57 lines
2.2 KiB
C
/***************************************************************************************
|
|
* Genesis Plus
|
|
* ROM Loading Support
|
|
*
|
|
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
|
|
* Eke-Eke (2007,2008,2009), additional code & fixes for the GCN/Wii port
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
****************************************************************************************/
|
|
#ifndef _LOADROM_H_
|
|
#define _LOADROM_H_
|
|
|
|
#define MAXROMSIZE 10485760
|
|
|
|
typedef struct
|
|
{
|
|
char consoletype[18]; /* Genesis or Mega Drive */
|
|
char copyright[18]; /* Copyright message */
|
|
char domestic[50]; /* Domestic name of ROM */
|
|
char international[50]; /* International name of ROM */
|
|
char ROMType[4]; /* Educational or Game */
|
|
char product[14]; /* Product serial number */
|
|
unsigned short checksum; /* ROM Checksum (header) */
|
|
unsigned short realchecksum; /* ROM Checksum (calculated) */
|
|
unsigned int romstart; /* ROM start address */
|
|
unsigned int romend; /* ROM end address */
|
|
char country[18]; /* Country flag */
|
|
uint16 peripherals; /* Supported peripherals */
|
|
} ROMINFO;
|
|
|
|
|
|
/* Global variables */
|
|
extern ROMINFO rominfo;
|
|
extern char rom_filename[256];
|
|
|
|
/* Function prototypes */
|
|
extern int load_rom(char *filename);
|
|
extern void region_autodetect(void);
|
|
extern char *get_company(void);
|
|
extern char *get_peripheral(int index);
|
|
|
|
#endif /* _LOADROM_H_ */
|
|
|