This is part of my code, where I'm trying to load font.png file from gamepack.epk. I get an error on line if (ecd->file->Open(filename)) .
In debugger window I see filename value as "\Program Files\Helloworld\gamepack.epk" char[512]. I dont really understand, where do edge reads file from? Why there is "Program Files" , when project folder is installed in C:\project\edge\samples. This is ppc2003-2005 application.
Please, could someone explain it to me?
In debugger window I see filename value as "\Program Files\Helloworld\gamepack.epk" char[512]. I dont really understand, where do edge reads file from? Why there is "Program Files" , when project folder is installed in C:\project\edge\samples. This is ppc2003-2005 application.
Data Abort: Thread=8da6e8e4 Proc=8c247550 'Helloworld.exe'
AKY=00004001 PC=0001309c RA=00000000 BVA=1e000010 FSR=00000407
Unhandled exception at 0x0001309c in Helloworld.exe: 0xC0000005: Access violation reading location 0x00000010.
- Code:
char filename[MAX_EFILESTR];
unsigned char *filedata;
unsigned long filedatasize, fileid;
ClassEStd::StrCpy(filename, data->currentpath);
ClassEStd::StrCat(filename, "gamepack.epk");
if (ecd->file->Open(filename))
Please, could someone explain it to me?