Hacking cIOS Downgrader 1.2 Source Code

  • Thread starter Thread starter D-Jay
  • Start date Start date
  • Views Views 3,193
  • Replies Replies 16
That was the first place I looked at
wink2.gif


There's no link anymore.


---
Edit:
Forget what I wrote. Found it. Sorry...
 
Okay, need some help, please.

When I want to compile the source I get

Code:
> "make" 
cios-downgrader.c
firmware.c
network.c
setting.c
c:/wiiprojects/cios-downgrader/source/setting.c: In function 'setting_write':
c:/wiiprojects/cios-downgrader/source/setting.c:200: warning: implicit declaration of function 'CONF_WriteTxt'
c:/wiiprojects/cios-downgrader/source/setting.c: In function 'sysconf_write':
c:/wiiprojects/cios-downgrader/source/setting.c:206: warning: implicit declaration of function 'CONF_Write'
c:/wiiprojects/cios-downgrader/source/setting.c: In function 'sysconf_setcountry':
c:/wiiprojects/cios-downgrader/source/setting.c:244: warning: implicit declaration of function 'CONF_GetCountryCode'
c:/wiiprojects/cios-downgrader/source/setting.c:284: warning: implicit declaration of function 'CONF_SetCountryCode'
c:/wiiprojects/cios-downgrader/source/setting.c: In function 'setting_setregion':
c:/wiiprojects/cios-downgrader/source/setting.c:378: warning: implicit declaration of function 'CONF_SetArea'
c:/wiiprojects/cios-downgrader/source/setting.c:385: warning: implicit declaration of function 'CONF_SetRegion'
c:/wiiprojects/cios-downgrader/source/setting.c:392: warning: implicit declaration of function 'CONF_SetVideo'
sys.c
title.c
video.c
wpad.c
pngu.c
stub.S
linking ... cios-downgrader.elf
setting.o: In function `sysconf_write':
setting.c:(.text.sysconf_write+0xc): undefined reference to `CONF_Write'
setting.o: In function `sysconf_setcountry':
setting.c:(.text.sysconf_setcountry+0x34): undefined reference to `CONF_GetCountryCode'
setting.c:(.text.sysconf_setcountry+0x110): undefined reference to `CONF_SetCountryCode'
setting.o: In function `setting_write':
setting.c:(.text.setting_write+0xc): undefined reference to `CONF_WriteTxt'
setting.o: In function `setting_setregion':
setting.c:(.text.setting_setregion+0xc4): undefined reference to `CONF_SetArea'
setting.c:(.text.setting_setregion+0xd8): undefined reference to `CONF_SetRegion'
setting.c:(.text.setting_setregion+0xec): undefined reference to `CONF_SetVideo'
collect2: ld returned 1 exit status
make[1]: *** [/c/wiiprojects/cios-downgrader/cios-downgrader.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:04
 
You don´t have the CONF_* functions.
So you will need to write it yourself or find a similar function that do the same
wink.gif

But if you don´t know what you are doing you shouldn´t mess around with this.
 
nIxx said:
You don´t have the CONF_* functions.
So you will need to write it yourself or find a similar function that do the same
wink.gif

But if you don´t know what you are doing you shouldn´t mess around with this.

If everybody does not what he knows about, there were no homebrew existing.
 
LOL. So you know how to write the config file on the Wii ?
These fucntions are writting the config file on the Wii so if anything goes wrong you will most likely have a problem
wink.gif
.
And this has not really something to do with Homebrew. Hombrew Games/Apps does not need any of these functions.
wink.gif
 
D-Jay said:
nIxx said:
You don´t have the CONF_* functions.
So you will need to write it yourself or find a similar function that do the same
wink.gif

But if you don´t know what you are doing you shouldn´t mess around with this.

If everybody does not what he knows about, there were no homebrew existing.


well, there is a slight difference between being able to compile code and developping homebrew, so...
if you have trouble doing the first one, you should probably first take the time to learn one or two stuff about compiling and linking libraries before attempting to "modify stuff"

anyway, NIxx is right, you are missing some code to write into NAND SYSCONF file
libogc only provides functions to read these settings so I guess there should be additional code from waninkokko included with this source

what includes are done at the start of setting.c ? this should give you some hint s about missing source files
 
I'm not a noob in coding.
But I'm new in Wii-coding.

Anyway, I coded some stuff for the Wii and it works.
So I want to learn step-by-step.

Thanks for the hint for setting.c


-btw-
I don't want to recode this. It's good as it is.
I just removed some firmware-entries.
 
remove the BUILD directory and try agan
wink.gif
i had this problems also because it was already build on another pc and it didnt work so just remove the build directory and it SHOULD work
wink.gif
 
nicksasa said:
remove the BUILD directory and try agan
wink.gif
i had this problems also because it was already build on another pc and it didnt work so just remove the build directory and it SHOULD work
wink.gif


I always remove the build-directory first.
But even when I do that, I get a dump:

CODE> "make"
linking ... cios-downgrader.elf
setting.o: In function `sysconf_write':
setting.c:(.text.sysconf_write+0xc): undefined reference to `CONF_Write'
setting.o: In function `sysconf_setcountry':
setting.c:(.text.sysconf_setcountry+0x34): undefined reference to `CONF_GetCountryCode'
setting.c:(.text.sysconf_setcountry+0x110): undefined reference to `CONF_SetCountryCode'
setting.o: In function `setting_write':
setting.c:(.text.setting_write+0xc): undefined reference to `CONF_WriteTxt'
setting.o: In function `setting_setregion':
setting.c:(.text.setting_setregion+0xc4): undefined reference to `CONF_SetArea'
setting.c:(.text.setting_setregion+0xd8): undefined reference to `CONF_SetRegion'
setting.c:(.text.setting_setregion+0xec): undefined reference to `CONF_SetVideo'
collect2: ld returned 1 exit status
make[1]: *** [/c/wiiprojects/cios-downgrader/cios-downgrader.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:02

Cause I don't have the two missing ogcsys.h and stdio.h
 
are your sure you have all the nessecary libs ? otherwise try to use the old devkitppc,libogc,libfat as the new isnt compatible with llike wad manager 1.3,gamme,... without changes
 
sorry but you are a noob at coding also

stdio.h is by default in your devkitppc/includes path
ogcsys.h is also by default in your libogc/includes path
if you were missing those files, you would get error messages during compilation about those missing files, which is not the case, this is not Wii specific, this is the same for ANY kind of platform


what you are looking for is a file named CONF.c or something similar
if it's not included with the source package then waninkoko obviously forget to include it

without this, there is NO WAY you can compile this program

if the only #include at the beginning of settings.c are stdio.h and ogcsys.h then this is either a bad written code or those CONF_ functions were supposed to be in libogc, which is not the case anymore

if those functions are in a separated C file and you got it in your package, you can also remove the -Werror flag from the makefile to let the compiler get pas those errors
 
Jacobeian said:
stdio.h is by default in your devkitppc/includes path
ogcsys.h is also by default in your libogc/includes path
if you were missing those files, you would get error messages during compilation about those missing files, which is not the case, this is not Wii specific, this is the same for ANY kind of platform

Yes, you're right. I've searched for these files but could not find them first.

@nicksasa
I'm using three different DevKits, no one works.
 
Or wanin made some changes to libogc
wink.gif
for his own needs.
So the only tip i can give you is look into the ARC source (should write the config files too but i´m not sure) or if you really know what you are doing write it yourself everything you need should be in libogc
wink.gif
 
NIxx you really are a arrogant one arent you. Like a little child, "do it yourself do it yourself".
If you cannot add substance to a conversation you should stfu.
 

Site & Scene News

Popular threads in this forum