Skip to content

Commit 8121044

Browse files
committed
SDK link wip
1 parent 52d0ec1 commit 8121044

File tree

239 files changed

+68995
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+68995
-112
lines changed

.vscode/settings.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,21 @@
1818
"*.inc": "c",
1919
".clangd": "yaml",
2020
"cstring": "cpp",
21-
"cmath": "cpp"
21+
"cmath": "cpp",
22+
"dolphin.h": "c",
23+
"types.h": "c",
24+
"__ax.h": "c",
25+
"ctype.h": "c",
26+
"stdio.h": "c",
27+
"stdarg.h": "c",
28+
"string.h": "c",
29+
"stddef.h": "c",
30+
"size_t.h": "c",
31+
"ax.h": "c",
32+
"math.h": "c",
33+
"os.h": "c",
34+
"va_list.h": "c",
35+
"fake_tgmath.h": "c"
2236
},
2337
// Disable C/C++ IntelliSense, use clangd instead
2438
"C_Cpp.intelliSenseEngine": "default",

config/GGVE78/splits.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,25 +1536,25 @@ dolphin/ax/src/AXProf.c:
15361536
.text start:0x802D8E84 end:0x802D8ECC
15371537
.sbss start:0x804B1E78 end:0x804B1E88
15381538

1539-
reverb_hi.c:
1539+
dolphin/axfx/src/reverb_hi.c:
15401540
.text start:0x802D8ECC end:0x802D9D10
15411541
.data start:0x803BF6C0 end:0x803BF6E0
15421542
.sdata2 start:0x804B4990 end:0x804B49D0
15431543

1544-
reverb_std.c:
1544+
dolphin/axfx/src/reverb_std.c:
15451545
.text start:0x802D9D10 end:0x802D9E58
15461546

1547-
chorus.c:
1547+
dolphin/axfx/src/chorus.c:
15481548
.text start:0x802D9E58 end:0x802D9EA8
15491549

1550-
delay.c:
1550+
dolphin/axfx/src/delay.c:
15511551
.text start:0x802D9EA8 end:0x802D9F38
15521552

1553-
axfx.c:
1553+
dolphin/axfx/src/axfx.c:
15541554
.text start:0x802D9F38 end:0x802D9F88
15551555
.sdata start:0x804B0610 end:0x804B0618
15561556

1557-
reverb_hi_4ch.c:
1557+
dolphin/axfx/src/reverb_hi_4ch.c:
15581558
.text start:0x802D9F88 end:0x802DAC68
15591559
.data start:0x803BF6E0 end:0x803BF708
15601560
.sdata2 start:0x804B49D0 end:0x804B4A08
@@ -1753,7 +1753,7 @@ dolphin/gx/src/GXPerf.c:
17531753
.text start:0x802EFA54 end:0x802F0414
17541754
.data start:0x803C05F8 end:0x803C06E8
17551755

1756-
mix.c:
1756+
dolphin/mix/src/mix.c:
17571757
.text start:0x802F0414 end:0x802F2748
17581758
.data start:0x803C06E8 end:0x803C12A8
17591759
.bss start:0x80483878 end:0x80485080
@@ -1811,7 +1811,7 @@ dolphin/os/src/OSError.c:
18111811
.bss start:0x804850F0 end:0x80485140
18121812
.sdata start:0x804B06F8 end:0x804B0700
18131813

1814-
OSExec.c:
1814+
dolphin/os/src/OSExec.c:
18151815
.text start:0x802F54F0 end:0x802F5E50
18161816
.data start:0x803C1C58 end:0x803C1C68
18171817
.sdata start:0x804B0700 end:0x804B0708
@@ -1856,7 +1856,7 @@ dolphin/os/src/OSRtc.c:
18561856
.text start:0x802F8230 end:0x802F8DD0
18571857
.bss start:0x80485140 end:0x80485198
18581858

1859-
OSSemaphore.c:
1859+
dolphin/os/src/OSSemaphore.c:
18601860
.text start:0x802F8DD0 end:0x802F8EF8
18611861

18621862
dolphin/os/src/OSSync.c:
@@ -1873,11 +1873,11 @@ dolphin/os/src/OSTime.c:
18731873
.text start:0x802FAA58 end:0x802FAED4
18741874
.data start:0x803C3018 end:0x803C3078
18751875

1876-
dolphin/os/src/init/__start.c:
1876+
dolphin/os/src/__start.c:
18771877
.init start:0x800051EC end:0x800054EC
18781878
.sbss start:0x804B20D8 end:0x804B20E0
18791879

1880-
dolphin/os/src/init/__ppc_eabi_init.cpp:
1880+
dolphin/os/src/__ppc_eabi_init.cpp:
18811881
.init start:0x800054EC end:0x80005544
18821882
.text start:0x802FAED4 end:0x802FAF68
18831883

configure.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,10 @@
236236
'-pragma "cpp_extensions on"',
237237
"-inline off",
238238
"-gccinc",
239+
"-sym on",
239240
"-i include/bink",
240-
"-i include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include",
241-
"-i include/PowerPC_EABI_Support/MSL/MSL_C++/MSL_Common/Include",
241+
f"-i include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include",
242+
f"-i include/PowerPC_EABI_Support/MSL/MSL_C++/MSL_Common/Include",
242243
"-i include/inline",
243244
"-i include/rwsdk",
244245
"-i src/SB/Core/gc",
@@ -413,6 +414,17 @@ def MatchingFor(*versions):
413414
Object(NonMatching, "dolphin/ax/src/AXProf.c"),
414415
],
415416
),
417+
DolphinLib(
418+
"axfx",
419+
[
420+
Object(NonMatching, "dolphin/axfx/src/axfx.c"),
421+
Object(NonMatching, "dolphin/axfx/src/chorus.c"),
422+
Object(NonMatching, "dolphin/axfx/src/delay.c"),
423+
Object(NonMatching, "dolphin/axfx/src/reverb_hi.c"),
424+
Object(NonMatching, "dolphin/axfx/src/reverb_hi_4ch.c"),
425+
Object(NonMatching, "dolphin/axfx/src/reverb_std.c"),
426+
],
427+
),
416428
DolphinLib(
417429
"base",
418430
[
@@ -493,6 +505,12 @@ def MatchingFor(*versions):
493505
Object(NonMatching, "dolphin/gx/src/GXPerf.c"),
494506
],
495507
),
508+
DolphinLib(
509+
"mix",
510+
[
511+
Object(NonMatching, "dolphin/mix/src/mix.c"),
512+
],
513+
),
496514
DolphinLib(
497515
"mtx",
498516
[
@@ -517,6 +535,7 @@ def MatchingFor(*versions):
517535
Object(NonMatching, "dolphin/os/src/OSCache.c"),
518536
Object(NonMatching, "dolphin/os/src/OSContext.c"),
519537
Object(NonMatching, "dolphin/os/src/OSError.c"),
538+
Object(NonMatching, "dolphin/os/src/OSExec.c"),
520539
Object(NonMatching, "dolphin/os/src/OSFont.c"),
521540
Object(NonMatching, "dolphin/os/src/OSInterrupt.c"),
522541
Object(NonMatching, "dolphin/os/src/OSLink.c"),
@@ -526,11 +545,12 @@ def MatchingFor(*versions):
526545
Object(NonMatching, "dolphin/os/src/OSReset.c"),
527546
Object(NonMatching, "dolphin/os/src/OSResetSW.c"),
528547
Object(NonMatching, "dolphin/os/src/OSRtc.c"),
548+
Object(NonMatching, "dolphin/os/src/OSSemaphore.c"),
529549
Object(NonMatching, "dolphin/os/src/OSSync.c"),
530550
Object(NonMatching, "dolphin/os/src/OSThread.c"),
531551
Object(NonMatching, "dolphin/os/src/OSTime.c"),
532-
Object(NonMatching, "dolphin/os/src/init/__start.c"),
533-
Object(NonMatching, "dolphin/os/src/init/__ppc_eabi_init.cpp"),
552+
Object(NonMatching, "dolphin/os/src/__start.c"),
553+
Object(NonMatching, "dolphin/os/src/__ppc_eabi_init.cpp"),
534554
],
535555
),
536556
DolphinLib(

include/PowerPC_EABI_Support/MSL/MSL_C++/MSL_Common/Include/new.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef _NEW_H
22
#define _NEW_H
33

4-
#include <size_t.h>
5-
#include <exception.h>
4+
#include <PowerPC_EABI_Support\MSL\MSL_C\MSL_Common\Include\size_t.h>
5+
#include "exception.h"
66

77
namespace std
88
{
@@ -37,4 +37,4 @@ void operator delete[](void* ptr) throw();
3737
void operator delete[](void* ptr, const std::nothrow_t&) throw();
3838
void operator delete[](void*, void*) throw();
3939

40-
#endif
40+
#endif

include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef _MSL_CMATH
22
#define _MSL_CMATH
33

4-
#include <math.h>
5-
64
namespace std
75
{
86
// TODO: fix inline function ordering

include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/math.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ double floor(double);
3636
}
3737
#endif
3838

39-
#endif
39+
#endif

include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/size_t.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ typedef unsigned long size_t;
99
typedef __typeof__(sizeof(0)) size_t;
1010
#endif
1111

12-
#endif
12+
#endif

include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/stddef.h

Lines changed: 0 additions & 6 deletions
This file was deleted.

include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/stdio.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
extern "C" {
66
#endif
77

8-
typedef struct _FILE {
9-
unsigned char pad[0x50];
8+
typedef struct _FILE
9+
{
10+
unsigned char pad[0x50];
1011
} FILE;
1112

1213
extern FILE __files[4];
@@ -15,9 +16,9 @@ extern FILE __files[4];
1516
#define stdout &(__files[1])
1617
#define stderr &(__files[2])
1718

18-
int sprintf(char *s, const char *format, ...);
19-
void printf(const char *format, ...);
20-
int fprintf(FILE *stream, const char *format, ...);
19+
int sprintf(char* s, const char* format, ...);
20+
void printf(const char* format, ...);
21+
int fprintf(FILE* stream, const char* format, ...);
2122

2223
#ifdef __cplusplus
2324
}

include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/stdlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _MSL_STDLIB
22
#define _MSL_STDLIB
33

4-
#include <size_t.h>
4+
#include "size_t.h"
55

66
#ifdef __cplusplus
77
extern "C" {

0 commit comments

Comments
 (0)