Commit 69170141 authored by cRTrn13's avatar cRTrn13

No commit message

No commit message
parent 48a894e8
......@@ -56,7 +56,7 @@ off_t bd_seek(BLURAY *bd, uint64_t pos)
if (pos < bd->s_size) {
bd->s_pos = pos - (pos % 6144);
file_seek(bd->fp, bd->s_pos, SEEK_SET);
file_seeko(bd->fp, bd->s_pos, SEEK_SET);
}
return bd->s_pos;
......
......@@ -39,9 +39,9 @@ CONFIGFILE *configfile_open(const char *path)
DEBUG(DBG_CONFIGFILE, "Opening configfile %s... (0x%08x)\n", path, kf);
if ((fp = file_open(path, "rb"))) {
file_seek(fp, 0, SEEK_END);
kf->size = file_tell(fp);
file_seek(fp, 0, SEEK_SET);
file_seeko(fp, 0, SEEK_END);
kf->size = file_tello(fp);
file_seeko(fp, 0, SEEK_SET);
kf->buf = malloc(kf->size);
......
......@@ -10,8 +10,8 @@
//#endif
#define file_close(X) X->close(X)
#define file_seek(X,Y,Z) X->seek(X,Y,Z)
#define file_tell(X) X->tell(X)
#define file_seeko(X,Y,Z) X->seeko(X,Y,Z)
#define file_tello(X) X->tello(X)
#define file_eof(X) X->eof(X)
#define file_read(X,Y,Z) X->read(X,Y,Z)
#define file_write(X,Y,Z) X->write(X,Y,Z)
......
......@@ -58,10 +58,10 @@ FILE_H *file_open_linux(const char* filename, const char *mode)
DEBUG(DBG_CONFIGFILE, "Opening LINUX file %s... (0x%08x)\n", filename, file);
file->close = file_close_linux;
file->seek = file_seek_linux;
file->seeko = file_seeko_linux;
file->read = file_read_linux;
file->write = file_write_linux;
file->tell = file_tell_linux;
file->tello = file_tello_linux;
if ((fp = fopen(filename, mode))) {
file->internal = fp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment