Skip to content

Commit

Permalink
fixed some compiling stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Oct 17, 2015
1 parent 7b80f65 commit 424402e
Show file tree
Hide file tree
Showing 5 changed files with 401 additions and 401 deletions.
2 changes: 1 addition & 1 deletion saviine/client/saviine532.ld
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OUTPUT(cafiine532.elf);
OUTPUT(saviine532.elf);

SECTIONS {
.text 0x011de000 : {
Expand Down
Binary file modified saviine/installer/bin/code532.bin
Binary file not shown.
Binary file modified saviine/installer/bin/saviine.o
Binary file not shown.
18 changes: 9 additions & 9 deletions saviine/installer/saviine.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "../../libwiiu/src/coreinit.h"
#include "../../libwiiu/src/socket.h"
#include "../../libwiiu/src/vpad.h"
#include "../../../../libwiiu/src/coreinit.h"
#include "../../../../libwiiu/src/socket.h"
#include "../../../../libwiiu/src/vpad.h"

#define assert(x) \
do { \
Expand Down Expand Up @@ -175,26 +175,26 @@ void start() {
/* ****************************************************************** */

/* Copy in our resident cafiine client. */
unsigned int len = sizeof(cafiine_text_bin);
unsigned int len = sizeof(saviine_text_bin);
unsigned char *loc = (unsigned char *)((char *)INSTALL_ADDR + 0xa0000000);

while (len--) {
loc[len] = cafiine_text_bin[len];
loc[len] = saviine_text_bin[len];
}

/* server IP address */
((unsigned int *)loc)[0] = ip.full; //PC_IP;

DCFlushRange(loc, sizeof(cafiine_text_bin));
DCFlushRange(loc, sizeof(saviine_text_bin));

struct magic_t {
void *real;
void *replacement;
void *call;
} *magic = (struct magic_t *)cafiine_magic_bin;
len = sizeof(cafiine_magic_bin) / sizeof(struct magic_t);
} *magic = (struct magic_t *)saviine_magic_bin;
len = sizeof(saviine_magic_bin) / sizeof(struct magic_t);

int *space = (int *)(loc + sizeof(cafiine_text_bin));
int *space = (int *)(loc + sizeof(saviine_text_bin));
/* Patch branches to it. */
while (len--) {
*(int *)(0xa0000000 | (int)magic[len].call) = (int)space - 0xa0000000;
Expand Down
Loading

0 comments on commit 424402e

Please sign in to comment.