mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +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:
parent
89d4f4a90c
commit
17e6a89c83
@ -3,6 +3,7 @@
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <dirent.h>
|
||||
#include <device.h>
|
||||
#include <dio.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user