Created
September 1, 2012 04:18
-
-
Save ToadKing/3563735 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/console/rarch_console_exec.c b/console/rarch_console_exec.c | |
index d599c56..204debb 100644 | |
--- a/console/rarch_console_exec.c | |
+++ b/console/rarch_console_exec.c | |
@@ -140,6 +140,9 @@ void rarch_console_exec(const char *path) | |
fclose(fp); | |
DCFlushRange(EXECUTE_ADDR, size); | |
#else | |
+#ifdef HAVE_LOGGER | |
+ *((vu32 *) 0x93300000) = logger_send; | |
+#endif | |
uint8_t buffer[0x800]; | |
size_t size; | |
size_t offset = 0; | |
diff --git a/gx/app_booter/dolloader.c b/gx/app_booter/dolloader.c | |
index 5f635e6..6bbeace 100644 | |
--- a/gx/app_booter/dolloader.c | |
+++ b/gx/app_booter/dolloader.c | |
@@ -5,6 +5,8 @@ | |
#define ARENA1_HI_LIMIT 0x81800000 | |
+void (*logger_send)(const char *__format, ...) = (void (*)(const char *, ...)) 0x93300000; | |
+ | |
typedef struct _dolheader { | |
u32 text_pos[7]; | |
u32 data_pos[11]; | |
@@ -19,6 +21,7 @@ typedef struct _dolheader { | |
u32 load_dol_image(const void *dolstart) | |
{ | |
+ logger_send("test\n"); | |
if(!dolstart) | |
return 0; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment