summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspv420 <unomilliono@gmail.com>2022-04-23 18:22:31 -0400
committerspv420 <unomilliono@gmail.com>2022-04-23 18:22:31 -0400
commit245a3831d7266913b0281bfa19058b59ac80818b (patch)
treed20043b79a8df535a7df9b1d19c249e6ebd2d5a1
parent8526f9689b7bbeb09a14fbd159ef6d1871909df4 (diff)
big b0i
-rw-r--r--build.sh30
-rw-r--r--build_native.sh22
-rw-r--r--src/gen/common.h (renamed from src/common.h)0
-rw-r--r--src/gen/ip_tools.c (renamed from src/ip_tools.c)0
-rw-r--r--src/gen/ip_tools.h (renamed from src/ip_tools.h)0
-rw-r--r--src/gen/main.c (renamed from src/main.c)0
-rw-r--r--src/gen/patchfinder.c (renamed from src/patchfinder.c)0
-rw-r--r--src/gen/patchfinder.h (renamed from src/patchfinder.h)0
-rw-r--r--src/gen/shit.c (renamed from src/shit.c)62
-rw-r--r--src/gen/shit.h (renamed from src/shit.h)10
-rw-r--r--src/gen/stage0_primitives.c (renamed from src/stage0_primitives.c)0
-rw-r--r--src/gen/stage0_primitives.h (renamed from src/stage0_primitives.h)0
-rw-r--r--src/gen/stage1_primitives.c (renamed from src/stage1_primitives.c)0
-rw-r--r--src/gen/stage1_primitives.h (renamed from src/stage1_primitives.h)0
-rw-r--r--src/gen/stage2.c (renamed from src/stage2.c)0
-rw-r--r--src/gen/stage2.h (renamed from src/stage2.h)0
-rw-r--r--src/js/call.js (renamed from js/call.js)0
-rw-r--r--src/js/int64.js (renamed from js/int64.js)0
-rw-r--r--src/js/libu8.js (renamed from js/libu8.js)0
-rw-r--r--src/js/main.js (renamed from js/main.js)0
-rw-r--r--src/js/mem.js (renamed from js/mem.js)0
-rw-r--r--src/js/str.js (renamed from js/str.js)0
-rw-r--r--src/js/utils.js (renamed from js/utils.js)0
23 files changed, 62 insertions, 62 deletions
diff --git a/build.sh b/build.sh
index 42d1675..c8e28bf 100644
--- a/build.sh
+++ b/build.sh
@@ -1,19 +1,19 @@
#!/bin/bash
rm exp.js
-find js -name '*.js' -exec cat {} \; >> exp.js
+find src/js -name '*.js' -exec cat {} \; >> exp.js
echo >> exp.js
echo "main();" >> exp.js
# build for host
clang -I $(pwd)/inc/ \
- src/main.c \
- src/ip_tools.c \
- src/stage0_primitives.c \
- src/stage1_primitives.c \
- src/patchfinder.c \
- src/stage2.c \
- src/shit.c \
+ src/gen/main.c \
+ src/gen/ip_tools.c \
+ src/gen/stage0_primitives.c \
+ src/gen/stage1_primitives.c \
+ src/gen/patchfinder.c \
+ src/gen/stage2.c \
+ src/gen/shit.c \
-o bin/main \
-D__WHOAMI__="\"$(whoami)\"" \
-D__PWD__="\"$(pwd)\"" \
@@ -21,13 +21,13 @@ clang -I $(pwd)/inc/ \
# -rdynamic
# build armv7 (for untether install)
-xcrun -sdk iphoneos clang -arch armv7 src/main.c \
- src/ip_tools.c \
- src/stage0_primitives.c \
- src/stage1_primitives.c \
- src/patchfinder.c \
- src/stage2.c \
- src/shit.c \
+xcrun -sdk iphoneos clang -arch armv7 src/gen/main.c \
+ src/gen/ip_tools.c \
+ src/gen/stage0_primitives.c \
+ src/gen/stage1_primitives.c \
+ src/gen/patchfinder.c \
+ src/gen/stage2.c \
+ src/gen/shit.c \
-o bin/main_arm \
-D__WHOAMI__="\"$(whoami)\"" \
-D__PWD__="\"$(pwd)\"" \
diff --git a/build_native.sh b/build_native.sh
index 44e1d45..a349643 100644
--- a/build_native.sh
+++ b/build_native.sh
@@ -1,23 +1,23 @@
#!/bin/bash
rm exp.js
-find js -name '*.js' -exec cat {} \; >> exp.js
+find src/js -name '*.js' -exec cat {} \; >> exp.js
echo >> exp.js
echo "main();" >> exp.js
# build for host
-gcc -I $(pwd)/inc/ \
- src/main.c \
- src/ip_tools.c \
- src/stage0_primitives.c \
- src/stage1_primitives.c \
- src/patchfinder.c \
- src/stage2.c \
- src/shit.c \
- -o bin/main_arm \
+gcc -I $(pwd)/inc/ \
+ src/gen/main.c \
+ src/gen/ip_tools.c \
+ src/gen/stage0_primitives.c \
+ src/gen/stage1_primitives.c \
+ src/gen/patchfinder.c \
+ src/gen/stage2.c \
+ src/gen/shit.c \
+ -o bin/main_arm \
-D__WHOAMI__="\"$(whoami)\"" \
-D__PWD__="\"$(pwd)\"" \
- -g \
+ -g \
--std=c99
ldid -Sent.xml bin/main_arm
diff --git a/src/common.h b/src/gen/common.h
index 9550400..9550400 100644
--- a/src/common.h
+++ b/src/gen/common.h
diff --git a/src/ip_tools.c b/src/gen/ip_tools.c
index 6e36b64..6e36b64 100644
--- a/src/ip_tools.c
+++ b/src/gen/ip_tools.c
diff --git a/src/ip_tools.h b/src/gen/ip_tools.h
index a011094..a011094 100644
--- a/src/ip_tools.h
+++ b/src/gen/ip_tools.h
diff --git a/src/main.c b/src/gen/main.c
index 3c8d513..3c8d513 100644
--- a/src/main.c
+++ b/src/gen/main.c
diff --git a/src/patchfinder.c b/src/gen/patchfinder.c
index 7464d70..7464d70 100644
--- a/src/patchfinder.c
+++ b/src/gen/patchfinder.c
diff --git a/src/patchfinder.h b/src/gen/patchfinder.h
index 21af7e3..21af7e3 100644
--- a/src/patchfinder.h
+++ b/src/gen/patchfinder.h
diff --git a/src/shit.c b/src/gen/shit.c
index ef354d4..6e6c5c5 100644
--- a/src/shit.c
+++ b/src/gen/shit.c
@@ -1,32 +1,32 @@
-#include <stdarg.h>
-#include "common.h"
-#include <stdio.h>
-#include "shit.h"
-
-extern FILE* fp;
-
-int _asprintf(char **strp, const char *fmt, ...) {
- va_list ap;
- char* tmp = NULL;
-
- *strp = "";
-
- /*
- * shit
- */
-
- va_start(ap, fmt);
- vfprintf(fp, fmt, ap);
- va_end(ap);
-
-#if 0
- strcpy(fuck_memory_leaks, tmp);
-
- if (strp)
- *strp = fuck_memory_leaks;
-
- free(tmp);
-#endif
-
- return 0;
+#include <stdarg.h>
+#include "common.h"
+#include <stdio.h>
+#include "shit.h"
+
+extern FILE* fp;
+
+int _asprintf(char **strp, const char *fmt, ...) {
+ va_list ap;
+ char* tmp = NULL;
+
+ *strp = "";
+
+ /*
+ * shit
+ */
+
+ va_start(ap, fmt);
+ vfprintf(fp, fmt, ap);
+ va_end(ap);
+
+#if 0
+ strcpy(fuck_memory_leaks, tmp);
+
+ if (strp)
+ *strp = fuck_memory_leaks;
+
+ free(tmp);
+#endif
+
+ return 0;
} \ No newline at end of file
diff --git a/src/shit.h b/src/gen/shit.h
index d97a995..aaa4b7f 100644
--- a/src/shit.h
+++ b/src/gen/shit.h
@@ -1,6 +1,6 @@
-#ifndef SHIT_H
-#define SHIT_H
-
-int _asprintf(char **strp, const char *fmt, ...);
-
+#ifndef SHIT_H
+#define SHIT_H
+
+int _asprintf(char **strp, const char *fmt, ...);
+
#endif \ No newline at end of file
diff --git a/src/stage0_primitives.c b/src/gen/stage0_primitives.c
index b54cb1a..b54cb1a 100644
--- a/src/stage0_primitives.c
+++ b/src/gen/stage0_primitives.c
diff --git a/src/stage0_primitives.h b/src/gen/stage0_primitives.h
index a9a71eb..a9a71eb 100644
--- a/src/stage0_primitives.h
+++ b/src/gen/stage0_primitives.h
diff --git a/src/stage1_primitives.c b/src/gen/stage1_primitives.c
index ffe7b53..ffe7b53 100644
--- a/src/stage1_primitives.c
+++ b/src/gen/stage1_primitives.c
diff --git a/src/stage1_primitives.h b/src/gen/stage1_primitives.h
index d6b9c33..d6b9c33 100644
--- a/src/stage1_primitives.h
+++ b/src/gen/stage1_primitives.h
diff --git a/src/stage2.c b/src/gen/stage2.c
index 8b98a7e..8b98a7e 100644
--- a/src/stage2.c
+++ b/src/gen/stage2.c
diff --git a/src/stage2.h b/src/gen/stage2.h
index 0c7b62b..0c7b62b 100644
--- a/src/stage2.h
+++ b/src/gen/stage2.h
diff --git a/js/call.js b/src/js/call.js
index c766b1a..c766b1a 100644
--- a/js/call.js
+++ b/src/js/call.js
diff --git a/js/int64.js b/src/js/int64.js
index 1ef5910..1ef5910 100644
--- a/js/int64.js
+++ b/src/js/int64.js
diff --git a/js/libu8.js b/src/js/libu8.js
index b619fd8..b619fd8 100644
--- a/js/libu8.js
+++ b/src/js/libu8.js
diff --git a/js/main.js b/src/js/main.js
index dd7f1f0..dd7f1f0 100644
--- a/js/main.js
+++ b/src/js/main.js
diff --git a/js/mem.js b/src/js/mem.js
index 6c30376..6c30376 100644
--- a/js/mem.js
+++ b/src/js/mem.js
diff --git a/js/str.js b/src/js/str.js
index 31621bf..31621bf 100644
--- a/js/str.js
+++ b/src/js/str.js
diff --git a/js/utils.js b/src/js/utils.js
index 361e71d..361e71d 100644
--- a/js/utils.js
+++ b/src/js/utils.js