My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1238: [ documentation request ] host file system
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by pikilip...@gmail.com, Mar 12, 2012
Hello,

I am trying to debug my homebrew app PS24VJ (http://pikilipita.com/vj/ps24vj/) within the emulator.
My app requires loading external files... That working fine on the real hardware using mass:/ but can't get it to work on the emulator.
I have ticked the host system option, tried with host:/, cdrom:/ but no luck.

Where can I find documentation about this host system feature?

Thank you

Clément
Mar 12, 2012
#1 ramapcsx2
It's been a while since I worked with homebrew but here goes:

-Did you put your external files in the same directory as the .elf?
-Make sure to use host:/ as we don't support USB or the hard disk well.

Here's code I found in some samples we used:

SifLoadModule("host:ADSRTEST.irx",0,NULL);

Mar 12, 2012
#2 pikilip...@gmail.com
Thanks for your help, i made it work:

//test if file exists, works on pcsx2
char fileName1[255];
unsigned char data;
FILE* f;

strcat( fileName1, "./myfile.bin");
printf("testing is file exists: %s \n", fileName1);
f=fopen(fileName1 ,"rb");
if (f==NULL)printf("NO \n");
else
{
printf("YES \n");
fread(&data, sizeof(unsigned char), 1 ,f);
printf("data = %d \n", data);
}
fclose(f);

but can't get content of dirs the same way it's working on the console. That's fine, just opening file through the emulator is fine for debugging.
Sign in to add a comment

Powered by Google Project Hosting