Hrmm, it might be a bug, just a sec.
Yep, another case where strcat() is bugged and not actually working, which I use when checking memory cards for the modules.tgz archive before using the embedded archive.
I'll provide another binary.
I'd taken out the weak symbols in the C code in ps2sdk, but forgot to check for the ".weak" directive in the assembly, in which most of the memory handling and string handling routines are written. I might need to modify newlib.
I have set USB and HDD to true,but must I also edit the Mount Part?
I know it is not the best solution, but maybe you could implement your own strcat by using sprintf or such? (easy and dirty hack).
string functions always can be a pain often :)
The Partition setting is only for hdd support and only if the Directory setting has a "pfs0" path like "pfs0:/". If it's empty, the partition isn't mounted and the directory is set back to mc0:/SYS-CONF.
Yep, :D, protomank, I've been replacing the strcat() calls with "strcpy(ptr + strlen(ptr),string);", which seems to work. For some reason, ps2sdk's strcat() still isn't working, even though it's non-weak. It's possible that gcc's or newlib's version is overriding it.
I uploaded a new build that autoenables usb mass support.
I'm not quite sure what the problem is, but I passed flags to remove builtin versions, and there aren't any symbol conflicts with newlib, which seems to use the same assembly. It works in normal C only code, if there's no code compiled with g++ and libstdc++, which is weird...
Where is the snes9x.cfg file supposed to go ? I created one using your two samples (PS2-side and SNES9X-side) and tried placing it both in SYS-CONF and in the directory where snes9x.elf is stored, just changing the Home directory to something else (mc0:/Emulation) just to see if it would work, and SNES9X keeps creating all of its folders in SYC-CONF. Sorry if this is a dumbass question, I just can't figure it out :D
Well I hadn't seen your last post, but it seems it's working with the new ELF :)
No .ELF for testing.:(
Ohhh,thatīs my mistake,sorry.
Mass support is working now!!
To go back from the game to the Browser you must hold START for about 10 seconds.
It's supposed to be in mc0:/SYS-CONF/snes9x.cfg or mc1:/SYS-CONF/snes9x.cfg. If there's a syntax error with the file or a problem accessing a setting, then it fails to load and the default value gets used. I used strcat extensively for loading the settings, so it's probably affecting that, too.
I'll replace those calls, as well, and add some sort of indicator that the home directory has changed, probably by printing it somewhere onscreen.
I have tested some games now.All are starting.The FPS Status at the screen shows 30/60 or 25/50 fps.
Mass: and zipped .smc is working great.
Nice work rag! I tested a few games from USB and all worked ok, with the exception they all have a "stuttering" effect. I guess your aware of this, so i wanted to say thanks for the dedication you put into this and i can test a lot of SNES zips , as my collection is pretty big, if you need more feed back. :D
I can confirm .zip and .smc both work.
Hellz ya it's finally out!
But...the speed needs work :P
Even the SIMPLEST games like mario world run at 50% (30/60)...the others are even slower...
Is there something I can change in my CFG to fix it as of now or will nothing help?