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);
58 // void save_state(FILEIO* state_fio);
59 // bool load_state(FILEIO* state_fio);
62 void set_device_name(const _TCHAR* format, ...)
69 my_vstprintf_s(buffer, 1024, format, ap);
72 my_tcscpy_s(this_device_name, 128, buffer);
75 const _TCHAR *get_device_name()
77 return (const _TCHAR *)this_device_name;
79 _TCHAR this_device_name[128];