2008-09-17 03:54:21 +02:00
|
|
|
/****************************************************************************
|
2008-09-17 04:27:55 +02:00
|
|
|
* Visual Boy Advance GX
|
2008-09-17 03:54:21 +02:00
|
|
|
*
|
2022-01-09 17:41:59 +01:00
|
|
|
* Tantric 2008-2022
|
2008-09-17 03:54:21 +02:00
|
|
|
*
|
|
|
|
* vbasupport.h
|
|
|
|
*
|
|
|
|
* VBA support code
|
|
|
|
***************************************************************************/
|
|
|
|
|
2009-03-04 07:56:55 +01:00
|
|
|
#ifndef VBASUPPORT_H
|
|
|
|
#define VBASUPPORT_H
|
|
|
|
|
2010-03-22 02:10:50 +01:00
|
|
|
#include "vba/System.h"
|
2008-09-16 07:42:21 +02:00
|
|
|
|
|
|
|
extern struct EmulatedSystem emulator;
|
2009-03-04 07:56:55 +01:00
|
|
|
extern int cartridgeType;
|
|
|
|
extern int SunBars;
|
|
|
|
extern u32 RomIdCode;
|
|
|
|
extern bool TiltSideways;
|
2009-06-01 09:20:23 +02:00
|
|
|
extern char RomTitle[];
|
2009-03-04 07:56:55 +01:00
|
|
|
|
2009-10-02 00:42:02 +02:00
|
|
|
bool LoadVBAROM();
|
2008-09-16 07:42:21 +02:00
|
|
|
void InitialisePalette();
|
2009-06-17 09:47:22 +02:00
|
|
|
bool IsGameboyGame();
|
2009-11-16 10:02:17 +01:00
|
|
|
bool IsGBAGame();
|
2019-01-08 04:06:08 +01:00
|
|
|
void ResetTiltAndCursor();
|
2009-10-02 00:42:02 +02:00
|
|
|
bool LoadBatteryOrState(char * filepath, int action, bool silent);
|
|
|
|
bool LoadBatteryOrStateAuto(int action, bool silent);
|
|
|
|
bool SaveBatteryOrState(char * filepath, int action, bool silent);
|
|
|
|
bool SaveBatteryOrStateAuto(int action, bool silent);
|
2016-06-05 00:59:43 +02:00
|
|
|
bool SavePreviewImg (char * filepath, bool silent);
|
2009-03-04 07:56:55 +01:00
|
|
|
|
|
|
|
#endif
|