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];
|
|
|
|
|
|
|
|
void browser_tap (FILE *);
|
|
|
|
void 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();
|
2013-03-16 08:59:05 +01:00
|
|
|
|
|
|
|
#endif
|