How do i edit an Dol's EXIT

Discussion in 'Wii - Hacking' started by Quincy, Dec 30, 2008.

  1. Quincy
    OP

    Quincy Your own personal guitarist :3

    Member
    1,436
    66
    Nov 13, 2008
    Netherlands
    Your house, robbing your stuff
    Yea...


    So i want to edit some apps that codedump in channel version because they try to return to the loader(HBC)How do i fix thiz?
    How do i edit the dol to change the exit?
     


  2. m-tek

    m-tek GBAtemp Regular

    Member
    176
    0
    Dec 29, 2008
    Manchester
  3. WiiPower

    WiiPower GBAtemp Guru

    Member
    8,165
    72
    Oct 17, 2008
    Gambia, The
    You can't edit the .dol. (ok, that's wrong, but i don't want to explain)
    Look at code from SoftChip, there you should find a function which does exactly what you want.
     
  4. Quincy
    OP

    Quincy Your own personal guitarist :3

    Member
    1,436
    66
    Nov 13, 2008
    Netherlands
    Your house, robbing your stuff
    I want to edit MPLAYER dvdlib edition but the source are diffs or something:S
    this are the instructions included:
    HOW TO BUILD
    ------------

    3 subversion repositories are required to build this port, the revisions used
    for this binary are:

    libdvdread r1120
    libdvdnav r1120
    mplayer r27458

    - get the repositories via:
    - svn co svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread libdvdread-trunk
    - svn co svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav libdvdnav-trunk
    - svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer-trunk
    - apply the patches
    - edit libdvdread's and libdvdnav's config.mak and adjust SRC_PATH and
    SRC_PATH_BARE
    - build libdvdread with `make`, then `make install`
    - build libdvdnav with `make`, then `make install`
    - build mplayer with `make`, test your build using `make upload`

    Posts merged

    And how do i add that into my dol?
     
  5. Wiisel

    Wiisel GBAtemp Maniac

    Member
    1,310
    97
    Dec 4, 2008
    i was actually thinking about starting with softchip source ive downloaded devkit but to be honest i probably have a better chance listening to a blank mp3 than figuring it out. they really should do a devkit for dummies [​IMG]

    you dont once you alter some points in the code you create a new dol or atleast thats what i think.

    you know like theres a text doc and where it has exit you change a value from 0 to 1 or whatever or maybe im missing out on a lot and have it all wrong
     
  6. Quincy
    OP

    Quincy Your own personal guitarist :3

    Member
    1,436
    66
    Nov 13, 2008
    Netherlands
    Your house, robbing your stuff
    sigh...that'd mean a no go
     
  7. friknfrak

    friknfrak Advanced Member

    Newcomer
    87
    1
    Dec 27, 2008
    United States
    Guys, these DOL/ELF's that are released are almost 99% open source (just gotta find the link to the source). And no, it's not a simple open notepad and edit a 1 to 0. There is a lengthy process to set up a development enviroment on your PC so you can view/modify/compile the source. Additionally, alot of new releases are built using additional "libs" that are not included in the common dev enviroment package so therefore you have to re-build your enviroment when you do find the libs and want to include them.

    Creating/Modifying DOL/ELF's is not for the faint of heart. If you have no interest inlearing C/C++ basics, and don't have 24+ hours just to get your first build tested... Please allow those who do to do their fancy work.

    If you ARE interested in learning and becoming an active conrtibutor, head to wiibrew.org and dedicate some time to reading then make your first app [​IMG]
    Wiibrew DEV Link: http://wiibrew.org/wiki/Development

    It's not easy at first, but everything you need to begin is readily available.
    Have fun [​IMG]

    NOTE: Yes I am still learning as well - please don't ask me "How do I make X do Y?"
     
  8. Quincy
    OP

    Quincy Your own personal guitarist :3

    Member
    1,436
    66
    Nov 13, 2008
    Netherlands
    Your house, robbing your stuff
    ypu didnt say How do i do Z:P


    but i just want to do a simple edit...not more not less
     
  9. friknfrak

    friknfrak Advanced Member

    Newcomer
    87
    1
    Dec 27, 2008
    United States
    Find source, learn Dev, edit, Compile.

    Saying it simply is as simple as it gets, sorry.

    The tech?
    The source will have a primary C or C++ (.c / .cpp) file that acts as the "excutable" (like windows .exe). Thats where the "exit code" will be.

    So again. Find source, learn Dev, edit, Compile.

    Link: http://wiibrew.org/wiki/Development
     
  10. djdynamite123

    djdynamite123 Master Of Hardcore!

    Banned
    3,791
    1
    Sep 21, 2008
    Redcar, England UK
    yeah above post is correct, you need to get the full source, to make sure it compiles normally, and then in main function edit it, instead of return to loader(0) something like that, use (sys_restart) i can't remember now, all in developers tips on wiibrew, check there, also you can use auto chain detection, but iv'e forgot the code for that, i have it somewhere, like i said i tried with mplayerDVD and it pissed me off, so i left it...

    all your wanting to do quincy, is edit the source in main so it restarts instead of returning to loader causing crash dump
     
  11. Wiisel

    Wiisel GBAtemp Maniac

    Member
    1,310
    97
    Dec 4, 2008
    thanks for the links friknfrak we'll see how long this lasts before i chuck the pc out the window [​IMG]
     
  12. SpaceJump

    SpaceJump Where's my new 2D-Metroid?

    Member
    3,667
    213
    Aug 18, 2005
    Gambia, The
    Zebes
    Does anyone have the full source of MPlayer DVDLib (no diffs please)? When someone uploads it, I can look into changing the exit function.
     
  13. djdynamite123

    djdynamite123 Master Of Hardcore!

    Banned
    3,791
    1
    Sep 21, 2008
    Redcar, England UK
    Maybe someone can BUM team twiizers for it??
    They've put a readme there telling what you need to get hold of...it just wouldn't compile for me so i banged it on the head.
     
  14. icefireicefire

    icefireicefire GBATemp Fails.

    Member
    961
    0
    Dec 19, 2008
    United States
    Get the mplayer source, then use the diffs on that.
     
  15. nicksasa

    nicksasa GBAtemp Maniac

    Member
    1,410
    0
    Oct 25, 2008
    Belgium
    search for exit(0) and replace it with SYS_LoadMenu() and if you exit it will load the menu [​IMG]
     
  16. friknfrak

    friknfrak Advanced Member

    Newcomer
    87
    1
    Dec 27, 2008
    United States
    How does "diff"'s work? I'm used to working on packages that just have the source in it [​IMG]
     
  17. djdynamite123

    djdynamite123 Master Of Hardcore!

    Banned
    3,791
    1
    Sep 21, 2008
    Redcar, England UK
    Yeah that's the boyyo, couldn't be assed to check, as i don't keep that info in me head only the return (0) one stays in as its too dam easy haha
    Have fun finding the rest of the source, and for it to compile.....let us know if you manage it*
     
  18. nicksasa

    nicksasa GBAtemp Maniac

    Member
    1,410
    0
    Oct 25, 2008
    Belgium
    you can also add a check to see if the app is started from hbc return to hbc if its not then load menu but i forgot the code its somthing when an entry point is loaded i tought but i think its in softchip so look at that source
     
  19. SpaceJump

    SpaceJump Where's my new 2D-Metroid?

    Member
    3,667
    213
    Aug 18, 2005
    Gambia, The
    Zebes
    The question is how to use the diffs. I tried but I couldn't compile the resulting source.
     
  20. Quincy
    OP

    Quincy Your own personal guitarist :3

    Member
    1,436
    66
    Nov 13, 2008
    Netherlands
    Your house, robbing your stuff
    goddamn...cant anyone help us?

    Posts merged

    HOW?