Repository navigation
Match G2MEAB Runtime exception support - #61
Conversation
# Conflicts: # src/Runtime/mbstring.c
| sdk_dir: str = "extern/sdk", | ||
| non_matching: bool = False, | ||
| prototype: bool = False, | ||
| prototype_split_objects: bool = False, |
There was a problem hiding this comment.
sorry just no about this. stop with the hacks
There was a problem hiding this comment.
Removed the SDK switch and the game-side argument. The paired build links NMWException, errno, and PadFallback from source and reproduces the original G2MEAB DOL. Prototype #1360
| virtual ~exception() throw(); | ||
| virtual const char* what() const throw(); | ||
| }; | ||
| #ifdef RVL_PROTO_RUNTIME |
There was a problem hiding this comment.
is keeping these declarations conditional necessary? aren't they removed by linker by being unused?
| @@ -42,350 +42,529 @@ typedef struct { | |||
| } __wOutStrCtrl; | |||
|
|
|||
| // Guessed name | |||
There was a problem hiding this comment.
don't leave random junk behind
| }; | ||
| } // namespace std | ||
|
|
||
| #ifdef RVL_PROTO_RUNTIME |
There was a problem hiding this comment.
You removed the other ifdef but kept this one. The question applied to all of them.
There was a problem hiding this comment.
Removed all three RVL_PROTO_RUNTIME guards in New.cp at 9f548ab. The linker does discard the unused allocator functions. With string pooling enabled, the live std::exception::what() also retained the unused bad_alloc strings and throw descriptor, changing the Echoes DOL. New.cp now uses -str nopool in the Dolphin SDK configuration, as it already does in G2MEAB.
All seven tested Echoes builds reproduce their original hashes, including the three that link New.o from source. Both prototype companion builds reproduce the original DOL and preserve all 1,247 compiled objects and their link inputs. Prototype #1360 · Prototype #1449
Companion prototype split changes and DOL verification in corruption-proto #1360.