romdisk?
-
- DC Developer
- Posts: 60
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Wed Oct 17, 2001 7:44 pm
- Has thanked: 0
- Been thanked: 0
romdisk?
I just moved from libdream (I wasn't there long) to KOS and I'm lost. First of all, what is a romdisk? Also, what about serial_disable() and bfont_draw_str()? What are the equivalents in KOS?
The romdisk is for storing information, files, etc that your program would need without requiring the use of the CD, VMU, or BBA to load the info from. It's especially useful if you need a base directory of files to run your program, but you need to swap CDs, etc.
One thing to note is the romdisk is linked into your executable, increasing the size of the elf file accordingly. In other words, it's not a good place to store large numbers of files, etc.... One piece it's often needed for is to store the stream.drv file for any SPU access (thanks Atani!)
As for serial_disable, there's an option for kos_init that will do it, although the better thing to do is use a -DDEBUG option to your makefile so it will only compile in the printf's when you need them. As for bfont_draw_str, it's the same command....
One thing to note is the romdisk is linked into your executable, increasing the size of the elf file accordingly. In other words, it's not a good place to store large numbers of files, etc.... One piece it's often needed for is to store the stream.drv file for any SPU access (thanks Atani!)
As for serial_disable, there's an option for kos_init that will do it, although the better thing to do is use a -DDEBUG option to your makefile so it will only compile in the printf's when you need them. As for bfont_draw_str, it's the same command....
-
- DC Developer
- Posts: 60
- Joined: Wed Oct 17, 2001 7:44 pm
- Has thanked: 0
- Been thanked: 0
There's a very subtle difference here between a romdisk and a ramdisk. Both are virtual, and both occupy a portion of memory. The difference is, that like rom vs ram, a romdisk is read-only while a ramdisk actually allows you to write data to memory as though it were a disk.I always thought it was "ramdisk". Guess i was wrong.