1. GalladeGuy

    GalladeGuy Cool and Epic
    Member

    Joined:
    Oct 28, 2015
    Messages:
    2,686
    Country:
    United States
    11, if it's even possible at all.
     
  2. Pikachuk

    Pikachuk GBAtemp Advanced Fan
    Member

    Joined:
    Mar 19, 2016
    Messages:
    725
    Country:
    France
    Would it be hard to make an homebrew that automatically launch the inserted DS cartdridge with a no-ssl patch in order to use altwfc or wiimmfi and compatible with 5g pokemon games ?
    that's because nitrohax doesn't support 5g pokemon games and i only want to use altwfc i don't care about cheat codes
    i have some C++ skills, i've actually made a game engine with SDL2 but i don't really know if i've enough skills, i could learn what is required if it's not too hard
     
  3. Pikachuk

    Pikachuk GBAtemp Advanced Fan
    Member

    Joined:
    Mar 19, 2016
    Messages:
    725
    Country:
    France
    I would have need to know a way to load the dsi cartdridge and to boot the executable game from my homebrew
    actually i'm only able to get the type of the cartdridge
    FS_CardType card;
    FSUSER_GetCardType(&card);

    if (card == CARD_CTR)
    {
    cout << "CTR" << endl;
    }
    else {
    cout << "TWL" << endl;
    }

    and i get TWL because it's pokemon white 2

    but i don't find anything that could help me to boot the game and get the process to apply a patch
     
  4. Togetoge

    Togetoge Member
    Newcomer

    Joined:
    Sep 18, 2017
    Messages:
    24
    Country:
    Japan
    I tried using sftdlib to use the font file in romfs but it fails, is there a way to do it well?
     
  5. ElijahZAwesome

    ElijahZAwesome Hey. I exist. Woo
    Member

    Joined:
    Jul 12, 2016
    Messages:
    833
    Country:
    United States
    How do I... use romFS at all in citrulib lol. I want to include some files in the romFS of a CIA for sound and stuff. How can I put the files into the romFS, how can I access them from the romFS, and how can I make it so that if its a .3DSX it will pull the files from the SD (since 3dsx's obviously dont have a romFS) and if its a CIA it pulls from romFS?
     
    wicksand420 likes this.
  6. zoogie

    zoogie playing around in the dsiware
    Developer

    Joined:
    Nov 30, 2014
    Messages:
    7,983
    Country:
    Micronesia, Federated States of
    https://github.com/devkitPro/3ds-examples/tree/master/romfs
     
    wicksand420 and ElijahZAwesome like this.
  7. ElijahZAwesome

    ElijahZAwesome Hey. I exist. Woo
    Member

    Joined:
    Jul 12, 2016
    Messages:
    833
    Country:
    United States
    Last edited: Jan 28, 2018
  8. zoogie

    zoogie playing around in the dsiware
    Developer

    Joined:
    Nov 30, 2014
    Messages:
    7,983
    Country:
    Micronesia, Federated States of
    It works with cia or 3dsx
     
  9. ElijahZAwesome

    ElijahZAwesome Hey. I exist. Woo
    Member

    Joined:
    Jul 12, 2016
    Messages:
    833
    Country:
    United States
    So I added my resources folder to a romfs folder, included it in the makefile, and I think it did include the romfs in the 3dsx because the file size is much bigger, but its not playing the sounds. I also don't get a "cant open file" error from citra though :unsure:
     
  10. MaiconErick

    MaiconErick GBAtemp Regular
    Member

    Joined:
    Jan 4, 2016
    Messages:
    120
    Country:
    Brazil
    Does anyone have the source code of PCHex++?
    I'm really interested on learning to make a cool GUI like that, FBI's seems too complicated :X
    The github for PCHex++ doesn't exist anymore :(
     
  11. Slattz

    Slattz Easygoing Fairy
    Member

    Joined:
    Nov 21, 2015
    Messages:
    1,258
    Country:
    Ireland
    Here it is. Though this uses some outdated libs, it's recommended to use citro3d now.

    If you want an easy way to render a 2D UI, you could use pp2d, which is a wrapper for citro3d.
    I know some people here don't like it for their own reasons but it's probably the best/easiest way to render a 2D UI atm. You could easily replicate PCHex++'s UI using it.
    BernardoGiordano's discord server is linked in that readme & you can find the latest pp2d pinned in the pp2d channel there, along with an example, if you decide you'd like to use it.
     
  12. MaiconErick

    MaiconErick GBAtemp Regular
    Member

    Joined:
    Jan 4, 2016
    Messages:
    120
    Country:
    Brazil
    I'm trying to use the pp2d example, but when I try to 'make', I get a bunch of these errors:

    c:/pp/source/pp2d/pp2d.c:336: undefined reference to `C3D_Init'
    c:/pp/source/pp2d/pp2d.c:338: undefined reference to `C3D_RenderTargetCreate'
    c:/pp/source/pp2d/pp2d.c:339: undefined reference to `C3D_RenderTargetSetClear'

    I don't know if I'm using a wrong Makefile, I'm using the devkitPRO examples' Makefile, and I added /source/pp2d to the sources in Makefile.
    You're helping me a lot, thanks. :lol:
     
  13. Slattz

    Slattz Easygoing Fairy
    Member

    Joined:
    Nov 21, 2015
    Messages:
    1,258
    Country:
    Ireland
    You don't have citro3d, or at least it's headers, installed I think. You can get it from here. Extract the folders in the .bz2 file to the libctru folder in your devkitPro folder.
    For me, that's C:\devkitPro\libctru but it may be different for you depending on where you installed devkitPro.
     
  14. MaiconErick

    MaiconErick GBAtemp Regular
    Member

    Joined:
    Jan 4, 2016
    Messages:
    120
    Country:
    Brazil
    I ran a make install on citro3d last night, and when I tried to paste the folders now, I already had all those files, so I'm guessing I already had citro3d installed.
    Still not working.
    I have the same devkitPro path.

    I didn't install pp2d, just put the folder in 'sources' folder of the project. I was reading on reddit that would be enough.
     
    Last edited: Feb 5, 2018
  15. Slattz

    Slattz Easygoing Fairy
    Member

    Joined:
    Nov 21, 2015
    Messages:
    1,258
    Country:
    Ireland
    is citro3d in the libs section of the makefile then (LIBS := -lcitro3d)? and yea, pp2d is fine in the sources folder
     
    MaiconErick likes this.
  16. MaiconErick

    MaiconErick GBAtemp Regular
    Member

    Joined:
    Jan 4, 2016
    Messages:
    120
    Country:
    Brazil
    It wasn't. It works now, thanks.
    Gonna play with pp2d now :)
     
    Slattz likes this.
  17. MaiconErick

    MaiconErick GBAtemp Regular
    Member

    Joined:
    Jan 4, 2016
    Messages:
    120
    Country:
    Brazil
    Do you know of a way do display animated gifs on a homebrew?
    @Slattz
     
  18. Slattz

    Slattz Easygoing Fairy
    Member

    Joined:
    Nov 21, 2015
    Messages:
    1,258
    Country:
    Ireland
    I don't know of a way to use gifs on homebrew. Someone else might know more though, but I think it may not be possible atm.
     
    MaiconErick likes this.
  19. ElijahZAwesome

    ElijahZAwesome Hey. I exist. Woo
    Member

    Joined:
    Jul 12, 2016
    Messages:
    833
    Country:
    United States
    old post but i still cant figure out romfs for what i need lol. Can I load sounds and stuff from romfs? The example is helping a little but i still can't get it right.
     
  20. nop90

    nop90 GBAtemp Advanced Maniac
    Member

    Joined:
    Jan 11, 2014
    Messages:
    1,556
    Country:
    Italy
    You can load whatever file you want from RomFS, as long as:
    • you crate a RomFS package with the content you want to load (this is automated in the buid proces if you put your files in a data folder - e.g DATA - use the right makefile with the ROMFS variable defined as your data folder, and, for the CIA package, if you use a rsf file with the romfs option enabled
    • you init the romfs service before trying to access it (remember to close it befor exiting the program)
    • you use a path beginning with romfs:/ for your file (fopen, fclose, fread works as usual, but remember you can't list directory content)
    • remember that file and folder names are case sensitive
     
Draft saved Draft deleted
Loading...

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