Homebrew Development

Discussion in '3DS - Homebrew Development and Emulators' started by aliak11, Jan 16, 2014.

  1. DarkKnightPT

    DarkKnightPT GBAtemp Regular

    Member
    2
    May 18, 2014
    Probably, but i awnsered him anyway for newcomers ;)
     
  2. Z3DS

    Z3DS Member

    Newcomer
    1
    Mar 8, 2018
    Norway
    Im done with the 3ds homebrew i finished that the day after the post xD
     
  3. MyLegGuy

    MyLegGuy Moron

    Member
    5
    Nov 26, 2014
    United States
    How can I get libvorbisfile that goes with libvorbisidec? Installing the regular 3ds-libvorbis installs libvorbisfile too, but not with 3ds-libvorbisidec. If I use the libvorbisfile I got from libvorbis with libvorbisidec, I get an undefined reference to vorbis_synthesis_halfrate_p in vorbisfile.
     
  4. cracker

    cracker Nyah!

    Member
    7
    Aug 24, 2005
    United States
  5. MyLegGuy

    MyLegGuy Moron

    Member
    5
    Nov 26, 2014
    United States
    Yeah, that's what I've been using.

    I used pacman to install the 3ds-libvorbisidec package, but it only came with libvorbisidec.
    The regular 3ds-libvorbis package comes with libvorbis and libvorbisfile.
    Using the libvorbisfile library from the regular 3ds-libvorbis package doesn't link with libvorbisidec.
    So what I need is a version of libvorbisfile that works with the 3ds-libvorbisidec package because 3ds-libvorbisidec doesn't come with libvorbisfile.


    Edit:
    If anybody is reading this post, I still haven't moved on. If you can help, please post.
     
    Last edited by MyLegGuy, Jul 30, 2018
  6. Brawl345

    Brawl345 GBAtemp Fan

    Member
    6
    Jan 14, 2012
    Germany
  7. Togetoge

    Togetoge Member

    Newcomer
    1
    Sep 18, 2017
    Japan
    Is there a way to access folders containing multibyte characters in the SD card?
     
  8. ghjfdtg

    ghjfdtg GBAtemp Regular

    Member
    3
    Jul 13, 2014
    fopen() and friends takes UTF-8 strings by default. Should open folders and files with special characters in the name fine.
     
  9. Togetoge

    Togetoge Member

    Newcomer
    1
    Sep 18, 2017
    Japan
    I placed the "あ.txt" in the root of the SD card and ran the following program, but it failed.
    What was wrong?

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <3ds.h>
    
    int main(int argc, char* argv[]) {
    	
    	gfxInitDefault();
    	consoleInit(GFX_TOP, NULL);
    
    	FILE *fp;
    	fp = fopen("sdmc:/あ.txt", "r");
    
    	if( fp == NULL ) {
    		perror("error\n");
    		return 1;
    	}
    	fclose(fp);
    
    	
    	while (aptMainLoop()){
    		
    		gspWaitForVBlank();
    		gfxSwapBuffers();
    		hidScanInput();
    
    		u32 kDown = hidKeysDown();
    		if (kDown & KEY_START) break;
    		
    	}
    
    	gfxExit();
    	return 0;
    }
    
     
  10. ghjfdtg

    ghjfdtg GBAtemp Regular

    Member
    3
    Jul 13, 2014
  11. Togetoge

    Togetoge Member

    Newcomer
    1
    Sep 18, 2017
    Japan
  12. Togetoge

    Togetoge Member

    Newcomer
    1
    Sep 18, 2017
    Japan
    I wanted to use libiconv, I put -liconv in LIBS but it got an error.
    Do I need a procedure?
     
  13. Spaqin

    Spaqin GBAtemp Regular

    Member
    2
    Feb 17, 2015
    Poland
    Yo, is there any way to change the OS clock?
    3dbrew mentions RTC, but it may seem that it refers to the "real"/"raw" RTC, not the software one.

    I sometimes swap batteries and CBA to update the time on every occassion. Wanna do something dumb as NTP client.
     
  14. ry755

    ry755 Fox

    Member
    4
    Nov 29, 2017
    United States
    California
    Is there an example for multithreading on separate cores? I'm working on a homebrew app exclusively for the New 3DS, and I'd like to make use of the extra cores.
     
  15. ghjfdtg

    ghjfdtg GBAtemp Regular

    Member
    3
    Jul 13, 2014
  16. Aridez

    Aridez Newbie

    Newcomer
    1
    Oct 16, 2018
    Spain
    Hello! I made a separate thread but since it's not getting any answers I thought that I might try my luck in here since this seems more targeted to developers.

    I'm trying to make a homebrew application but every time it goes into sleep mode it stops working. That's because I'm making network requests using ssl.c. The function "aptSetSleepAllowed(bool allowed)" doesn't work regarding networking. It seems like at least the wifi and the screens are turned off when entering in sleep mode no matter what.

    I don't care that much about the screens but I want this applications making requests in the background. Is there any way to keep making requests even when the system goes to sleep?

    I found an open issue but it's been there for 2 years already and is not answered:

    github . com/smealum/ctrulib/issues/286

    I made a repo with my code at:

    github . com/Aridez/sslc_example_3ds

    There I try to simplify the code I'm using, it presents the same problem, when put to sleep it first says "failed to created the socket" and then "socinit failed" the rest of iterations so it seems like the wifi module stops. This is the main loop (there's a space in the url because I can't post links yet):

    Code:
    #include "request.h"
    
    int main()
    {
        gfxInitDefault();
        consoleInit(GFX_TOP, NULL);
    
        printf("Press B to exit\n");
        while (aptMainLoop())
        {
            gspWaitForVBlank();
            hidScanInput();
    
            u32 kDown = hidKeysDown();
            if (kDown & KEY_B)
                break; // break in order to return to hbmenu
            if (kDown & KEY_START) {
                aptInit();
                aptSetSleepAllowed(false);
                aptExit();
            }
    
    
            printf("Request Start\n");
            Request* request = new_Request("GET", "yls8.mtheall. com", "/testpage", "limit=1");
            char* out = malloc(sizeof(char)*2048);
            if (network_request(request, out)) {
                printf("%s\n", out);
                printf("Request Done\n");
            } else {
                printf("Request failed\n");
            }
            printf("Allowed to sleep: %d\n", aptIsSleepAllowed());
            destroy_Request(request);
            free(out);
            svcSleepThread(2000000000);
    
            // Flush and swap framebuffers
            gfxFlushBuffers();
            gfxSwapBuffers();
        }
    
        gfxExit();
        return 0;
    }
    Any help would be appreciated! I'm at a loss in here
     
  17. TSP184

    TSP184 Newbie

    Newcomer
    1
    Oct 26, 2018
    United Arab Emirates
    did Homebrew fixed hans so that we can play SSB4 correctly ?
     
  18. trainboy2019

    trainboy2019 GBAtemp Maniac

    Member
    5
    GBAtemp Patron
    trainboy2019 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Oct 6, 2015
    United States
    GA
    Is hans still around?
     
Loading...