summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xld_script.txt1
-rw-r--r--src/contest_link_80C857C.c55
2 files changed, 56 insertions, 0 deletions
diff --git a/ld_script.txt b/ld_script.txt
index 0eb8f5971..071c9c54c 100755
--- a/ld_script.txt
+++ b/ld_script.txt
@@ -180,6 +180,7 @@ SECTIONS {
asm/rotating_gate.o(.text);
src/safari_zone.o(.text);
asm/contest_link_80C857C.o(.text);
+ src/contest_link_80C857C.o(.text);
src/item_use.o(.text);
asm/battle_anim_80CA710.o(.text);
src/bike.o(.text);
diff --git a/src/contest_link_80C857C.c b/src/contest_link_80C857C.c
new file mode 100644
index 000000000..0ae98af09
--- /dev/null
+++ b/src/contest_link_80C857C.c
@@ -0,0 +1,55 @@
+#include "global.h"
+#include "link.h"
+
+#if GERMAN
+
+void de_sub_80C9274(bool32 arg0) {
+ if (deUnkValue2 != 1)
+ {
+ return;
+ }
+
+ if (arg0)
+ {
+ deUnkValue2 = 3;
+ }
+ else
+ {
+ deUnkValue2 = 2;
+ }
+}
+
+void de_sub_80C9294(bool32 arg0) {
+ if (deUnkValue2 == 1)
+ {
+ if (arg0)
+ {
+ deUnkValue2 = 3;
+ }
+ else
+ {
+ deUnkValue2 = 2;
+ }
+
+ return;
+ }
+
+
+ if (deUnkValue2 == 2)
+ {
+ SendBlock(0, sBlockRequestLookupTable[deUnkValue1].address, sBlockRequestLookupTable[deUnkValue1].size);
+
+ if (arg0)
+ {
+ deUnkValue2 = 0;
+ }
+ else
+ {
+ deUnkValue2 = 1;
+ }
+
+ return;
+ }
+}
+
+#endif