2013-03-16 08:59:05 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Fabio Olimpieri
|
|
|
|
* 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/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef H_TAPE_BROWSER
|
|
|
|
#define H_TAPE_BROWSER
|
|
|
|
|
2013-03-19 08:26:39 +01:00
|
|
|
#define MAX_BROWSER_ITEM 2500
|
|
|
|
#define MAX_SELECT_ITEM 63
|
2013-03-16 08:59:05 +01:00
|
|
|
|
|
|
|
struct browser {
|
|
|
|
unsigned int position;
|
|
|
|
char block_type[24];
|
2013-03-19 08:26:39 +01:00
|
|
|
char info[36];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct tape_select {
|
|
|
|
unsigned int offset;
|
2013-03-16 08:59:05 +01:00
|
|
|
char info[32];
|
|
|
|
};
|
|
|
|
|
2013-03-19 08:26:39 +01:00
|
|
|
extern struct tape_select *block_select_list[MAX_SELECT_ITEM+1];
|
2013-03-16 08:59:05 +01:00
|
|
|
extern struct browser *browser_list[MAX_BROWSER_ITEM+1];
|
|
|
|
|
SDL sound, compile against MINGW (VK, fopen binary files, menu key calls FBZX Wii menu, return key active on KEYUP), 2 bugs in 128k snap format, turbo N in line command, separated code for normal and precise emulation, toggle full screen in FBZX menu, removed snow effect in normal emulation, changed save tape routine, fixed 2 bugs in z80, changed SP call in z80
2013-04-06 16:45:45 +02:00
|
|
|
void create_browser_tap (FILE *);
|
|
|
|
void create_browser_tzx (FILE *);
|
2013-03-19 08:26:39 +01:00
|
|
|
int select_block(FILE * fichero);
|
2013-03-22 21:20:29 +01:00
|
|
|
int jump_to_block(FILE * fichero, int blocks_to_jump);
|
2013-03-19 08:26:39 +01:00
|
|
|
void free_browser();
|
2015-02-08 01:38:45 +01:00
|
|
|
//void save_scr_browser(unsigned char* zx_screen);
|
2015-03-17 15:52:53 +01:00
|
|
|
int extract_screen_tap (char *screen_memory, FILE * fichero);
|
|
|
|
int extract_screen_tzx (char *screen_memory, FILE * fichero);
|
2013-03-16 08:59:05 +01:00
|
|
|
#endif
|