Clean up code.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include <decomp_vscode.h>
|
||||
#include <decomp_ide.h>
|
||||
#include <__ppc_eabi_linker.h>
|
||||
#include <__ppc_eabi_init.h>
|
||||
#include <NMWException.h>
|
||||
@@ -17,29 +17,32 @@ extern void __fini_cpp_exceptions();
|
||||
#endif
|
||||
|
||||
static inline void __exception_info_constants(__eti_init_info* info, char** R2) {
|
||||
register char* temp;
|
||||
register char* temp;
|
||||
|
||||
asm { mr temp, r2; }
|
||||
*R2 = temp;
|
||||
|
||||
info = _eti_init_info;
|
||||
}
|
||||
|
||||
/*
|
||||
@note Address: 0x815F9D08
|
||||
@note Size: 0x3C
|
||||
*/
|
||||
* @note Address: 0x815F9D08 (4.3U)
|
||||
* @note Size: 0x3C
|
||||
*/
|
||||
extern void __init_cpp_exceptions() {
|
||||
if (fragmentID == -2) {
|
||||
char* R2;
|
||||
__eti_init_info* info;
|
||||
char* R2;
|
||||
__eti_init_info* info;
|
||||
|
||||
__exception_info_constants(_eti_init_info, &R2);
|
||||
fragmentID = __register_fragment(_eti_init_info, R2);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@note Address: 0x815F9D44
|
||||
@note Size: 0x34
|
||||
*/
|
||||
* @note Address: 0x815F9D44 (4.3U)
|
||||
* @note Size: 0x34
|
||||
*/
|
||||
extern void __fini_cpp_exceptions() {
|
||||
if (fragmentID != -2) {
|
||||
__unregister_fragment(fragmentID);
|
||||
@@ -49,10 +52,10 @@ extern void __fini_cpp_exceptions() {
|
||||
|
||||
#pragma force_active on
|
||||
#pragma section ".ctors$10"
|
||||
__declspec(section ".ctors$10") extern void* const __init_cpp_exceptions_reference = __init_cpp_exceptions;
|
||||
__declspec(section ".ctors$10") extern void* const __init_cpp_exceptions_reference = __init_cpp_exceptions;
|
||||
#pragma section ".dtors$10"
|
||||
__declspec(section ".dtors$10") extern void* const __destroy_global_chain_reference = __destroy_global_chain;
|
||||
__declspec(section ".dtors$10") extern void* const __destroy_global_chain_reference = __destroy_global_chain;
|
||||
#pragma section ".dtors$15"
|
||||
__declspec(section ".dtors$15") extern void* const __fini_cpp_exceptions_reference = __fini_cpp_exceptions;
|
||||
__declspec(section ".dtors$15") extern void* const __fini_cpp_exceptions_reference = __fini_cpp_exceptions;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user