From 17e6a89c83efb7ff09ed5a95717d9fee656fd726 Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Sun, 21 Oct 2012 14:36:05 +0000 Subject: [PATCH] Made use of recently introduced getcurrentdevice(). git-svn-id: svn://svn.cc65.org/cc65/trunk@5864 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- targetutil/geos-apple/convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targetutil/geos-apple/convert.c b/targetutil/geos-apple/convert.c index 9b9962456..ea9273fc3 100644 --- a/targetutil/geos-apple/convert.c +++ b/targetutil/geos-apple/convert.c @@ -3,6 +3,7 @@ #include #include #include +#include #include unsigned char info_signature[3] = {3, 21, 63 | 0x80}; @@ -109,8 +110,7 @@ static unsigned get_dir_entry(char* p_name) /* Field header_pointer directly follows field last_mod */ cur_addr = *(unsigned*)(&dirent->d_mtime.hour + 1); - /* DEV_NUM is set to the drive accessed above */ - dhandle = dio_open(*(unsigned char*)0xBF30 >> 4); + dhandle = dio_open(getcurrentdevice()); if (!dhandle) { err_exit("dio_open", 1); } -- 2.39.5