DarthMike / indielib-crossplatform

IndieLib is a cross-platform Game Graphics engine. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL desktop. **NOT SUPPORTED ANYMORE**
zlib License
61 stars 27 forks source link

Refactor working path and resource loading to support app sandbox in iOS #134

Closed DarthMike closed 11 years ago

DarthMike commented 11 years ago

Currently pattern followed by tutorials and test code is to set the working path to the executable, which should be in /bin/. Then resources are loaded in /resources.

Besides this pattern being fragile, it's impossible to comply with in iOS or any app sandbox environment, as resources are bundled in app sandbox and app code can't access whole filesystem.

We need to handle this elegantly, to make location transparent.