How do i edit an Dol's EXIT

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

Dec 30, 2008

How do i edit an Dol's EXIT by Quincy at 6:48 PM (1,734 Views / 0 Likes) 21 replies

  1. Quincy
    OP

    Member Quincy Your own personal guitarist :3

    Joined:
    Nov 13, 2008
    Messages:
    1,435
    Location:
    Your house, robbing your stuff
    Country:
    Netherlands
    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

    Member m-tek GBAtemp Regular

    Joined:
    Dec 29, 2008
    Messages:
    176
    Location:
    Manchester
    Country:
    United Kingdom
  3. WiiPower

    Member WiiPower GBAtemp Guru

    Joined:
    Oct 17, 2008
    Messages:
    8,165
    Country:
    Germany
    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

    Member Quincy Your own personal guitarist :3

    Joined:
    Nov 13, 2008
    Messages:
    1,435
    Location:
    Your house, robbing your stuff
    Country:
    Netherlands
    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

    Member Wiisel GBAtemp Maniac

    Joined:
    Dec 4, 2008
    Messages:
    1,182
    Country:
    United Kingdom
    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

    Member Quincy Your own personal guitarist :3

    Joined:
    Nov 13, 2008
    Messages:
    1,435
    Location:
    Your house, robbing your stuff
    Country:
    Netherlands
    sigh...that'd mean a no go
     
  7. friknfrak

    Newcomer friknfrak Advanced Member

    Joined:
    Dec 27, 2008
    Messages:
    87
    Country:
    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

    Member Quincy Your own personal guitarist :3

    Joined:
    Nov 13, 2008
    Messages:
    1,435
    Location:
    Your house, robbing your stuff
    Country:
    Netherlands
    ypu didnt say How do i do Z:P


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

    Newcomer friknfrak Advanced Member

    Joined:
    Dec 27, 2008
    Messages:
    87
    Country:
    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

    Banned djdynamite123 Master Of Hardcore!

    Joined:
    Sep 21, 2008
    Messages:
    3,791
    Location:
    Redcar, England UK
    Country:
    United Kingdom
    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

    Member Wiisel GBAtemp Maniac

    Joined:
    Dec 4, 2008
    Messages:
    1,182
    Country:
    United Kingdom
    thanks for the links friknfrak we'll see how long this lasts before i chuck the pc out the window [​IMG]
     
  12. SpaceJump

    Member SpaceJump Where's my new 2D-Metroid?

    Joined:
    Aug 18, 2005
    Messages:
    3,648
    Location:
    Zebes
    Country:
    Germany
    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

    Banned djdynamite123 Master Of Hardcore!

    Joined:
    Sep 21, 2008
    Messages:
    3,791
    Location:
    Redcar, England UK
    Country:
    United Kingdom
    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

    Member icefireicefire GBATemp Fails.

    Joined:
    Dec 19, 2008
    Messages:
    961
    Country:
    United States
    Get the mplayer source, then use the diffs on that.
     
  15. nicksasa

    Member nicksasa GBAtemp Maniac

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

    Newcomer friknfrak Advanced Member

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

    Banned djdynamite123 Master Of Hardcore!

    Joined:
    Sep 21, 2008
    Messages:
    3,791
    Location:
    Redcar, England UK
    Country:
    United Kingdom
    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

    Member nicksasa GBAtemp Maniac

    Joined:
    Oct 25, 2008
    Messages:
    1,410
    Country:
    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

    Member SpaceJump Where's my new 2D-Metroid?

    Joined:
    Aug 18, 2005
    Messages:
    3,648
    Location:
    Zebes
    Country:
    Germany
    The question is how to use the diffs. I tried but I couldn't compile the resulting source.
     
  20. Quincy
    OP

    Member Quincy Your own personal guitarist :3

    Joined:
    Nov 13, 2008
    Messages:
    1,435
    Location:
    Your house, robbing your stuff
    Country:
    Netherlands
    goddamn...cant anyone help us?

    Posts merged

    HOW?
     

Share This Page