2012-07-29 10:39:21 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 Fabio Olimpieri
|
|
|
|
* Copyright 2003-2009 (C) Raster Software Vigo (Sergio Costas)
|
|
|
|
* This file is part of FBZX Wii
|
|
|
|
*
|
|
|
|
* FBZX Wii 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* FBZX Wii 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, 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];
|
2013-01-03 08:34:16 +01:00
|
|
|
extern char path_scr1[2049];
|
|
|
|
extern char path_scr2[2049];
|
2012-07-29 10:39:21 +02:00
|
|
|
extern char path_confs[2049];
|
2012-08-11 10:31:00 +02:00
|
|
|
extern char path_poke[2049];
|
2012-08-26 18:04:12 +02:00
|
|
|
extern char path_tmp[2049];
|
2012-07-29 10:39:21 +02:00
|
|
|
extern unsigned int colors[80];
|
|
|
|
extern unsigned int jump_frames,curr_frames;
|
2013-01-03 08:34:16 +01:00
|
|
|
extern unsigned char usbismount, smbismount, tmpismade, ftpismount,networkisinit;
|
2012-07-29 10:39:21 +02:00
|
|
|
|
|
|
|
void SDL_Fullscreen_Switch(void);
|
|
|
|
void load_rom(char);
|
|
|
|
void load_main_game(char *nombre);
|
|
|
|
int load_config(struct computer *object, char *filename);
|
|
|
|
int save_config(struct computer *object, char *filename);
|
|
|
|
int save_config_game(struct computer *object, char *filename, int overwrite);
|
|
|
|
FILE *myfopen(char *filename,char *mode);
|
|
|
|
void init_sdl();
|
|
|
|
void init_sound();
|
|
|
|
void init_screen(int resx,int resy,int depth,int fullscreen,int dblbuffer,int hwsurface);
|
2012-08-12 17:28:08 +02:00
|
|
|
int set_video_mode();
|
2012-08-26 18:04:12 +02:00
|
|
|
int remove_dir(char *dir);
|
2013-01-03 08:34:16 +01:00
|
|
|
unsigned char ConnectFTP ();
|
|
|
|
unsigned char ConnectShare ();
|
|
|
|
unsigned char InitNetwork();
|
2012-07-29 10:39:21 +02:00
|
|
|
|
|
|
|
#endif
|