decompile donut/Main.cpp
This commit is contained in:
parent
4c777a43f4
commit
c0cc0a1bfa
8 changed files with 45 additions and 2 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -4,6 +4,7 @@
|
|||
"array": "c",
|
||||
"string_view": "c",
|
||||
"initializer_list": "c",
|
||||
"utility": "c"
|
||||
"utility": "c",
|
||||
"types.h": "c"
|
||||
},
|
||||
}
|
|
@ -15,3 +15,5 @@ build/obj/sdk/rvl/os/__start.o
|
|||
build/obj/sdk/rvl/os/__ppc_eabi_init.o
|
||||
build/obj/10.o
|
||||
build/obj/11.o
|
||||
build/obj/donut/Main.o
|
||||
build/obj/12.o
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
800062c0,80006620,,,,,,,,,,,,,,,,,,,8055c878,8055c879,,,,,sdk/rvl/os/__start.o
|
||||
80006620,80006684,,,,,,,,,,,,,,,,,,,,,,,,,sdk/rvl/os/__ppc_eabi_init.o
|
||||
,,,,,,,,80406540,80406544,,,,,,,,,,,,,,,,,Linker generated symbol file
|
||||
,,,,,,80174ad8,80174af8,,,,,,,,,,,,,80556b70,80556b71,,,,,donut/Main.cpp
|
||||
80006684,80006728,,,,,,,8040652c,80406530,80406548,8040654c,,,,,,,,,,,,,,,Linker generated symbol file
|
||||
80006728,80006728,800068cc,800068cc,800069e4,800069e4,80406244,80406244,80406530,80406530,8040654c,8040654c,80421030,80421030,804966fc,804966fc,8055640c,8055640c,8055c6d0,8055c6d0,8055df74,8055df74,805643b0,805643b0,805643fc,805643fc,End of File
|
|
|
@ -18,5 +18,5 @@ Address,SymbolName
|
|||
80023820,OSResetSystem
|
||||
80028530,__init_user
|
||||
800285a0,exit
|
||||
80174ad8,main
|
||||
801776bc,Run__Q23app10EntryPointFbPCc
|
||||
8055c878,Debug_BBA
|
||||
|
|
|
5
donut/Main.cpp
Normal file
5
donut/Main.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include <app/EntryPoint.hpp>
|
||||
|
||||
void main(int argc, char **argv) {
|
||||
app::EntryPoint::Run(false, argc == 2 ? argv[1] : "");
|
||||
}
|
7
include/app/EntryPoint.hpp
Normal file
7
include/app/EntryPoint.hpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
namespace app {
|
||||
struct EntryPoint {
|
||||
static void Run(bool debug, const char *arg);
|
||||
};
|
||||
} // namespace app
|
|
@ -20,6 +20,7 @@ const SOURCES: &[(&str, &str)] = &[
|
|||
("sdk/rvl/os/OSContext.c", "sdk"),
|
||||
("sdk/rvl/os/__start.c", "sdk"),
|
||||
("sdk/rvl/os/__ppc_eabi_init.c", "sdk"),
|
||||
("donut/Main.cpp", "donut"),
|
||||
];
|
||||
|
||||
const ASM_SOURCES: &[&str] = &["sdk/trk/__exception.S"];
|
||||
|
|
|
@ -60,6 +60,32 @@ static CFLAGS: Lazy<HashMap<&'static str, &'static [&'static str]>> = Lazy::new(
|
|||
"4",
|
||||
][..],
|
||||
);
|
||||
hm.insert(
|
||||
"donut",
|
||||
&[
|
||||
"-ipa",
|
||||
"file",
|
||||
"-O4,p",
|
||||
"-inline",
|
||||
"auto",
|
||||
"-gccinc",
|
||||
"-i",
|
||||
"./include",
|
||||
"-proc",
|
||||
"gekko",
|
||||
"-enum",
|
||||
"int",
|
||||
"-fp",
|
||||
"hardware",
|
||||
"-Cpp_exceptions",
|
||||
"off",
|
||||
"-RTTI",
|
||||
"off",
|
||||
"-gdwarf-2",
|
||||
"-func_align",
|
||||
"4",
|
||||
][..],
|
||||
);
|
||||
hm
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue