1. freestile

    freestile GBAtemp Regular
    Member

    Joined:
    Jan 10, 2011
    Messages:
    158
    Country:
    United States
    I never seen this thread. Cool. I bet theres really informative stuff here. Something I'll have to look at when I get a chance.
     
  2. ernilos

    ernilos GBAtemp Regular
    Member

    Joined:
    Aug 28, 2013
    Messages:
    152
    Country:
    United States
    daxtsu, YourNerdyJoe and CalebW like this.
  3. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!
    Member

    Joined:
    Nov 24, 2014
    Messages:
    3,161
    Country:
    Italy
    What type of files it takes as input?
     
  4. ernilos

    ernilos GBAtemp Regular
    Member

    Joined:
    Aug 28, 2013
    Messages:
    152
    Country:
    United States
    Compiled .s files
     
  5. Steveice10

    Steveice10 GBAtemp Maniac
    Member

    Joined:
    Jul 19, 2009
    Messages:
    1,106
    Country:
    United States
    Is there some special trick to getting AM_DeleteAppTitle to work? I'm running it via a CIA with access to am:u. I get a title ID using AM_GetTitleList and use AM_DeleteAppTitle(mediatype_SDMC, titleId), but it fails. I've verified that the correct title id is being passed to it, so I don't know what went wrong.
     
  6. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!
    Member

    Joined:
    Nov 24, 2014
    Messages:
    3,161
    Country:
    Italy
    Personally, i pass both DeleteTitle and DeleteAppTitle for the uninstall call in Big Red Menu. Try to see its src.
     
  7. Steveice10

    Steveice10 GBAtemp Maniac
    Member

    Joined:
    Jul 19, 2009
    Messages:
    1,106
    Country:
    United States

    Didn't seem to work... here's the source for my list and delete functions:

    Listing:
    u64* app_list(MediaType mediaType, u32* count) {
    if(!app_prepare()) { // app_prepare just calls amInit if it hasn't already been called.
    return NULL;
    }

    u32 titleCount;
    AM_GetTitleCount(app_mediatype_to_byte(mediaType), &titleCount);
    if(count != NULL) {
    *count = titleCount;
    }

    u64* titles = (u64*) malloc(titleCount * sizeof(u64));
    AM_GetTitleList(app_mediatype_to_byte(mediaType), titleCount, titles);
    return titles;
    }

    bool app_delete(MediaType mediaType, u64 titleId) {
    if(!app_prepare()) { // app_prepare just calls amInit if it hasn't already been called.
    return false;
    }

    // Tried this:
    return AM_DeleteAppTitle(app_mediatype_to_byte(mediaType), titleId) == 0;
    // ...and this:
    AM_DeleteAppTitle(app_mediatype_to_byte(mediaType), titleId);
    return AM_DeleteTitle(app_mediatype_to_byte(mediaType), titleId) == 0;
    }
     
  8. aliak11

    OP aliak11 Pokemon Master
    Member

    Joined:
    Dec 5, 2010
    Messages:
    195
    Country:
    United States
    How do I compile on windows? I keep getting errors.
     
  9. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!
    Member

    Joined:
    Nov 24, 2014
    Messages:
    3,161
    Country:
    Italy
    According to palantine CF readme:
    So where i can find this src?
     
  10. Steveice10

    Steveice10 GBAtemp Maniac
    Member

    Joined:
    Jul 19, 2009
    Messages:
    1,106
    Country:
    United States
    AlbertoSONIC and Rinnegatamante like this.
  11. DEElekgolo

    DEElekgolo Advanced Member
    Newcomer

    Joined:
    Apr 7, 2009
    Messages:
    75
    Country:
    United States
    Still cant manage to find an efficient way to render stuff like sprites and such to screen. The GPU code seems very messy right now for anything graphical like that to be done.
    Also is there a way yet to have internal file systems for the 3dsx file or does everything have to be made into a byte array in a header file. Otherwise I'll probably just have a data folder that has to be put next to the 3dsx file on the sd card.
     
  12. YourNerdyJoe

    YourNerdyJoe Member
    Newcomer

    Joined:
    Jul 18, 2014
    Messages:
    41
    Country:
    United States
    Someone over at 4dsdev.org said you could append a zip to the 3dsx file
    Code:
    copy /B program.3dsx + files.zip programwithzip.3dsx
    I haven't tried this so I'm not sure how you would access this in code (maybe there's something like __rom_end__ or use fs?).
    Otherwise you could use gbfs and compile it with your program.
     
    filfat likes this.
  13. daxtsu

    daxtsu GBAtemp Guru
    Member

    Joined:
    Jun 9, 2007
    Messages:
    5,627
    Country:
    Antarctica

    Compiles fine here in both Visual Studio 2013, and msys. If you have Visual Studio, try the SLN I made. Otherwise, post the errors.
     

    Attached Files:

    aliak11 likes this.
  14. DEElekgolo

    DEElekgolo Advanced Member
    Newcomer

    Joined:
    Apr 7, 2009
    Messages:
    75
    Country:
    United States
    Anyone mess with notifications yet?
    I tried to use AddNotification but it would crash every time I tried to make the SVC call.
     
  15. cearp

    cearp 瓜老外
    Developer

    Joined:
    May 26, 2008
    Messages:
    8,266
    Country:
    Tuvalu
    now i can dump my launcher.dat files from my 9.x 3ds without downgrading :D
    thank you (i hope)

    -edit. with some little changes i got the code to compile on osx
    here is a mac version if anyone is interested, it works for me on yosemite. (not tested the output though)


    so i give this all my compiled .s files? the project i have has .c files too.
    so this will not work for me?
     

    Attached Files:

  16. filfat

    filfat Musician, Developer & Entrepreneur
    Member

    Joined:
    Nov 24, 2012
    Messages:
    1,260
    this would be a way better way to distribute appdata ;)
     
  17. AlbertoSONIC

    AlbertoSONIC Pasta Team Member
    Member

    Joined:
    Jun 27, 2014
    Messages:
    927
    Country:
    Italy
    Guys do you know if there's a Power Off related function inside libctru? I mean, a function that when called, turns off the 3ds, just like if i hold down the power button for 3 seconds...
     
  18. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!
    Member

    Joined:
    Nov 24, 2014
    Messages:
    3,161
    Country:
    Italy
    How can i build a 3DS rom using an extracted (and decrypted) exheader? What arguments i have to pass to makerom?
     
  19. daxtsu

    daxtsu GBAtemp Guru
    Member

    Joined:
    Jun 9, 2007
    Messages:
    5,627
    Country:
    Antarctica

    Not in libctru, but I saw on 3DBrew that the 3DS can be shut down if you write a value of 8 to one of the I2C registers on device 3.

    http://3dbrew.org/wiki/I2C_Registers#Device_3

    http://3dbrew.org/wiki/I2C_Services

    I'm really new to 3DS programming, so I wouldn't have a clue how you'd talk to the MCU service though. *Begins digging, out of curiosity.*
     
    AlbertoSONIC likes this.
  20. Steveice10

    Steveice10 GBAtemp Maniac
    Member

    Joined:
    Jul 19, 2009
    Messages:
    1,106
    Country:
    United States

    IIRC makerom has a -exheader option, so try that.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Development, Homebrew,