mirror of
https://github.com/ApacheThunder/NTR_Launcher.git
synced 2025-06-19 03:25:38 -04:00

* Stage2 launcher UI added. This is a heavily modified HBMenu with ability to launch carts! This menu can be used to boot a bootloader NDS file for flascharts that the direct cart launcher fails to boot. * New audio files added for new menu. * HBMenu UI loaded by default if booted with no cart inserted. * INI file folder now located in NTR_Launcher folder instead. A default ini file from NitroFS (if mount of nitrofs succeeds) will be copied to SD if one is not present. * Stage2 launchers are expected to be in NTR Launcehr folder though you can navigate to any folder you want in the UI so stage2 launchers aren't the only thing this can be used for. You can also use this as a means of booting homebrew off SD in NTR mode.
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
//# Stuff you may not have yet.
|
|
|
|
#ifndef TONCCPY_H
|
|
#define TONCCPY_H
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <nds/ndstypes.h>
|
|
|
|
typedef unsigned int uint;
|
|
#define BIT_MASK(len) ( (1<<(len))-1 )
|
|
static inline u32 quad8(u16 x) { x |= x<<8; return x | x<<16; }
|
|
|
|
|
|
//# Declarations and inlines.
|
|
|
|
void tonccpy(void *dst, const void *src, uint size);
|
|
|
|
void __toncset(void *dst, u32 fill, uint size);
|
|
static inline void toncset(void *dst, u8 src, uint size);
|
|
static inline void toncset16(void *dst, u16 src, uint size);
|
|
static inline void toncset32(void *dst, u32 src, uint size);
|
|
|
|
|
|
//! VRAM-safe memset, byte version. Size in bytes.
|
|
static inline void toncset(void *dst, u8 src, uint size)
|
|
{ __toncset(dst, quad8(src), size); }
|
|
|
|
//! VRAM-safe memset, halfword version. Size in hwords.
|
|
static inline void toncset16(void *dst, u16 src, uint size)
|
|
{ __toncset(dst, src|src<<16, size*2); }
|
|
|
|
//! VRAM-safe memset, word version. Size in words.
|
|
static inline void toncset32(void *dst, u32 src, uint size)
|
|
{ __toncset(dst, src, size*4); }
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|