Home | Forums | What's new | Resources | |
How to read information from a dir |
slinga - Mar 22, 2003 |
wonder_k | Mar 26, 2003 | |||
hmm... i've heard about this CDC stuff but did someone ever pick up a doc on this? since my header files don't show much because of the japanese comments i can't figure out how to get CDDA-Tracks (NO CDDA-FILES!!) playing. there are functions i know that but how to use them?
|
antime | Mar 26, 2003 | |||
The CDC library is documented in the System Library User's Manual.... For file operations you might want to investigate the GFS library, documented in the Program Library User's Guide.... |
wonder_k | Mar 26, 2003 | |||
i remember having downloaded those file from your site but i don't that i already had them... anyway, you these two will certainly help me with my contest project. |
slinga | Apr 11, 2003 | ||||
Hey guys, I read through the documentation above but I couldn't find a function that did what I required. So I decided to try something like this:
Code:
Which of course doesn't work...I'm just trying to have the saturn display filenames from the cd right now. I've included the proper library, but I'm not sure if I have to initialize the GFS library somewhere. Later on I'll have to do some creative filename converting...(Saturn backup ram files have to be 11 characters, saturn cds apparently only support 8 character name + 3 character extension...if GFS_IdToName displays the extension I'll be fine...if not I'm screwed <_< ) BTW, am I the only person having difficulty with the documentation? I'm guessing it was translated from Japanese to English, and lost some of its clarity in the translation. Also what's with all the errors? As if things weren't confusing enough. |
slinga | Apr 16, 2003 | ||||
This doesn't work either:
Code:
Grrrr |
vbt | Apr 17, 2003 | |||||||
I checked a little the source I made for the SMS Emu, but accessing the file list was really easy. here is a small part of the code :
Code:
stat contains the number of files (including ".." and ".") so the real number of iles is in file_max. to get the filenames :
Code:
file_id moves from 2 to stat (or something like that) I'm sure that will hep you. |
vbt | Apr 18, 2003 | |||
slinga, did I give you a good answer ? |
slinga | Apr 18, 2003 | ||||
I think your code was good, I think I'm doing something idiotic:
Code:
I'm going to keep on trying to debug this... |
slinga | Apr 18, 2003 | |||
Hmmm numSaves doesn't seem to be holding the correct value of saves. When I print it I get: FFFFFFF8 |
slinga | Apr 20, 2003 | |||||||
I got it to work like this (snippets from my program):
Code:
Code:
0 is reserved for parent directory, and 1 is reserved for the directory, that's why I started the for loop at 2. GFS_IdToName is NULL when the file doesn't exist (or I so think...). I just gotta write a function that converts 8.3 filenames into 11 character filenames and I'm done... |