Skip to content

Commit 4f12886

Browse files
committed
toolchain upgrade
1 parent a34738e commit 4f12886

File tree

4 files changed

+28
-37
lines changed

4 files changed

+28
-37
lines changed

.clangd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CompileFlags:
22
Compiler: /usr/bin/g++
3-
CompilationDatabase: ./target/megaton/none/make
3+
CompilationDatabase: ./target/megaton/none/
44
Remove: [ -march=*, -mtune=*, -mtp=* ]
55
Diagnostics:
66
Suppress:

Megaton.toml

Lines changed: 25 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ name = "botwsavs"
33
title-id = 0x01007ef00011e000
44

55
# make configuration
6-
[make]
6+
[build]
77
entry = "exl_module_init"
8-
98
sources = [
109
"src",
1110
"libs/exlaunch/source"
@@ -19,50 +18,41 @@ includes = [
1918
"libs/sead/include",
2019
"libs/nnheaders/include",
2120
]
22-
defines = [
23-
"NNSDK",
24-
"SWITCH",
25-
"__SWITCH__",
26-
"EXL_DEBUG",
27-
"EXL_LOAD_KIND_ENUM=2",
28-
"EXL_LOAD_KIND=Module",
29-
"NN_SDK_MAJOR=7",
30-
"NN_SDK_MINOR=3",
31-
"NN_SDK_PATCH=2",
32-
"NN_WARE_MAJOR=7",
33-
"NN_WARE_MINOR=3",
34-
"NN_WARE_PATCH=2",
35-
]
36-
# linker scripts (relative to project root)
37-
ld-scripts = [
21+
ldscripts = [
3822
"libs/exlaunch/misc/link.ld",
3923
"libs/botw-symbols/ld/ld160.ld",
4024
"link.ld",
4125
]
42-
# extra macros to define. The macros can be a string or a list of strings, which are joined with a space
43-
extra = [
44-
{ DEFINES = [
45-
"-DEXL_PROGRAM_ID=$(MEGATON_MODULE_TITLE_ID)",
46-
"-DEXL_MODULE_NAME='\"$(MEGATON_MODULE_NAME)\"'"
47-
]},
48-
{ CXXFLAGS = [
49-
"-Wno-invalid-offsetof",
50-
]},
26+
27+
[build.flags]
28+
c = [
29+
"<default>",
30+
"-DNNSDK",
31+
"-DSWITCH",
32+
"-D__SWITCH__",
33+
"-DEXL_DEBUG",
34+
"-DEXL_LOAD_KIND_ENUM=2",
35+
"-DEXL_LOAD_KIND=Module",
36+
"-DEXL_PROGRAM_ID=0x01007ef00011e000",
37+
"-DEXL_MODULE_NAME=\"botwsavs\"",
38+
"-DNN_SDK_MAJOR=7",
39+
"-DNN_SDK_MINOR=3",
40+
"-DNN_SDK_PATCH=2",
41+
"-DNN_WARE_MAJOR=7",
42+
"-DNN_WARE_MINOR=3",
43+
"-DNN_WARE_PATCH=2",
44+
"-DBOTW_VERSION=160",
45+
]
46+
cxx = [
47+
"<default>",
48+
"-Wno-invalid-offsetof",
5149
]
5250

5351
[check]
5452
ignore = [
5553
".data",
5654
".text",
5755
]
58-
disallowed-instructions = [
59-
'^msr\s*spsel',
60-
'^msr\s*daifset',
61-
'^mrs\.*daif',
62-
'^mrs\.*tpidr_el1',
63-
'^msr\s*tpidr_el1',
64-
'^hlt',
65-
]
6656
symbols = [
6757
"libs/botw-symbols/symbols/160/main.syms",
6858
"libs/botw-symbols/symbols/160/rtld.syms",

scripts/lftp-upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mkdir -p -f /atmosphere/contents/01007EF00011E000/exefs
22
cd /atmosphere/contents/01007EF00011E000/exefs
3-
mput -e target/megaton/none/make/botwsavs.nso
3+
mput -e target/megaton/none/botwsavs.nso
44
mput -e target/megaton/none/main.npdm
55
rm -f subsdk9
66
mv botwsavs.nso subsdk9

src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ extern "C" void exl_main(void* x0, void* x1) {
99
nn::fs::MountSdCardForDebug("sd");
1010

1111
botw::savs::msg::install_hooks();
12+
1213
botw::savs::start_worker_thread();
1314
}
1415

0 commit comments

Comments
 (0)