Welcome! Log In Create A New Profile

Advanced

Load a file

Posted by pokeglobe 
Load a file
May 11, 2009 04:01AM
Alright, I am making codes now So far I am at the Open the file.
It Reads all of the lines but how do I make it open the boot.dol????????

Can someone give me the code? Thanks!
Re: What program should load a file?
May 11, 2009 04:46AM
Let me try and translate, not sure if I missed something.

-You are now starting to program some code.
-You can now open some files in your programming demos.
-It reads all the lines in your test file (???)
-You now want it to open and read a "boot.dol" file (???)
-You want the code so you can open and read a "boot.dol" file...

I think that's what you want, yes?
Re: Load a file
May 11, 2009 02:24PM
Do you want to boot a "boot.dol" file in your program ?
I think Ksmiler's translation is good though.
Re: Load a file
May 11, 2009 09:43PM
I think there is another possible translation
You make some codes->you write code
You are at the Open The File->you don't know how to execute it
It Reads all of the lines->it compiles without errors

if it's so, then steps are:
You write the code
You compile the code into a boot.dol file
You copy the dol into your SD at apps/yourAppName
You launch your project from homebrew channel.

If you alredy do all those things then you might be asking on how to launch an application from your own application, so you should look into the source code of some loaders. Look in the wiki then.
Re: Load a file
May 12, 2009 12:22AM
I meant ( I made a Code from the hello world example)
I want my new file (wich I can run) To boot the boot.dol off of the sd card.

Dol booting dol xD plz and thanks.
Re: Load a file
May 12, 2009 01:37AM
Quote
pokeglobe
I meant ( I made a Code from the hello world example)
I want my new file (wich I can run) To boot the boot.dol off of the sd card.

Dol booting dol xD plz and thanks.
Try taking a peek at the source code for Loadmii: [www.wiibrew.org]
Re: Load a file
May 12, 2009 02:52PM
You'll probably also need to load your 1st dol somewhere else than 0x80000000 or your loader will crash while relocating the 2nd dol.
Re: Load a file
May 15, 2009 09:25AM
Since there is no function you can call i wouldnt go through the effort.
Sorry, only registered users may post in this forum.

Click here to login