postLoader4

Discussion in 'Wii - Emulation and Homebrew' started by stfour, Jun 30, 2011.

  1. stfour
    OP

    stfour GBAtemp Advanced Maniac

    Member
    3
    May 24, 2011
    Italy
    Last holidays week :P
     
  2. Taleweaver

    Taleweaver Storywriter

    Member
    14
    Dec 23, 2009
    Belgium
    Belgium
    ...and you better enjoy it. I don't WANT to see an update before then. :P
     
    1 person likes this.
  3. Toad King

    Toad King GBAtemp Fan

    Member
    5
    Aug 19, 2009
    United States
    Does anyone have a guide on return-to-postLoader from emulators work? I figured out the ROM path is split between argv[1] and argv[2], but argv[3] points to a forwarder .dol that doesn't exists on my system. Is that only supposed to be tried after trying to launch the channel ID it sends? And what about argv[6], which is just "postLoader"?

    Also, do other forwarders follow this format?
     
  4. JoostinOnline

    JoostinOnline Certified Crash Test Dummy

    Member
    14
    Apr 2, 2011
    United States
    The Twilight Zone
    "postLoader" is what tells it that you've launched it through a special section of postLoader. There is the same thing in SE GUI. Check out "postloader.c" and "main.c" in the source code.
     
  5. Toad King

    Toad King GBAtemp Fan

    Member
    5
    Aug 19, 2009
    United States
    I looked at your code, and it looks like it loads a booter stub that launched a .dol file loaded into memory. But nowhere in your code does it show where it's loaded.

    All I really need is to figure out the .dol file I should load on exit, since that forwarder .dol it lists in the arguments (sd://ploader/plugins/forwarder.dol) doens't exists for me, so it might not exist for other users.

    EDIT: Actually, even the version of SNES9x GX included in that emulator pack doesn't return to postLoader correctly. It just spits me out to the Wii System Menu. What would cause that?
     
  6. stfour
    OP

    stfour GBAtemp Advanced Maniac

    Member
    3
    May 24, 2011
    Italy
    The forwarder.dol is no more used by emulators mod by fix. But the official postloader channel is required (v4 or v5) to have return to postloader working
     
  7. lakaiskateboarding

    lakaiskateboarding GBAtemp Regular

    Member
    2
    Oct 1, 2007
    I have a problem. I can't use my USB drive to load apps when using sneek2o. Is this normal? I am using the latest version of PostLoader. I really want it to work with sneek2o, so I can use Devolution to load games from my USB drive instead of an SD card.
     
  8. Toad King

    Toad King GBAtemp Fan

    Member
    5
    Aug 19, 2009
    United States
    If the forwarder.dol isn't used anymore, would it be possible to replace that with the location of the postLoader .dol so I can load that? I just don't want users to be forced into installing the channel to get return to loader working.
     
  9. stfour
    OP

    stfour GBAtemp Advanced Maniac

    Member
    3
    May 24, 2011
    Italy
    I think that fix has removed the support for calling a dol on exit. So you have to ask him to add it back. The forwarder.dol is just the dol in the channel.

    I never tested sneek2o, only (u)neek2o. When I will be back I will give a try ;)
     
  10. Toad King

    Toad King GBAtemp Fan

    Member
    5
    Aug 19, 2009
    United States
    Sorry, but who is "him"? I thought you were the author of postLoader.

    All I need is for some way to return to postLoader from a loaded emulator without requiring a channel to be installed.
     
  11. daxtsu

    daxtsu GBAtemp Guru

    Member
    14
    Jun 9, 2007
    Antarctica
    He is. He's just on vacation right now, so he has no access to any programming tools. I have commit access to the postLoader SVN as well as stfour, so if you have something in mind, I could upload it. I don't know what changes you need made though, so feel free to let me know.
     
  12. JoostinOnline

    JoostinOnline Certified Crash Test Dummy

    Member
    14
    Apr 2, 2011
    United States
    The Twilight Zone
    him = fix = FIX94
     
  13. Toad King

    Toad King GBAtemp Fan

    Member
    5
    Aug 19, 2009
    United States
    My idea is if the path to the forwarder.dol isn't used anymore, how about replacing it with the path to the postLoader .dol? It shouldn't be too difficult to get this when launched from HBC. And if it's launched from the channel it can just send an empty string, which the return to loader code won't reach since it'll try to load the channel ID first.

    EDIT: On a side note:
    Do you happen to have the source to stub.bin? After a quick search I could not find it.
     
  14. stfour
    OP

    stfour GBAtemp Advanced Maniac

    Member
    3
    May 24, 2011
    Italy
    see wiiflow google code repo...
     
  15. stfour
    OP

    stfour GBAtemp Advanced Maniac

    Member
    3
    May 24, 2011
    Italy
    T.K., If you are adding any support to return back from loader, note that both postloader and wiiflow update the stub with the correct one. So just an exit(0) will do the trick. I think then it will be a user choice to install the channel (required).

    If you prefer execute the forwarder.dol this is the source (it support only fat, ntfs soon)

    http://code.google.c...warder%2Fsource

    For joostin s.e.gui I've experimented another method, postloader copy itself to end of mem2 before executing s.e. This is the faster method, but uses 3Mb of mem2.

    If you have any request or need help, I'm here ;)
     
  16. JoostinOnline

    JoostinOnline Certified Crash Test Dummy

    Member
    14
    Apr 2, 2011
    United States
    The Twilight Zone
    You want to send me that code please? Even if we don't use it, I'd like to take a look. I've been adding more and more stuff (mostly small) to v1.8, and trying to make the transition smoother between postLoader and SE GUI. That way it will almost appear as if it's built in.
     
  17. AbdallahTerro

    AbdallahTerro da KiNG

    Member
    11
    Jan 14, 2012
    Ideas factory :)
    Vote people :)
    http://gbatemp.net/topic/333364-backup-loaders/
     
  18. Toad King

    Toad King GBAtemp Fan

    Member
    5
    Aug 19, 2009
    United States
    The only issue I have with the current setup is the requirement for the channel. I want to try to make the program launcher agnostic, so I would rather want to avoid scanning for postLoader/wiiflow/etc. program locations if launching the channel fails, since while they will probably be at (sd|usb):/apps/postLoader/boot.dol most of the time, it's possible to move them somewhere else.

    The method used for S.E. GUI will not work for my case, since in the emulator we very often find ourselves using most if not all of MEM2.
     
  19. masterjakeway

    masterjakeway GBAtemp Regular

    Member
    1
    May 3, 2012
    United States
    Stfour, I'm having a problem getting to postloader from neek using the forwarder channel.
    I recently had to make a new nand and haven't been able to get it working yet. I deleted all the cfg files from /ploader/. Then start neek. Select ploader forwarder channel. The screen comes up about the config file, i hit make. Then, when i hit ,ok, i get a 3 second code dump and booted back to neek. From then on, selecting the postloader channel from neek gets a black screen.

    Postloader 4.0.8
    Postloader channel v4
    Uneek+di r92
     
  20. AbdallahTerro

    AbdallahTerro da KiNG

    Member
    11
    Jan 14, 2012
    Ideas factory :)
    afaik stfour didn't work neek2o 90+ support yet.
    He said he'll look into this when he's back from vacation :)
     
Quick Reply
Draft saved Draft deleted