« on: June 06, 2011, 11:16:52 am »
I've been working on a game engine for the past couple months, and have recently been working on porting it via devkitPPC to the Wii so the engine can have its' platform specifics abstracted away so it can be ported to any platform.
I've run into an issue with a vector inside a filesystem object I'm using to store my VFS's file indexes, all of the fields now fill fine (used to fail on this due to endianess issues which I fixed), but after leaving the function to load all the data, and closing the ifstream, when returning to the filesystem object to load a file, when it accesses the vector again, the file count's decreased from 5 to 2, and the filenames are corrupt and don't display via printf like they do before leaving that function call.
It's declared as:
vector<FSHeader *> Filesystem;
In the filesystem object's header, and I literally just push_back objects onto it. The code works 100% pefectly on Windows and Linux, but seems to fail when running inside Dolphin. Could this be some kind of emulation issue?