1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Made use of recently introduced getcurrentdevice().

git-svn-id: svn://svn.cc65.org/cc65/trunk@5864 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-10-21 14:36:05 +00:00
parent 89d4f4a90c
commit 17e6a89c83

View File

@ -3,6 +3,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <dirent.h> #include <dirent.h>
#include <device.h>
#include <dio.h> #include <dio.h>
unsigned char info_signature[3] = {3, 21, 63 | 0x80}; 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 */ /* Field header_pointer directly follows field last_mod */
cur_addr = *(unsigned*)(&dirent->d_mtime.hour + 1); cur_addr = *(unsigned*)(&dirent->d_mtime.hour + 1);
/* DEV_NUM is set to the drive accessed above */ dhandle = dio_open(getcurrentdevice());
dhandle = dio_open(*(unsigned char*)0xBF30 >> 4);
if (!dhandle) { if (!dhandle) {
err_exit("dio_open", 1); err_exit("dio_open", 1);
} }