66 lines
2.6 KiB
C
66 lines
2.6 KiB
C
/*
|
|
snes.h - Super NES support for uCON64
|
|
|
|
Copyright (c) 1999 - 2001 NoisyB <noisyb@gmx.net>
|
|
Copyright (c) 2001 - 2004 dbjh
|
|
Copyright (c) 2002 - 2003 John Weidman
|
|
|
|
|
|
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
#ifndef SNES_H
|
|
#define SNES_H
|
|
|
|
#include "backup/fig.h" // for st_fig_header_t
|
|
|
|
#define SNES_HEADER_START 0x7fb0
|
|
#define SNES_HIROM 0x8000
|
|
#define SNES_EROM 0x400000 // "Extended" ROM, Hi or Lo
|
|
|
|
typedef enum { SWC = 1, GD3, UFO, FIG, MGD_SNES, SMC } snes_file_t;
|
|
|
|
extern const st_getopt2_t snes_usage[];
|
|
|
|
extern snes_file_t snes_get_file_type (void);
|
|
extern int snes_buheader_info (st_rominfo_t *rominfo);
|
|
extern int snes_chk (st_rominfo_t *rominfo);
|
|
extern int snes_col (const char *color);
|
|
extern int snes_demirror (st_rominfo_t *rominfo);
|
|
extern int snes_densrt (st_rominfo_t *rominfo);
|
|
extern int snes_dint (st_rominfo_t *rominfo);
|
|
extern int snes_f (st_rominfo_t *rominfo);
|
|
extern int snes_fig (st_rominfo_t *rominfo);
|
|
extern int snes_figs (st_rominfo_t *rominfo);
|
|
extern int snes_gd3 (st_rominfo_t *rominfo);
|
|
extern int snes_gd3s (st_rominfo_t *rominfo);
|
|
extern int snes_get_snes_hirom (void);
|
|
extern int snes_init (st_rominfo_t *rominfo);
|
|
extern int snes_j (st_rominfo_t *rominfo);
|
|
extern int snes_k (st_rominfo_t *rominfo);
|
|
extern int snes_l (st_rominfo_t *rominfo);
|
|
extern int snes_make_gd_names (const char *filename, st_rominfo_t *rominfo, char **names);
|
|
extern int snes_mgd (st_rominfo_t *rominfo);
|
|
extern int snes_mgh (st_rominfo_t *rominfo);
|
|
extern int snes_multi (int truncate_size, char *fname);
|
|
extern int snes_n (st_rominfo_t *rominfo, const char *name);
|
|
extern int snes_s (st_rominfo_t *rominfo);
|
|
extern void snes_set_fig_header (st_rominfo_t *rominfo, st_fig_header_t *header);
|
|
extern int snes_smc (st_rominfo_t *rominfo);
|
|
extern int snes_swc (st_rominfo_t *rominfo);
|
|
extern int snes_swcs (st_rominfo_t *rominfo);
|
|
extern int snes_ufo (st_rominfo_t *rominfo);
|
|
extern int snes_ufos (st_rominfo_t *rominfo);
|
|
#endif // SNES_H
|