You really need to try something easier. Porting full (PC?) games to hacked consoles is actually pretty advanced programming.I'm a bit confused here. Don't you need a makefile to compile homebrew?
NVm, I guess.....To compile an homebrew you first need to write it. Makefile is the last thing


This shouldn't exist in your project:
c:/devkitPro/ctrulib-master/libctru/
c:/devkitPro/libctru/
is correct.
I'm pretty fast with replying usually. ;pgot it when I read it again seconds after posting. I though I removed the post before anyone seen it. Guess I didn't
bah, now makerom.exe is crashing, that's not helpful.

I'm pretty fast with replying usually. ;p
For that makerom issue, I know some recent-ish builds have been crashy.
Did you try the latest one from here? https://github.com/profi200/Project_CTR/releases
built ... BreadBox.3dsx
/c/devkitPro/examples/3ds/_mine/BreadBoxSource/makerom -f cia -o /c/devkitPro/examples/3ds/_mine/BreadBoxSource/BreadBox.cia -rsf /c/devkitPro/examples/3ds/_mine/BreadBoxSource/resources/build_cia.rsf -target t -exefslogo -elf BreadBox_stripped.elf -icon /c/devkitPro/examples/3ds/_mine/BreadBoxSource/resources/icon.icn -banner /c/devkitPro/examples/3ds/_mine/BreadBoxSource/resources/banner.bin
[RSF ERROR] Unrecognised Key: 'ExeFs'
[RSF ERROR] Error Proccessing RSF file
built ... BreadBox.cia
Yeah forgot to tell you about that, they changed the rsf format a little.Just got the recent one, only half works though,
Code:built ... BreadBox.3dsx /c/devkitPro/examples/3ds/_mine/BreadBoxSource/makerom -f cia -o /c/devkitPro/examples/3ds/_mine/BreadBoxSource/BreadBox.cia -rsf /c/devkitPro/examples/3ds/_mine/BreadBoxSource/resources/build_cia.rsf -target t -exefslogo -elf BreadBox_stripped.elf -icon /c/devkitPro/examples/3ds/_mine/BreadBoxSource/resources/icon.icn -banner /c/devkitPro/examples/3ds/_mine/BreadBoxSource/resources/banner.bin [RSF ERROR] Unrecognised Key: 'ExeFs' [RSF ERROR] Error Proccessing RSF file built ... BreadBox.cia
but no BreadBox.cia appears.

I just deleted a couple of lines from my rfs file, wasn't using those options anyway.Yeah forgot to tell you about that, they changed the rsf format a little.
Here's a sample that should work
https://gist.github.com/jakcron/9f9f02ffd94d98a72632
or this
https://gist.github.com/jakcron/c3801fc54d0e4347e385
I think it's just removing the exefs: section mostly.
https://gbatemp.net/threads/dumping-super-mario-3d-land-beta.389806/page-3#post-5534055I just deleted a couple of lines from my rfs file, wasn't using those options anyway.
[edit]
On a slightly related note, is it possible to rip a banner from a homebrew .cia to use in a different one?

Excellent, that did the trick! Now to consider actually finishing BreadBox.https://gbatemp.net/threads/dumping-super-mario-3d-land-beta.389806/page-3#post-5534055
Drop the cia on that to get the ncch/cxi.
then run this command to extract the the banner.bin to the "exefs" dir.
ctrtool --exefsdir=exefs gamename.cxi

For one shot non-looping sounds they are about the same. For streaming sound I prefer dsp. Dsp allows you to submit sound in small chunks that will play seamlessly and you can tell when they have finished so the stream does not get out of sync. With csnd you need to use system ticks to track the sound playing position and it tends to get out of sync. There are downsides to dsp though. It requires a dsp binary which is accessible when launched as a 3dsx file but not as a cia file. To work with a cia file you first need to dump the dsp binary to a file.So is DSP better than CSND? If so/not, why?

For one shot non-looping sounds they are about the same. For streaming sound I prefer dsp. Dsp allows you to submit sound in small chunks that will play seamlessly and you can tell when they have finished so the stream does not get out of sync. With csnd you need to use system ticks to track the sound playing position and it tends to get out of sync. There are downsides to dsp though. It requires a dsp binary which is accessible when launched as a 3dsx file but not as a cia file. To work with a cia file you first need to dump the dsp binary to a file.
int divide = 50;
thisTime = svcGetSystemTick();
if (oldTime < thisTime){
oldTime = thisTime + (TPS/CALC_FREQ) ;// 50ish times per second
calc_buffer(sound_calc_buf + offset, sample_length/(divide/2)); // 2 50ths of a second of sound
if(showMenu == 1 || filesGot == 1){
memset(sound_calc_buf, 0, sample_length);
}
offset += (sample_length/divide); // increment by 50th of sample length
if(offset >= sample_length/2) offset -= (sample_length/2);
}
The 3ds audio streaming example is a good place to start. https://github.com/devkitPro/3ds-examples/tree/master/audio/streamingIs there a nice streaming example someplace? I'm currently using csnd in around 1 second chuncks. like so --
Code:int divide = 50; thisTime = svcGetSystemTick(); if (oldTime < thisTime){ oldTime = thisTime + (TPS/CALC_FREQ) ;// 50ish times per second calc_buffer(sound_calc_buf + offset, sample_length/(divide/2)); // 2 50ths of a second of sound if(showMenu == 1 || filesGot == 1){ memset(sound_calc_buf, 0, sample_length); } offset += (sample_length/divide); // increment by 50th of sample length if(offset >= sample_length/2) offset -= (sample_length/2); }
which does get out of sync quite easily.
is dsp hard to setup?
Anyone know why my CIAs won't work when I set SystemMode to anything higher than 64MB (like 80MB or any higher mode)? I know @aliaspider used 80MB with some RetroArch emus, and my rsf is really no different. Upon launch it just goes black and reboots. Could this be a CFW issue? I'm using CakesFW. I'm trying the RetroArch builds that use it just to see, so I'll edit with that detail.
Yeah, figured that must be it. I just tried Neo Geo emu that uses it and experienced the same thing. So I'll just switch to Luma, thanks.It's a CFW issue usually. Assuming we're talking about an o3ds here, are you able to run Smash and/or MH4U from Cakes? If not, you might want to use AuReiNand/Luma since it has reboot patches which support both the 80MB mode on O3DS and the 178MB mode on N3DS.
You're just switching now?Yeah, figured that must be it. I just tried Neo Geo emu that uses it and experienced the same thing. So I'll just switch to Luma, thanks.