fbzx-wii/src/emulator.h

52 lines
1.6 KiB
C
Raw Normal View History

/*
* Copyright (C) 2012 Fabio Olimpieri
2012-04-07 12:33:47 +02:00
* Copyright 2003-2009 (C) Raster Software Vigo (Sergio Costas)
* This file is part of FBZX Wii
2012-04-07 12:33:47 +02:00
*
* FBZX Wii is free software; you can redistribute it and/or modify
2012-04-07 12:33:47 +02:00
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* FBZX Wii is distributed in the hope that it will be useful,
2012-04-07 12:33:47 +02:00
* 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, see <http://www.gnu.org/licenses/>.
*
*/
#include "z80free/Z80free.h"
#include "computer.h"
#ifndef emulator_h
#define emulator_h
#define NUM_SNDBUF 2
extern char debug_var;
extern SDL_Surface *screen;
extern Z80FREE procesador;
extern struct computer ordenador;
extern unsigned char *sound[NUM_SNDBUF];
extern char path_snaps[2049];
extern char path_taps[2049];
extern char path_mdrs[2049];
extern char path_scr[2049];
2012-05-20 15:43:48 +02:00
extern char path_confs[2049];
2012-04-07 12:33:47 +02:00
extern unsigned int colors[80];
extern unsigned int jump_frames,curr_frames;
void SDL_Fullscreen_Switch(void);
void load_rom(char);
void load_main_game(char *nombre);
2012-05-20 15:43:48 +02:00
int load_config(struct computer *object, char *filename);
2012-05-26 15:03:17 +02:00
int save_config(struct computer *object, char *filename);
2012-05-20 15:43:48 +02:00
int save_config_game(struct computer *object, char *filename, int overwrite);
2012-04-07 12:33:47 +02:00
FILE *myfopen(char *filename,char *mode);
#endif