I have a problem. I have lots of code that uses ifstreams in this manner:
ex:
bool AudioManager::_loadSounds( const std::string& path, const std::string& appendPath )
{
//open the file
std::ifstream ifs( path.c_str() );
//ensure it is open
if(!ifs.is_open())
{
return false;
}
std::string line;
//read each sound
while( getline( ifs, line ) )
{
...
The problem is I need to make an application-wide change to use PhysFS. All data will stay structured the same directory wise except it will be compartmentalized into zip files.
Is there a simple way to make PhysFS apply to ifstreams so that I do not need to modify all these classes?