Homebrew Homebrew Development

  • Thread starter Thread starter aliak11
  • Start date Start date
  • Views Views 1,475,807
  • Replies Replies 6,048
  • Likes Likes 54
Really very weird, gamesquest1 did you have this problem ?
Here's what happends when i load it:
3d6533cfe812981796911bbadd7e6cb1.jpg


cf089ff463d3b865be246f60da7bfbea.jpg

gamesquest1 and Snailface helped me a lot to boot roms even with SPI Failure... But i don't think it's related to that. Do homebrews use SPI to store something?

P.S. A little OT: Do i need to reinstall Gateway Exploit (via Gateway Blue) if i change system language?
 
In other news I decided to checkout the latest version of Citra. They now support QT5 by default and have a really nice cmake process thanks to yuriks. Neobrain and yuriks were both really helpful with a few issues I ran into during setup. :)

I also followed st4rks instructions to get the re-factored build of ctrulib working with devkitPro. Here's the 3DSTemplate running on Citra:

3915D9W.png


Does anyone know the makerom flags for building elf to CIA?
 
Here's what happends when i load it:

gamesquest1 and Snailface helped me a lot to boot roms even with SPI Failure... But i don't think it's related to that. Do homebrews use SPI to store something?

P.S. A little OT: Do i need to reinstall Gateway Exploit (via Gateway Blue) if i change system language?
i think changing the system language does need you to reinstall the exploit....in regards to running the sample HB....use this RSF file (it goes in "3DSTemplate\resources") better than using the card1-card2 tools....and it works i just tested it)

oh and st4rk for whatever reason the game being card2 to fixes the ability to exit out to the homescreen :S
 

Attachments

  • Like
Reactions: Huntereb
i think changing the system language does need you to reinstall the exploit....in regards to running the sample HB....use this RSF file (it goes in "3DSTemplate\resources") better than using the card1-card2 tools....and it works i just tested it)

oh and st4rk for whatever reason the game being card2 to fixes the ability to exit out to the homescreen :S


Very weird it, my friend with gateway tried and work fine without any change, i think it is ctrulib bug.
 
  • Like
Reactions: Relys

I'm sure I'm doing something wrong. Does anyone know the correct syntax?

Command:
resources\makerom.exe -f cia -rsf resources\gw_workaround.rsf -target d -exefslogo -elf %ProjectName%.elf -icon resources\icon.bin -banner resources\banner.bin -o %ProjectName%.cia

Error:
[CIA ERROR] Content 0 Is Corrupt (res = -10)
[RESULT] Failed to build CIA
 
I'm sure I'm doing something wrong. Does anyone know the correct syntax?

Command:
resources\makerom.exe -f cia -rsf resources\gw_workaround.rsf -target d -exefslogo -elf %ProjectName%.elf -icon resources\icon.bin -banner resources\banner.bin -o %ProjectName%.cia

Error:
[CIA ERROR] Content 0 Is Corrupt (res = -10)
[RESULT] Failed to build CIA


arm-none-eabi-strip 3DNES.elf
makerom -f cia -o 3DNES.cia -elf 3DNES.elf -rsf build_cia.rsf -icon icon.icn -banner banner.bnr -exefslogo -target t
pause
 
  • Like
Reactions: Relys and Huntereb
arm-none-eabi-strip 3DNES.elf
makerom -f cia -o 3DNES.cia -elf 3DNES.elf -rsf build_cia.rsf -icon icon.icn -banner banner.bnr -exefslogo -target t
pause


Is build_cia.rsf different than gw_workaround.rsf?
 
i think changing the system language does need you to reinstall the exploit....in regards to running the sample HB....use this RSF file (it goes in "3DSTemplate\resources") better than using the card1-card2 tools....and it works i just tested it)

oh and st4rk for whatever reason the game being card2 to fixes the ability to exit out to the homescreen :S
Thank you! I'll try within one hour!
 
A bit, but i think it work with gw_workaround.


Commands:
arm-none-eabi-strip 3DSTemplate.elf
resources\makerom.exe -f cia -o %ProjectName%.cia -elf %ProjectName%.elf -rsf resources\gw_workaround.rsf -icon resources\icon.bin -banner resources\banner.bin -exefslogo -target t

Error:
[NCCH WARNING] NCCH AES Key could not be loaded, NCCH will not be encrypted
[CIA WARNING] Common Key could not be loaded, CIA will not be encrypted
[CIA ERROR] Content 0 Is Corrupt (res = -11)
[RESULT] Failed to build CIA
 
Commands:
arm-none-eabi-strip 3DSTemplate.elf
resources\makerom.exe -f cia -o %ProjectName%.cia -elf %ProjectName%.elf -rsf resources\gw_workaround.rsf -icon resources\icon.bin -banner resources\banner.bin -exefslogo -target t

Error:
[NCCH WARNING] NCCH AES Key could not be loaded, NCCH will not be encrypted
[CIA WARNING] Common Key could not be loaded, CIA will not be encrypted
[CIA ERROR] Content 0 Is Corrupt (res = -11)
[RESULT] Failed to build CIA

http://pastebin.com/zrk45n0w
 
  • Like
Reactions: Relys
gamesquest1 Gateway Workaround worked! Now it's time to try to understand how to print some text and how it could react to some kind of button input...

Drawing red square to screen here. I'm looking at the CHIP-8 emulators graphics libs and taking what I need. I'm working on text next.


Code:
void renderEffect()
{
    u8* screenTopLeft = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL);
    u8* screenTopRight = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL);
    //u8* screenBottom = gfxGetFramebuffer(GFX_BOTTOM, NULL, NULL, NULL);
    paintSquare(50,50,0xFF,0x00,0x00,50,50,screenTopLeft);
    paintSquare(50,50,0xFF,0x00,0x00,50,50,screenTopRight);
    //paintSquare(50,50,0xFF,0x00,0x00,50,50,screenBottom);
}
 
void paintPixel(u8 posX, u8 posY, u8 r, u8 g, u8 b, u8* screen)
{
    u32 v=(posY+posX*240)*3;
    screen[v]=b;
    screen[v+1]=g;
    screen[v+2]=r;
}
 
void paintSquare(u8 x, u8 y, u8 r, u8 g, u8 b, u8 w, u8 h, u8* screen){
  u8 x1, y1;
  for (x1 = x; x1 < x+w; x1++){
    for (y1 = y; y1 < y+h; y1++){
        paintPixel(x1,y1,r,g,b,screen); 
    } 
  }
}
 

Site & Scene News

Popular threads in this forum