2 Skelton for retropc emulator
4 Author : Takeda.Toshiya
13 #include "../common.h"
28 HARDDISK(EMU* parent_emu)
35 set_device_name(_T("Hard Disk Drive #%d"), drive_num + 1);
42 void open(const _TCHAR* file_path, int default_sector_size);
46 bool read_buffer(long position, int length, uint8_t *buffer);
47 bool write_buffer(long position, int length, uint8_t *buffer);
57 long get_cur_position();
58 int get_sector_size();
61 int get_sectors_per_cylinder();
66 void set_device_name(const _TCHAR* format, ...)
73 my_vstprintf_s(buffer, 1024, format, ap);
76 my_tcscpy_s(this_device_name, 128, buffer);
79 const _TCHAR *get_device_name()
81 return (const _TCHAR *)this_device_name;
83 _TCHAR this_device_name[128];