static int funcClose(struct SDL_RWops* context)
{
PHYSFS_file* file = (PHYSFS_file*) context->hidden.unknown.data1;
-
+
PHYSFS_close(file);
delete context;
<< PHYSFS_getLastError();
throw std::runtime_error(msg.str());
}
-
+
SDL_RWops* ops = new SDL_RWops();
ops->type = 0;
ops->hidden.unknown.data1 = file;