mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +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 <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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user