Search found 189 matches
- Wed Oct 16, 2013 3:58 am
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
Re: libfatfs - FAT16 & FAT32 for SD Cards
Alright Well I will keep trying to figure out the bugs and use that library you provided as a reference to make mines faster. Use FatFs by ChaN in the mean time.
- Wed Oct 16, 2013 1:07 am
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
Re: libfatfs - FAT16 & FAT32 for SD Cards
I can probably figure it out with some debug output that I added. I hate to use people to debug stuff but if you have time, update the library and run again (no need to use -DFATFS_DEBUG) and post output. Do you know a way to some how make an image copy of the SD card to send to me? What other libra...
- Tue Oct 15, 2013 6:23 pm
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
Re: libfatfs - FAT16 & FAT32 for SD Cards
In readdir entry I would like to see the original naming rather than all in upper case. This is my personal opinion :wink: Very good point. I updated libfatfs to now output original naming. As for the bug, it looks like it is parsing directories incorrectly and it hard for me to duplicate unless I ...
- Mon Oct 14, 2013 5:27 pm
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
Re: libfatfs - FAT16 & FAT32 for SD Cards
Fat16 and Fat32 are case insensitive filesystems so I decided to convert all file/folders to upper case. For example, open("/sd/hello.c", O_RDWR); will open the file hello.c in the /sd directory. hello.c could be an actual file named: HELLO.C or HeLLo.c or Hello.C. I hope this explanation ...
- Sun Oct 13, 2013 11:09 am
- Forum: Programming Discussion
- Topic: fseek64, fs_total64, ftell64, fread, fwrite
- Replies: 2
- Views: 552
Re: fseek64, fs_total64, ftell64
ugh looks like KallistiOS just needed a good cleaning and recompile. As for fseek64 and ftell64. There are actually supposed to be fseeko and ftello. More about those functions are explained here: http://man7.org/linux/man-pages/man3/fseeko.3.html Thanks again BlueCrab. EDIT: So it seems fs_total()/...
- Sun Oct 13, 2013 6:16 am
- Forum: Programming Discussion
- Topic: fseek64, fs_total64, ftell64, fread, fwrite
- Replies: 2
- Views: 552
fseek64, fs_total64, ftell64, fread, fwrite
I was trying to get TinyXML2 running and the example included with the library failed on me. I was using libfatfs and thought id try and use the above functions but they don't compile(undefined reference). fs.h says: /* 64-bit file access functions. Generally, you should only define one of the 64-bi...
- Thu Oct 10, 2013 12:44 am
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
Re: libfatfs - FAT16 & FAT32 for SD Cards
Thanks. Yea, I use some form of a "cluster link map table". When a file/folder is opened, I create a linked list of clusters_nodes. Each node holds an int that corresponds to a cluster associated with that file/folder. No further FAT access is needed except when another cluster needs to be...
- Wed Oct 09, 2013 2:04 pm
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
Re: libfat2fs - FAT16 & FAT32 for SD Cards
Okay I updated the library. New link: https://github.com/andressbarajas/libfatfs Now (by default) nothing is cached, so the amount of memory used by the library is small. If you want it to be cached (like before this update), add -DFATFS_CACHEALL to KOS_CFLAGS in Makefile. Let me know if it works no...
- Fri Oct 04, 2013 11:46 pm
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
Re: libfat2fs - FAT16 & FAT32 for SD Cards
You make a lot of good points. I took the route that wasn't memory efficient :^/ but easy for me to work with and understand. It will take time but I will work your ideas in because they make absolute sense. Libfat2fs because I thought your lib worked for ext filesystem. Didnt know that there is act...
- Fri Oct 04, 2013 5:45 pm
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
Re: libfat2fs - FAT16 & FAT32 for SD Cards
I parse it all at once to create a Directory tree where the nodes are either files or folders. This makes it faster to access files and folders later on when you read and write. I did not stress test the function that parses a sd card will many sub directories. The function that parses directories u...
- Sun Sep 29, 2013 6:02 pm
- Forum: Programming Discussion
- Topic: libfatfs - FAT16 & FAT32 for SD Cards
- Replies: 25
- Views: 2608
libfatfs - FAT16 & FAT32 for SD Cards
A library that supports reading and writing to SD that use FAT16 or FAT32 for the Sega Dreamcast. I know that due to *patent* reasons this can not be included in KallistiOS so I posted it here. If posting it is also bad feel free to delete this thread. Use at your own risk :p https://github.com/andr...
- Sat Nov 06, 2010 2:13 pm
- Forum: Programming Discussion
- Topic: EpicAsian's Dreamcast Endeavours:D
- Replies: 28
- Views: 4717
Re: EpicAsian's Dreamcast Endeavours:D
maybe set
instead of ?
Code: Select all
vert.oargb = 0;
Code: Select all
vert.oargb = 1;
- Sat Nov 06, 2010 2:04 pm
- Forum: Programming Discussion
- Topic: VMU icons
- Replies: 18
- Views: 7450
Re: VMU icons
I believe Dan Potter created the *.kmg file format. Unless you write some plugin for an image program or write a program to convert it to a different format(yourself) there is no way any system can display it by default.
*.kmg is an uncompressed image format that can be loaded quickly into the pvr.
*.kmg is an uncompressed image format that can be loaded quickly into the pvr.
- Sat Aug 21, 2010 7:28 pm
- Forum: Programming Discussion
- Topic: Correlation between OpenGL and KOS PVR?
- Replies: 5
- Views: 1702
Re: Correlation between OpenGL and KOS PVR?
Parallax is just a wrapper around direct pvr functions. You can do without it but it is easier to use it if you're doing 3D stuff. Since you're not you can use direct pvr just fine. I also forgot to mention that the png example included with kos is also useful to teach you how to display images. Pay...
- Fri Aug 20, 2010 8:35 pm
- Forum: Programming Discussion
- Topic: Correlation between OpenGL and KOS PVR?
- Replies: 5
- Views: 1702
Re: Correlation between OpenGL and KOS PVR?
http://dcemulation.org/?title=PowerVR_Introduction You can check out BlueCrab and BlackAura's tutorial on the PVR here: http://dcemulation.org/?title=PowerVR_Introduction
- Thu Aug 19, 2010 7:57 pm
- Forum: Programming Discussion
- Topic: Correlation between OpenGL and KOS PVR?
- Replies: 5
- Views: 1702
Re: Correlation between OpenGL and KOS PVR?
No, learn the Parallax library it is much easier to understand when you go through its source. Of course the PVR examples provided with KOS are also very good to learn from. There are also threads on this forums that are of some use also but you will have to find those(such as the palette thread by ...
- Mon Aug 09, 2010 1:23 am
- Forum: Programming Discussion
- Topic: Getting started with programming again/
- Replies: 77
- Views: 11144
Re: Getting started with programming again/
I am actually looking forward to DC Dev ISO R5 with the latest pre-built tool chains and latest revision of KOS.
- Sun Aug 01, 2010 10:39 am
- Forum: Hardware Modification and Repair
- Topic: VMU backlight!
- Replies: 21
- Views: 14183
Re: VMU backlight!
Looks really great. Wish I had a printer to scrap.
- Thu Jul 29, 2010 5:17 pm
- Forum: Front Page News and Forum Guidelines
- Topic: Doom for the DC v1.2
- Replies: 28
- Views: 22005
Re: Doom for the DC v1.2
Great release. If I have any questions about adding network support I know who to turn to. Is this port open source?
- Thu Jul 29, 2010 2:34 pm
- Forum: Programming Discussion
- Topic: Widescreen mode and kos ?
- Replies: 39
- Views: 10537
Re: Widescreen mode and kos ?
Monitor: Samsung SyncMaster 712N 17 inch LCD
TV: Symphonic ST419E TV 27 inch (Not too sure about this one)
TV: Symphonic ST419E TV 27 inch (Not too sure about this one)