diff options
Diffstat (limited to 'rbutil/sansapatcher/sansaio.h')
-rw-r--r-- | rbutil/sansapatcher/sansaio.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/sansapatcher/sansaio.h b/rbutil/sansapatcher/sansaio.h index de25433765..9e8ebb93c9 100644 --- a/rbutil/sansapatcher/sansaio.h +++ b/rbutil/sansapatcher/sansaio.h | |||
@@ -63,6 +63,7 @@ struct mi4header_t { | |||
63 | 63 | ||
64 | struct sansa_t { | 64 | struct sansa_t { |
65 | HANDLE dh; | 65 | HANDLE dh; |
66 | unsigned char* sectorbuf; | ||
66 | char diskname[4096]; | 67 | char diskname[4096]; |
67 | int sector_size; | 68 | int sector_size; |
68 | struct sansa_partinfo_t pinfo[4]; | 69 | struct sansa_partinfo_t pinfo[4]; |
@@ -77,8 +78,8 @@ int sansa_reopen_rw(struct sansa_t* sansa); | |||
77 | int sansa_close(struct sansa_t* sansa); | 78 | int sansa_close(struct sansa_t* sansa); |
78 | int sansa_seek(struct sansa_t* sansa, loff_t pos); | 79 | int sansa_seek(struct sansa_t* sansa, loff_t pos); |
79 | int sansa_read(struct sansa_t* sansa, unsigned char* buf, int nbytes); | 80 | int sansa_read(struct sansa_t* sansa, unsigned char* buf, int nbytes); |
80 | int sansa_write(struct sansa_t* sansa, unsigned char* buf, int nbytes); | 81 | int sansa_write(struct sansa_t* sansa, int nbytes); |
81 | int sansa_alloc_buffer(unsigned char** sectorbuf, int bufsize); | 82 | int sansa_alloc_buffer(struct sansa_t* sansa, int bufsize); |
82 | 83 | ||
83 | #ifdef __cplusplus | 84 | #ifdef __cplusplus |
84 | } | 85 | } |