Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC] fix: use current set of size reduction functions for loader #126

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions loader/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "string.h"
#include "iopheap.h"
#include "errno.h"
#include "ps2sdkapi.h"
//--------------------------------------------------------------

//--------------------------------------------------------------
Expand All @@ -42,8 +43,13 @@
// DON'T REMOVE is for reducing binary size.
// These funtios are defined as weak in /libc/src/init.c
//--------------------------------------------------------------
void _ps2sdk_libc_init() {}
void _ps2sdk_libc_deinit() {}
void _libcglue_init() {}
void _libcglue_deinit() {}
void _libcglue_args_parse(int argc, char **argv) {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we override ags parse we have to setup the CWD path manually. this broke PS2BBL relative paths back then


DISABLE_PATCHED_FUNCTIONS();
DISABLE_EXTRA_TIMERS_FUNCTIONS();
PS2_DISABLE_AUTOSTART_PTHREAD();

//--------------------------------------------------------------
// End of data declarations
Expand Down
Loading