From: ol.sc Date: Sun, 21 Oct 2012 14:36:05 +0000 (+0000) Subject: Made use of recently introduced getcurrentdevice(). X-Git-Tag: V2.14~210 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17e6a89c83efb7ff09ed5a95717d9fee656fd726;p=cc65 Made use of recently introduced getcurrentdevice(). git-svn-id: svn://svn.cc65.org/cc65/trunk@5864 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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); }