fgenesis / ttvfs Goto Github PK
View Code? Open in Web Editor NEW[old/obsolete] Tiny tree virtual file system - a small C++ library for app-internal VFS support. Like PhysicsFS.
[old/obsolete] Tiny tree virtual file system - a small C++ library for app-internal VFS support. Like PhysicsFS.
Hey.
So I am working with TinyThreads++ within my project and it will be vey easy to put it together with VFS. But, is thread-safety actually "implemented"? Like, if it was enabled, will it work? If not, then I will have to subclass most of the functions and manually implement lockign and unlocking...
Kind regards, Ingwie
I've not found the API.
Hey! Long time no see :) ...or read, whichever you prefer.
I wanted to know if it is possible to make ttvfs_gen
output a class of files?
Kind regards, Ingwie.
Hey.
I -finally- got to set up VisualC++ and a SSH server, so i can operate from my mac. So I went and tried to compile. It all went surprisingly well, except:
VFSFile.cpp(208) : error C2039: 'min' : is not a member of 'std'
VFSFile.cpp(208) : error C2065: 'min' : undeclared identifier
VFSFile.cpp(208) : error C2062: type 'unsigned int' unexpected
VFSFile.cpp(219) : error C2039: 'min' : is not a member of 'std'
VFSFile.cpp(219) : error C2065: 'min' : undeclared identifier
VFSFile.cpp(219) : error C2062: type 'unsigned int' unexpected
Can you work this out? o.o
Kind regards, Ingwie.
Hello. I've been packaging this library for Gentoo Linux (to use externally with Aquaria) and I've found that it fails to build in 32-bit when large file support is enabled. Note the -m32 flag here.
$ x86_64-pc-linux-gnu-g++ -m32 -DVFS_SUPPORT_ZIP -Dttvfs_EXPORTS -DNDEBUG -fPIC -o CMakeFiles/ttvfs.dir/VFSFileFuncs.cpp.o -c VFSFileFuncs.cpp
VFSFileFuncs.cpp: In function ‘void ttvfs::_dummy_()’:
VFSFileFuncs.cpp:17:34: error: duplicate case value
switch(0) { case 0:; case 4: case sizeof(off_t): ; }
^
VFSFileFuncs.cpp:17:26: error: previously used here
switch(0) { case 0:; case 4: case sizeof(off_t): ; }
I've found out why. You're including stdint.h before setting _FILE_OFFSET_BITS to 64. This triggers features.h to be loaded too soon and it doesn't set the magic __USE_FILE_OFFSET64 macro as a result. You'll need to rejig things a bit for this to work.
Hey!
I really like this project, because it has an extremely simple API to read and use files. Quite innovative is the mounting. :)
However, I have a question. I am currently trying to implement a way to store assets (images and stuff) into my executable, and reading from it. The actual data is stored inside a zip file - and that is then converted into a C file containing just a static char array, which in return results in the zip archive.
How can I make ttvfs read from such a buffer?
Kind regards, Ingwie!
Hey.
So, I am working on this build system, and I need to implement a function to list all files by a pattern. I.e. src/*.cxx
becomes a list of .cxx files in src (string vector, or list, most probably). So to do that, I need dirname()
and basename()
. And here come my questions:
1: Does TTVFS have these? And if yes, where?
2: What are the files needed to get these functions? Do I need the whole ttvfs/
folder?
Oh, and the buildtool in progress: http://github.com/IngwiePhoenix/IceTea
I am at the point where I am creating the commands. So I need all sorts of file-system APIs...
Kind regards, Ingwie
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.