CSND_playsound(u32 channel, u32 looping, u32 encoding, u32 samplerate, u32 *vaddr0, u32 *vaddr1, u32 totalbytesize, u32 unk0, u32 unk1);
About the "CSND_PlaySound", the *encoding* is the Audio ? and this *vaddr0/vaddr1* what is it ?
Thank you xD
WORD w;
FRESULT res;
FATFS fs;
pf_mount(&fs);
res=pf_open("file");
res=pf_write("z",1,&w);
res = pf_write(0,0,&w);
I get a grey screen with this code but it seems to run if a comment the last line (but of course the data wont be writed).
Why?
Thank you !
FATFS FatFs;
FIL fil;
DIR dir;
FRESULT fr;
UINT br = 5;
u32 br_abs = 0;
u32 cont = 0;
p("Mount");
fr = f_mount(&FatFs, "", 0);
ps((u32)fr);
p("File Open");
fr = f_open(&fil, "DUMP.BIN", FA_CREATE_ALWAYS | FA_WRITE);
ps((u32)fr);
UINT bw;
p("LALALA DUMP");
for(;;){
print_u32(cont, 250, 100, 0xFF,0x0,0xFF);
fr = f_write(&fil, ((unsigned char*)0x0LALALA000000 + cont), 0x00100000, &bw);
}
Have a lot of problem with fatFS, you will need edit the "ffconf.h" to use f_write, after it, a good sample how use f_write:
Code:FATFS FatFs; FIL fil; DIR dir; FRESULT fr; UINT br = 5; u32 br_abs = 0; u32 cont = 0; p("Mount"); fr = f_mount(&FatFs, "", 0); ps((u32)fr); p("File Open"); fr = f_open(&fil, "DUMP.BIN", FA_CREATE_ALWAYS | FA_WRITE); ps((u32)fr); UINT bw; p("LALALA DUMP"); for(;;){ print_u32(cont, 250, 100, 0xFF,0x0,0xFF); fr = f_write(&fil, ((unsigned char*)0x0LALALA000000 + cont), 0x00100000, &bw); }
I tested this code :
FATFS fs;
FIL fil;
FRESULT res;
res=f_mount(&fs,"",0);
p("Mounted");
res =f_open(&fil,"file",FA_CREATE_ALWAYS);
p("Opened");
but it freeze at res =f_open(&fil,"file",FA_CREATE_ALWAYS);
it freeze too, perhaps because i use run the code in arm11 ( compiled with s0.dat etc ) ?
thanks for your help
off topic here, but nice set of dumps you posted on twitter a couple of hours ago looks like really cool shitI use ARM9 code, try it.
wow, i told you what arm9 functions to use to open, read, and write files, the exact arguments for all 3 functions, how to get access to the memory you want to dump, how to make other areas available to yourself, what exactly to do with all of them, i even spent time answering ridiculous question after ridiculous question because you didn't know what to do even after being handed literally everything, and this is what you do with it? try to get yourself some attention by posting (illegal, by the way) stuff that's been posted before here and on twitter? what a damn waste.
CSND_playsound(u32 channel, u32 looping, u32 encoding, u32 samplerate, u32 *vaddr0, u32 *vaddr1, u32 totalbytesize, u32 unk0, u32 unk1);
About the "CSND_PlaySound", the *encoding* is the Audio ? and this *vaddr0/vaddr1* what is it ?
Thank you xD
Someone tried a way to list all files in folder with ctrulib ?
as you should be able to tell from my link, that code was written by yellows8, not me. I have never used any of these commands so he should definitely be the one you ask for help
this should help : https://gist.github.com/smealum/249b0e5598409f78b5eb
it's part of the source of a very old/crappy/buggy ftp server i wrote for ctrulib. no guarantee it'll compile on latest version, but it should show how to use FSUSER_OpenDirectory as that hasn't changed. and as a bonus there's some SOC code in there too.
always freeze on the last bx on fopen, i use with backdoor and without backdoor, never work, so i tried use fatFS and work fine.but why XD ?
I probably missed them. If I find them I'll do the same.
if you tell me the post number, I'll do it too.
users have to dump their own files.