-
-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Hello,
I'm trying PhyFS, seams really intresting but there is no example how to use write.
Result is a corrupted zip file
It would be great if I can get some help to understand what is wrong.
I'm using 3.3 release.
here is my simple code:
PHYSFS_init("d:\");
PHYSFS_setWriteDir("d:\");
PHYSFS_mount("d:\\testw.zip", "/" , true);
const char* writedir = PHYSFS_getWriteDir();
std::cout << writedir << std::endl; // for testing
PHYSFS_File* txtwtest = PHYSFS_openWrite("/txt2.txt");
int test = PHYSFS_writeBytes(txtwtest, "testwr", 5); // return 5 so it did write somewhere
PHYSFS_close(txtwtest);
PHYSFS_unmount("d:\\test.zip");
PHYSFS_deinit();
Metadata
Metadata
Assignees
Labels
No labels