Homebrew [Custom Launcher] Spider3DSTools released

  • Thread starter Thread starter Lord Prime
  • Start date Start date
  • Views Views 156,561
  • Replies Replies 748
  • Likes Likes 17
Doesn't returning 0 from uvl_entry function makes the 3ds to crash spider?

I don't think so, since this code freezes the 3ds instead of crashing spider:
Code:
#define START_SECTION __attribute__ ((section (".text.start"), naked))
 
// make sure code is PIE
#ifndef __PIE__
#error "Must compile with -fPIE"
#endif
 
int(*IFile_Open)(void *this, const short *path, int flags) = 0x0022FE08;
int(*IFile_Write)(void *this, unsigned int *written, void *src, unsigned int len) = 0x00168764;
int(*GX_SetTextureCopy)(void *input_buffer, void *output_buffer, unsigned int size, int in_x, int in_y, int out_x, int out_y, int flags) = 0x0011DD48;
int(*GSPGPU_FlushDataCache)(void *addr, unsigned int len) = 0x00191504;
int(*svcSleepThread)(unsigned long long nanoseconds) = 0x0023FFE8;
 
int uvl_entry();
 
int START_SECTION
uvl_start()
{
    __asm__ volatile (".word 0xE1A00000");
    uvl_entry();
    __asm__ volatile ("bx lr");
}
 
int
uvl_entry()
{
    return 0;
}
 
Guys could someone tell me how to get the code.bin to crash? I mean, after doing what i want to do, i need it to crash back to the homescreen...
Would dereferencing a null pointer work? Like:

Code:
*(int*)0 = 0;

I haven't done anything with Spider3DSTools yet, so I wouldn't know. (Or would it just write 0 to the beginning of physical memory?)
 
  • Like
Reactions: AlbertoSONIC

Site & Scene News

Popular threads in this forum