1. Shalashaska98

    OP Shalashaska98 GBAtemp Advanced Fan
    Member

    Joined:
    Jan 17, 2018
    Messages:
    731
    Country:
    United States
    I wonder if any progress was made regarding both. For now I'm mainly interested in replaying Paper Mario 64 with HD graphics pack on the switch.
     
  2. wsh1994

    wsh1994 Member
    Newcomer

    Joined:
    Feb 12, 2015
    Messages:
    26
    Country:
    Netherlands
    Would be nice but don't expect too much for now. Nintendo knows very well that their software is being datamined and that whatever they release should be as airtight as possible. I'm pretty sure they saw this wish coming from the day they decided to go for emulation and put in palce quite a lot of counter measures
     
    Shalashaska98 likes this.
  3. djcraze

    djcraze GBAtemp Regular
    Member

    Joined:
    Jun 19, 2008
    Messages:
    120
    Country:
    United States
    The GameCube emulator only emulates the GameCube’s CPU and graphics pipeline. The actual games are recompiled to aarch64. It appears that Nintendo used some kind of automated tool to translate the game’s PPC assembly to aarch64 instead of recompiling from source. This means you can’t just drop in a ROM and bypass some kind of checks and balances. The ROM has to have a aarch64 counterpart in order to work. I believe the memory structure of the ROM is still maintained, so the aarch64 bit is really only for the CPU instructions.


    It’s also likely that the emulator was only created to work with Sunshine and may not have full GameCube emulation, and instead it emulates everything that Sunshine uses.


    It would be wiser to spend the time on Dolphin to get games to run smoothly rather than work on getting Hagi to work. But that’s my 2¢.
     
    mathew77 and Shalashaska98 like this.
  4. hippy dave

    hippy dave BBMB
    Member

    Joined:
    Apr 30, 2012
    Messages:
    6,078
    Country:
    United Kingdom
    You're best off spending your energy finding optimum settings and texture pack to get the game running in Retroarch.
     
    lordelan likes this.
  5. Shalashaska98

    OP Shalashaska98 GBAtemp Advanced Fan
    Member

    Joined:
    Jan 17, 2018
    Messages:
    731
    Country:
    United States
    Some developers started working on it here but lost links.
     
  6. m4xw

    m4xw Ancient Deity
    Developer

    Joined:
    May 25, 2018
    Messages:
    2,414
    Country:
    Germany
    .data is still taken from the dol, the AOT recompiled code only has .text and resolved constants.
    Func layouts change since it has some basic heurs like inlining funcs <= 48 opcodes etc.
    Also your first sentence is just weird to say, it "actively" emulates the GPU and DSP, CPU emulation is achieved by remapping registers to their counterpart in the context structure, (this ends up purely in aarch64) in the llvm IR optimization pass and emitting that as code -> another compiler optimization pass
    Yields on back branches, interrupts, etc..
    Honestly probably easier to make that work than optimizing dolphin to run on 1020mhz... both are huge undertakings and months to years of work

    — Posts automatically merged - Please don't double post! —

    Also huge bs, the emu couldnt be farther away from being only created for sunshine.
    Its tons of state-of-the-art stuff and should run almost all of the library.
    I also found leftovers of a interpreter which isnt compiled in etc. (and would absolutely suck anyway :P, use-case are games with self modifying code I guess tho)
    As far I can tell it targets the whole fucking library, also for the use case where source code isnt available and compat should be great.
     
    Last edited by m4xw, Sep 23, 2020
    _Roxas_ki, Rahkeesh, KiiWii and 5 others like this.
  7. Nero075

    Nero075 Newbie
    Newcomer

    Joined:
    Sep 23, 2020
    Messages:
    2
    Country:
    United States
    Probably a stupid question, but if hagi roms are recompiled, why does the rom file for sunshine extracted from 3das work in dolphin?
     
  8. m4xw

    m4xw Ancient Deity
    Developer

    Joined:
    May 25, 2018
    Messages:
    2,414
    Country:
    Germany
    Because its a normal rom, but not a single line of code in the dol is executed.
    Its the matching copy to the recompiled version (which is not part of the gcm) where every single global data access is referenced to.
     
    Nero075 likes this.
  9. Nero075

    Nero075 Newbie
    Newcomer

    Joined:
    Sep 23, 2020
    Messages:
    2
    Country:
    United States
    So the original dol section is there as well as a recompiled version of that? Interesting. Sounds like they're being clever doing compatibility/performance and anti-hacking stuff in one go.

    Btw thanks for the patience answering a noobs questions.
     
  10. djcraze

    djcraze GBAtemp Regular
    Member

    Joined:
    Jun 19, 2008
    Messages:
    120
    Country:
    United States
    My fault, I wasn't clear in what I meant. I meant that this version of Hagi is likely a happy-path implementation to get Sunshine working. My thought is that as more and more games are ported, it will have full compatibility. I'm mostly basing this off of the fact that I found a couple of instances in the executable that throw an error due to lack of support, or log messages saying that something was executed and may not work. But reverse engineering isn't my day job, so I'm talking out of my ass mostly.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - emulators, progress, Mario