Coder Social home page Coder Social logo

Comments (3)

CasualPokePlayer avatar CasualPokePlayer commented on June 7, 2024 1

Note that if the NAND user settings are invalid in any way (e.g. set to an unsupported language), the direct booting would just fail and it'd kick you to the initial NAND setup screen.

from melonds-ds.

JesseTG avatar JesseTG commented on June 7, 2024

I will need to submit a PR upstream, as I'll need to access DSi_BPTWL::Registers, which is private.

from melonds-ds.

JesseTG avatar JesseTG commented on June 7, 2024

From a conversation on Discord...

JesseTG: @CasualPokePlayer suggested an implementation for direct-booting DSi games, as he does in BizHawk. But is there a way to tell when DSiWare is exiting to the main menu? I'd like to implement this, but I'd also like to close the emulator if direct-booting DSiWare.

CasualPokePlayer: unless you're constantly monitoring memory, no

JesseTG: Well, is there a single section of RAM that unambigously tells me if I'm in the DSi menu? If so, then checking an integer at a certain offset every frame would be okay

CasualPokePlayer: there would be some memory location that says the current id of the loaded software iirc

JesseTG: That might be exactly what I need

...

JesseTG: โ€” https://mgba-emu.github.io/gbatek/#2000300h---nintendo-auto-load-feature-via-numeric-title-id
Looks like I just need to know the Title ID of the DSi menu.

2000310h 8 AutoLoad New Title ID (new title to be started,0=none/launcher)

Oh, so the DSi menu's title ID is just 0?

CasualPokePlayer: no
it's just the autoload feature has 0 to mean go back to launcher
FFDFC0-FFE014 (and maybe some after that? idk) of main ram seems to have the currently loaded software
image

CasualPokePlayer :
image
also at FFFE00-FFFE14
image
image

CasualPokePlayer: actually, i guess too this is less "go back to launcher" and more "stay in the launcher" since at this point in the process you're at the launcher

JesseTG: Are those addresses listed in GBATek? I can't find them when searching

CasualPokePlayer: they arent, they're just something i found observing loading games

JesseTG: Ooh, neat.

CasualPokePlayer: (well, more i just ctrl+f'd for the title id and oop found them)

JesseTG: And what's the title ID for the DSi menu?

CasualPokePlayer: the exact title id depends on the region
HNA? for the lower title id, 00030017 for the upper title id
although the upper title id isnt listed unless you cound its string form in the .app path
LAUNCHER is probably a better indicator anyways

from melonds-ds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.