From a6611095417252a0284e72eaa3596965f6f8d63b Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Mon, 25 Jul 2011 17:57:06 +0000 Subject: [PATCH] Forgot to remove two unneeded files --- source/dolloader.c | 62 ---------------------------------------------- source/dolloader.h | 20 --------------- 2 files changed, 82 deletions(-) delete mode 100644 source/dolloader.c delete mode 100644 source/dolloader.h diff --git a/source/dolloader.c b/source/dolloader.c deleted file mode 100644 index 923e2cc1..00000000 --- a/source/dolloader.c +++ /dev/null @@ -1,62 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include - -#include "dolloader.h" - -typedef struct _dolheader { - u32 text_pos[7]; - u32 data_pos[11]; - u32 text_start[7]; - u32 data_start[11]; - u32 text_size[7]; - u32 data_size[11]; - u32 bss_start; - u32 bss_size; - u32 entry_point; -} dolheader; - -u32 load_dol_image(const void *dolstart, struct __argv *argv) -{ - u32 i; - dolheader *dolfile; - - if (dolstart) - { - dolfile = (dolheader *) dolstart; - for (i = 0; i < 7; i++) - { - if ((!dolfile->text_size[i]) || (dolfile->text_start[i] < 0x100)) - continue; - - VIDEO_WaitVSync(); - memmove((void *) dolfile->text_start[i], dolstart + dolfile->text_pos[i], dolfile->text_size[i]); - DCFlushRange ((void *) dolfile->text_start[i], dolfile->text_size[i]); - ICInvalidateRange((void *) dolfile->text_start[i], dolfile->text_size[i]); - } - - for (i = 0; i < 11; i++) - { - if ((!dolfile->data_size[i]) || (dolfile->data_start[i] < 0x100)) - continue; - - VIDEO_WaitVSync(); - memmove((void *) dolfile->data_start[i], dolstart + dolfile->data_pos[i], dolfile->data_size[i]); - DCFlushRange((void *) dolfile->data_start[i], - dolfile->data_size[i]); - } - - if (argv && argv->argvMagic == ARGV_MAGIC) - { - void *new_argv = (void *) (dolfile->entry_point + 8); - memmove(new_argv, argv, sizeof(*argv)); - DCFlushRange(new_argv, sizeof(*argv)); - } - return dolfile->entry_point; - } - return 0; -} diff --git a/source/dolloader.h b/source/dolloader.h deleted file mode 100644 index e4c50820..00000000 --- a/source/dolloader.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef _DOLLOADER_H_ -#define _DOLLOADER_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#define EXECUTABLE_MEM_ADDR 0x92000000 - -extern void __exception_closeall(); -typedef void (*entrypoint) (void); - -u32 load_dol_image(const void *dolstart, struct __argv *argv); - - -#ifdef __cplusplus -} -#endif - -#endif