Added memoryfilesystem and working on c wrapper

This commit is contained in:
2025-01-03 05:50:44 -06:00
parent 8e4ec4ee3e
commit 7e6f0f1fca
17 changed files with 1229 additions and 8 deletions

21
examples/wrappertest.c Normal file
View File

@ -0,0 +1,21 @@
#include "TessesFramework.h"
int main(int argc, char** argv)
{
tf_vfs_t* local = tf_vfs_create_local();
tf_vfs_dir_t* dir = tf_vfs_opendir(local, "/home/mike");
string_t* str;
while(str = tf_vfs_readdir(dir))
{
string_println(str);
}
tf_vfs_closedir(dir);
tf_stream_t* strm = tf_vfs_open(local,"/home/mike/myPhoto.png", "wb");
tf_vfs_close(local);
}