Go Back   TehSkeen.com > Nintendo Wii > Wii Dev Central

Mini Skeen Menu
Main News Page Online Discussion Forums Downloads Database Console Modification Reviews IRC Chat Information Contests
Network Links
Network Links
Active Threads
102 Theater Room, Nintendo’s Video On Demand Service Launches Tomorrow
Last Post: markj81
Posted On: Today
Replies: 14
Views: 299
225 Pong2 v0.99 Released
Last Post: Randomhero
Posted On: Today
Replies: 1
Views: 106
51 For Sale BlackBerry Storm2 9520---$250,Apple iPhone 3GS 16GB- $200
Last Post: OLLUSS
Posted On: Today
Replies: 0
Views: 20
51 For Sale BlackBerry Storm2 9520---$250,Apple iPhone 3GS 16GB- $200
Last Post: OLLUSS
Posted On: Today
Replies: 0
Views: 18
0 Boot 2 Thoughts
Last Post: hatredg0d
Posted On: Today
Replies: 8
Views: 298
52 HELP!!! Backup Channel Trouble
Last Post: cobleman
Posted On: Today
Replies: 3
Views: 90
52 NSMB Question
Last Post: cobleman
Posted On: Today
Replies: 3
Views: 98
102 More "Unlock Your Wii" Scam Sites
Last Post: trispin
Posted On: Today
Replies: 16
Views: 647
214 New Mario Bros - Anti-Modchip Protection
Last Post: e143slime8
Posted On: Today
Replies: 55
Views: 4,584
0 I have a problem
Last Post: cobleman
Posted On: Today
Replies: 16
Views: 427
0 SDL MAME Wii
Last Post: dantemugiwara
Posted On: Today
Replies: 238
Views: 16,460
248 StartPatch 3.2.0E Released
Last Post: raoulteeuwen
Posted On: Today
Replies: 11
Views: 794
225 BibleQuiz 0.94 Released
Last Post: googies
Posted On: Today
Replies: 1
Views: 126
102 WODE vs. NSMB
Last Post: djdynamite123
Posted On: Today
Replies: 0
Views: 122
106 Game Categories Revised v11 Released
Last Post: brakken
Posted On: Today
Replies: 0
Views: 105
203 Crap 2.4b Released
Last Post: djdynamite123
Posted On: Today
Replies: 0
Views: 113
0 NDS broke, need money to fix it :(
Last Post: SoraK05
Posted On: Today
Replies: 6
Views: 1,209
225 RedSquare 0.93 Released
Last Post: djdynamite123
Posted On: Today
Replies: 0
Views: 75
225 SpaceBubble 0.92 Released
Last Post: djdynamite123
Posted On: Today
Replies: 0
Views: 74
More...

libdolfs: .dol attached ramdisk
  #1  
Old 09-27-2009, 06:02 PM
Hornpipe2 Hornpipe2 is offline
new member
 
Join Date: Sep 2008
Posts: 9
Default libdolfs: .dol attached ramdisk

Attached is the code for libdolfs - a read-only ramdisk which is attached at compile-time to your .dol. It's a lot like using bin2o to add binary data to the executable, but this library uses the Newlib devoptab structs to let you then access the data like any attached filesystem using fopen(), fread(), etc.

This software is in the public domain.

No idea how useful this will be. In my case I'm porting an emulator that reads a config file at start-up, and I don't want to change the emu code... since all my work is done through psoload, I can't add support files to an SD card. Hence this solution.

This initial release does not support directory access, but does allow long filenames.

Usage:

* first, build the library for your target system. Edit the makefile in dolfs/libdolfs and uncomment the SYSTARGET line to match your system (gamecube or wii). Run "make" then "make install". The library and include are copied to your libogc/ installation.
* next you need the tool to make a ramdisk. Run "make" in dolfs/ to build dfspack. Note: this requires a working c++ compiler on your system...

* Now you can use dfspack to build a ramdisk. Make a directory, fill it with files, then from the directory above:
dfspack <directory> <ramdiskname>
This will put all the files in <directory> into a single file, <ramdiskname>.h.

* #include "<ramdiskname>.h" at the top of your main source file
* mount the ramdisk with dolfsInit(&<ramdiskname>);
* read files from the ramdisk by prefix the path with <ramdiskname>: e.g.
FILE *cfgfile = fopen("ramdisk:/config.h","r");

Good luck! Send bug reports to kennedy.greg@gmail.com
Attached Files
File Type: zip dolfs.zip (6.8 KB, 20 views)
Reply With Quote

libdolfs dol attached ramdisk
  #2  
Old 11-06-2009, 01:01 PM
Cheerethync Cheerethync is offline
new member
 
Join Date: Oct 2009
Posts: 14
Default libdolfs dol attached ramdisk

sorry for my english , Does anyone knows an application to add a dol header in a binary file?
Doltool cant add a valid header to bin, Wii can not load it.
I have a bin of an app and I cant make to run in my because the invalid header.

Thank you

Regards
Reply With Quote
Reply

Tags
filesystem, ramdisk


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -4. The time now is 11:43 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All Original Content (C) 2005-2008 brakken, All Rights Reseverd