2018-12-03 12:26:02 +01:00
|
|
|
/*****************************************************************************\
|
|
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
|
|
This file is licensed under the Snes9x License.
|
|
|
|
For further information, consult the LICENSE file in the root directory.
|
|
|
|
\*****************************************************************************/
|
2009-11-30 09:14:38 +01:00
|
|
|
|
2008-08-06 03:09:59 +02:00
|
|
|
#ifndef _DISPLAY_H_
|
|
|
|
#define _DISPLAY_H_
|
|
|
|
|
2018-11-12 00:57:16 +01:00
|
|
|
#include "snes9x.h"
|
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
enum s9x_getdirtype
|
|
|
|
{
|
|
|
|
DEFAULT_DIR = 0,
|
|
|
|
HOME_DIR,
|
|
|
|
ROMFILENAME_DIR,
|
|
|
|
ROM_DIR,
|
|
|
|
SRAM_DIR,
|
|
|
|
SNAPSHOT_DIR,
|
|
|
|
SCREENSHOT_DIR,
|
|
|
|
SPC_DIR,
|
2008-08-06 03:09:59 +02:00
|
|
|
CHEAT_DIR,
|
2018-11-12 00:57:16 +01:00
|
|
|
PATCH_DIR,
|
2008-08-06 03:09:59 +02:00
|
|
|
BIOS_DIR,
|
2010-01-27 23:08:56 +01:00
|
|
|
LOG_DIR,
|
2018-11-12 00:57:16 +01:00
|
|
|
SAT_DIR,
|
2010-01-27 23:08:56 +01:00
|
|
|
LAST_DIR
|
2008-08-06 03:09:59 +02:00
|
|
|
};
|
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
void S9xUsage (void);
|
|
|
|
char * S9xParseArgs (char **, int);
|
2018-11-12 00:57:16 +01:00
|
|
|
void S9xParseArgsForCheats (char **, int);
|
2010-01-27 23:08:56 +01:00
|
|
|
void S9xLoadConfigFiles (char **, int);
|
|
|
|
void S9xSetInfoString (const char *);
|
|
|
|
|
|
|
|
// Routines the port has to implement even if it doesn't use them
|
|
|
|
|
|
|
|
void S9xPutImage (int, int);
|
|
|
|
void S9xInitDisplay (int, char **);
|
|
|
|
void S9xDeinitDisplay (void);
|
|
|
|
void S9xTextMode (void);
|
|
|
|
void S9xGraphicsMode (void);
|
|
|
|
void S9xSetPalette (void);
|
|
|
|
void S9xToggleSoundChannel (int);
|
|
|
|
bool8 S9xOpenSnapshotFile (const char *, bool8, STREAM *);
|
|
|
|
void S9xCloseSnapshotFile (STREAM);
|
|
|
|
const char * S9xStringInput (const char *);
|
|
|
|
const char * S9xGetDirectory (enum s9x_getdirtype);
|
|
|
|
const char * S9xGetFilename (const char *, enum s9x_getdirtype);
|
|
|
|
const char * S9xGetFilenameInc (const char *, enum s9x_getdirtype);
|
|
|
|
const char * S9xChooseFilename (bool8);
|
|
|
|
const char * S9xBasename (const char *);
|
|
|
|
|
|
|
|
// Routines the port has to implement if it uses command-line
|
|
|
|
|
|
|
|
void S9xExtraUsage (void);
|
|
|
|
void S9xParseArg (char **, int &, int);
|
|
|
|
|
|
|
|
// Routines the port may implement as needed
|
|
|
|
|
|
|
|
void S9xExtraDisplayUsage (void);
|
|
|
|
void S9xParseDisplayArg (char **, int &, int);
|
|
|
|
void S9xSetTitle (const char *);
|
|
|
|
void S9xInitInputDevices (void);
|
|
|
|
void S9xProcessEvents (bool8);
|
|
|
|
const char * S9xSelectFilename (const char *, const char *, const char *, const char *);
|
2009-11-30 09:14:38 +01:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
#endif
|