mirror of
https://github.com/libretro/fixGB.git
synced 2024-11-23 09:09:40 +00:00
251e12cf98
-added support for one of the multicarts I own because why not -various small updates regarding the libretro hook, including better handling of rom switching and saving
36 lines
671 B
C
36 lines
671 B
C
/*
|
|
* Copyright (C) 2017 FIX94
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
|
|
#ifndef _mbc_h_
|
|
#define _mem_h_
|
|
|
|
enum {
|
|
MBC_TYPE_NONE = 0,
|
|
MBC_TYPE_1,
|
|
MBC_TYPE_2,
|
|
MBC_TYPE_3,
|
|
MBC_TYPE_5,
|
|
MBC_TYPE_6,
|
|
MBC_TYPE_7,
|
|
MBC_TYPE_GBS,
|
|
};
|
|
|
|
void mbcInit(uint8_t type);
|
|
void mbcResetRegs();
|
|
size_t mbcRTCSize();
|
|
void mbcRTCInit();
|
|
void mbcRTCLoad(FILE *f);
|
|
void mbcRTCStore(FILE *f);
|
|
void mbcExtRAMInit(uint8_t type);
|
|
void mbcExtRAMLoad(FILE *f);
|
|
void mbcExtRAMStore(FILE *f);
|
|
void mbcExtRAMGBSClear();
|
|
extern set8FuncT mbcSet8;
|
|
extern set8FuncT mbcSetRAM8;
|
|
extern get8FuncT mbcGetRAM8;
|
|
|
|
#endif |