3ds: Port refactor.

This commit does the following changes to the 3ds port:

- Rename the target from ctru to 3ds.
- Rename all files and functions with the ctru naming convention to 3ds.
- Created a new file and folder structure that will better integrate future console ports that share the same codebase.
- Fixed a buffer overflow bug in pcm code.

Change-Id: I17c6f86df64eb99dd2b653485d70832ff46b2ba8
This commit is contained in:
Mauricio Garrido 2026-08-31 18:02:32 -06:00 • committed by Solomon Peachy
parent 8e965d9159
commit e498c0171a
130 changed files with 1429 additions and 1112 deletions

View file

@ -27,8 +27,8 @@
#include "fs_attr.h"
#include "fs_defines.h"
#if defined(CTRU) && !defined(SIMULATOR)
#include "filesystem-ctru.h"
#if (CONFIG_PLATFORM & PLATFORM_GAME_CONSOLE) && !defined(SIMULATOR)
#include "filesystem-console.h"
#elif defined (APPLICATION) || defined(CHECKWPS)
#include "filesystem-app.h"
#elif defined(SIMULATOR) || defined(DBTOOL)

View file

@ -39,8 +39,8 @@ enum relate_result
RELATE_PREFIX, /* the path2 contains path1 as a prefix */
};
#if defined(CTRU) && !defined(SIMULATOR)
#include "filesystem-ctru.h"
#if (CONFIG_PLATFORM & PLATFORM_GAME_CONSOLE) && !defined(SIMULATOR)
#include "filesystem-console.h"
#elif defined(APPLICATION) || defined(CHECKWPS)
#include "filesystem-app.h"
#elif defined(SIMULATOR) || defined(DBTOOL)

View file

@ -27,7 +27,7 @@
#endif
#ifndef __MINGW32__
#if defined(__APPLE__) || defined(CTRU)
#if defined(__APPLE__) || defined(N3DS)
#include <sys/types.h>
#else
#include <endian.h>