Skip to content
Snippets Groups Projects
Commit 55f07251 authored by dg's avatar dg
Browse files

weird that it worked before ..

git-svn-id: http://svn.net-core.org/repos/t-engine4@5808 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1a438a77
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,6 @@ static int physfsrwops_write(SDL_RWops *rw, const void *ptr, int size, int num)
return((int) rc);
} /* physfsrwops_write */
static int physfsrwops_close(SDL_RWops *rw)
{
PHYSFS_File *handle = (PHYSFS_File *) rw->hidden.unknown.data1;
......@@ -135,6 +134,12 @@ static int physfsrwops_close(SDL_RWops *rw)
return(0);
} /* physfsrwops_close */
static int physfsrwops_size(SDL_RWops *rw)
{
PHYSFS_File *handle = (PHYSFS_File *) rw->hidden.unknown.data1;
return PHYSFS_fileLength(handle);
} /* physfsrwops_size */
static SDL_RWops *create_rwops(PHYSFS_File *handle)
{
......@@ -151,6 +156,7 @@ static SDL_RWops *create_rwops(PHYSFS_File *handle)
retval->read = physfsrwops_read;
retval->write = physfsrwops_write;
retval->close = physfsrwops_close;
retval->size = physfsrwops_size;
retval->hidden.unknown.data1 = handle;
} /* if */
} /* else */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment