git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AcessNative - Cleaning up debug
[tpg/acess2.git]
/
AcessNative
/
ld-acess_src
/
binary.c
diff --git
a/AcessNative/ld-acess_src/binary.c
b/AcessNative/ld-acess_src/binary.c
index
8d11e97
..
d04ac6d
100644
(file)
--- a/
AcessNative/ld-acess_src/binary.c
+++ b/
AcessNative/ld-acess_src/binary.c
@@
-1,7
+1,11
@@
/*
/*
- * AcessNative
+ * AcessNative Dynamic Linker
+ * - By John Hodge (thePowersGang)
+ *
+ * binary.c
+ * - Provides binary loading and type abstraction
*/
*/
-#define DEBUG
1
+#define DEBUG
0
#include "common.h"
#include <stdint.h>
#include <stdio.h>
#include "common.h"
#include <stdint.h>
#include <stdio.h>
@@
-110,7
+114,8
@@
void *Binary_LoadLibrary(const char *Name)
}
ret = Binary_Load(path, (uintptr_t*)&entry);
}
ret = Binary_Load(path, (uintptr_t*)&entry);
- printf("LOADED '%s' to %p (Entry=%p)\n", path, ret, entry);
+ if( ret != (void*)-1 )
+ Debug("LOADED '%s' to %p (Entry=%p)", path, ret, entry);
free(path);
#if DEBUG
free(path);
#if DEBUG
UCC
git Repository :: git.ucc.asn.au