Hello,
Ogre should use the same interface to open/read/write/close files across all the libraries. (some use fopen, some i/ofstream and none accept the unicode file name)
This interface should be overridable and as simple as possible.
Every file name given to Ogre should be UTF8 encoded in order to be managed by all file systems (Ansi and Unicode).
Unified file access interface
-
- Gremlin
- Posts: 175
- Joined: Fri Sep 29, 2006 5:56 pm
- Location: Rosny Sous Bois, France
- x 11
-
- OGRE Retired Team Member
- Posts: 2903
- Joined: Thu Jan 18, 2007 2:48 pm
- x 58
Re: Unified file access interface
While this is a valid request, I don't think this fits as a papercut due to the effort of its implementation. The standard library has poor support for unicode (actually, none at all for UTF-8), so this may be a little involved to do in a cross-platform manner.
Still, this has to be fixed eventually.
Still, this has to be fixed eventually.
-
- Gnoblar
- Posts: 17
- Joined: Wed May 19, 2010 5:31 am
- x 3
Re: Unified file access interface
Thought not perhaps a complete solution, I think PhysicsFS may be a nice fit, and it has some nifty functionality:
http://icculus.org/physfs/
http://icculus.org/physfs/docs/html/index.html
It's also under a zlib license.
http://icculus.org/physfs/
http://icculus.org/physfs/docs/html/index.html
It's also under a zlib license.