Filesystem crashes.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Filesystem crashes.

Post by disanti »

I have this code that crashes the app:
device->getFileSystem()->addZipFileArchive(FILE_PAK3,true,true);

It would work perfectly back in 0.5 but now with 0.6, I've been having alot of problems.

FILE_PAK3 definition:
#define FILE_PAK3 ".//data//pss4_hud.pak"

Yes, the file is there! :(

Thanks!
~ John DiSanti
________
WEBSITE HOST
Last edited by disanti on Tue Feb 22, 2011 8:03 am, edited 1 time in total.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

That'S stange, I did not change anything in that part of the engine, I think..
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

I did modify the source a little and rebuilt it but I didn't touch the filesystem code. I only added an icon resource to the DLL and made it load that for the window and built the dll as pss4.dll. This worked fine in 0.5. I'm going to try redownloading 0.6 and use the code that isn't modified.
________
FREE MAGENTO THEMES
Last edited by disanti on Tue Feb 22, 2011 8:03 am, edited 1 time in total.
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

That didn't work. :?
________
Head shop
Last edited by disanti on Tue Feb 22, 2011 8:04 am, edited 1 time in total.
Luke923
Posts: 59
Joined: Wed Nov 05, 2003 5:26 am

Re: Filesystem crashes.

Post by Luke923 »

disanti wrote:Yes, the file is there! :(
But, is your current directory path pointing to your current working directory? Try making a device->getFileSystem()->getWorkingDirectory() call prior to the addZipFileArchive() call. I had a similar issue with getFileSystem() in the past, and pointing the IFileSystem to my current app directory inside my singleton class' constructor seemed to fixed the issue. On the other hand, this was back on 0.4.1 code. So, your mileage may vary.
"Object-oriented programming is an exceptionally bad idea which could only have originated in California."
- E.W. Dijkstra
Post Reply