Wiiload arguments

support for the powerpc toolchain
Post Reply
Oibaf
Posts: 34
Joined: Mon Jul 04, 2011 1:03 pm

Wiiload arguments

Post by Oibaf » Sat Jan 19, 2013 12:00 am

After many attempts, I found out that wiiload passes its first argument as argv[0].

According to the standard C argv[0] should be the name of the file and the first passed argument should be argv[1].

Why is there this difference?

Oibaf
Posts: 34
Joined: Mon Jul 04, 2011 1:03 pm

Re: Wiiload arguments

Post by Oibaf » Wed Mar 27, 2013 5:21 pm

Indeed, I verified that argv[0] = name of dol/elf if wiiload is launched from a command window but argv[0] = "first argument", if wiiload is launched from programmer's notepad (windows environment) setting the parameters in Notepad as "$(ProjectName).dol argument".

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest