summaryrefslogtreecommitdiff
path: root/source/tapes.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tapes.c')
-rw-r--r--source/tapes.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/tapes.c b/source/tapes.c
index 26bbd24..2220778 100644
--- a/source/tapes.c
+++ b/source/tapes.c
@@ -36,13 +36,15 @@
#include "mazogs_bin.h"
#include "mazogs_inlay_bin.h"
+#include "ds81_debug.h"
+
/* ---------------------------------------- STATIC DATA
*/
typedef struct
{
const u8 *tape;
- const u32 *tape_len;
+ const u8 *tape_end;
sImage img;
const void *source_pcx;
SoftKey *keys;
@@ -105,7 +107,7 @@ static Tape tapes[NO_TAPES]=
{
{
maze_bin,
- &maze_bin_size,
+ maze_bin_end,
{0},
maze_inlay_bin,
maze_keys,
@@ -123,7 +125,7 @@ static Tape tapes[NO_TAPES]=
},
{
mazogs_bin,
- &mazogs_bin_size,
+ mazogs_bin_end,
{0},
mazogs_inlay_bin,
mazogs_keys,
@@ -141,7 +143,7 @@ static Tape tapes[NO_TAPES]=
},
{
cpatrol_bin,
- &cpatrol_bin_size,
+ cpatrol_bin_end,
{0},
cpatrol_inlay_bin,
cpatrol_keys,
@@ -162,7 +164,7 @@ static Tape tapes[NO_TAPES]=
},
{
sabotage_bin,
- &sabotage_bin_size,
+ sabotage_bin_end,
{0},
sabotage_inlay_bin,
sabotage_keys,
@@ -260,7 +262,8 @@ void SelectTape(void)
int f;
done=TRUE;
- ZX81SetTape(tapes[current].tape,*tapes[current].tape_len);
+ ZX81SetTape(tapes[current].tape,
+ tapes[current].tape_end - tapes[current].tape);
for(f=0;tapes[current].keys[f]!=NUM_SOFT_KEYS;f+=2)
{