Background application that triggers home menu

Discussion in '3DS - Homebrew Development and Emulators' started by Magicrafter13, Apr 13, 2018.

  1. Magicrafter13
    OP

    Magicrafter13 GBAtemp Regular

    Member
    1
    Feb 19, 2017
    United States
    My goal is to make an application that runs in the background (like Luma 3Ds's Rosalina Menu which can be pulled up at almost anytime.) that when a key combo is activated it will tell the system the home button has been pushed.

    I've been digging around for hours on ctrulib's documentation and 3dbrew.org and the best I've got is this:
    Some page on 3dbrew about NS and APT Services, it seems that the homebutton sends some kind of apt command, and I found a number next to it on the page (https://3dbrew.org/wiki/NS_and_APT_Services#Command) and I found something in the ctrulib docs about aptSendCommand (or something along those lines, don't remember the exact thing) I tried that, along with the code. I tried 6, then tried the COMMAND_HOME_BUTTON_SINGLE, neither worked. I don't remember the error with COMMAND_HOME_BUTTON_SINGLE but with 6 it said something about not being able to convert from unsigned long * number to integer.

    I need to know 2 things:
    1: How can I trigger the home menu (what do I need in the code)?
    2: How can I make it run constantly in the background like the Rosalina Menu does?
     
  2. Quantumcat

    Quantumcat Dead and alive

    Moderator
    18
    GBAtemp Patron
    Quantumcat is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 23, 2014
    Australia
    Canberra, Australia
    Fork Rosalina so you don't have to worry about number 2.
     
  3. Magicrafter13
    OP

    Magicrafter13 GBAtemp Regular

    Member
    1
    Feb 19, 2017
    United States
    I was just going to look at their code and essentially copy the parts I need, but the code is to advanced/complicated for me to understand.
     
  4. Quantumcat

    Quantumcat Dead and alive

    Moderator
    18
    GBAtemp Patron
    Quantumcat is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 23, 2014
    Australia
    Canberra, Australia
    Creating it from scratch will be a million times harder than adapting their code, so I don't think the project will work out for you. You could however make a suggestion on the thread that there be a home menu option within Rosalina (not as good as being able to press something and go to the home menu but at least it is a solution for those with broken Home buttons).
     
  5. TyDye

    TyDye Nintendo Fan

    Member
    3
    Apr 22, 2016
    United States
    Earth
    i LOVE this feature idea. my 3DS freezes from time to time and i would love to be able to go back to home menu with out reboot
     
  6. Magicrafter13
    OP

    Magicrafter13 GBAtemp Regular

    Member
    1
    Feb 19, 2017
    United States
    I submitted a feature request for this, but it would still be nice if someone could help me with those apt commands, and how to use them. The ctrulib documentation is not very friendly for low to mid experienced coders, it just assumes you know what a lot of it means.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice