summaryrefslogtreecommitdiff
path: root/include/rs_migrate_string.h
diff options
context:
space:
mode:
authorRémi Calixte <remicalixte.rmc@gmail.com>2021-08-18 18:18:11 +0200
committerRémi Calixte <remicalixte.rmc@gmail.com>2021-08-18 18:18:11 +0200
commit99b7ee252db114934a7de5d71ca7a4cbf8244595 (patch)
tree6466f32940d476253965670b87a029fe499f8db3 /include/rs_migrate_string.h
parent4c6555ebcf6ad432ded5d9699d1d3b404907ce6b (diff)
parente947eab3f1d5315ba59ec989a02f6b84797e052b (diff)
Merge branch 'master' into unk_02009EAC
Diffstat (limited to 'include/rs_migrate_string.h')
-rw-r--r--include/rs_migrate_string.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/rs_migrate_string.h b/include/rs_migrate_string.h
new file mode 100644
index 00000000..b83807f5
--- /dev/null
+++ b/include/rs_migrate_string.h
@@ -0,0 +1,26 @@
+#ifndef POKEDIAMOND_UNK_02015D14_H
+#define POKEDIAMOND_UNK_02015D14_H
+
+// --------------------------------------------
+// ConvertRSStringToDPStringInternational
+// ============================================
+// Param rs_str: Pointer to u8 representing
+// the name of a Pokemon or
+// its OT when migrating from
+// Advanced Gameboy.
+// Param dp_str: Pointer to u16 representing
+// the destination string buffer
+// for migration to Diamond
+// or Pearl.
+// Param length: The length of the string
+// to convert, including the
+// terminator byte.
+// Param language: Game language of origin.
+// See include/config.h.
+// Return: TRUE if the conversion was completed
+// successfully. Otherwise, dp_str will
+// be filled with up to 10 question mark
+// characters.
+BOOL ConvertRSStringToDPStringInternational(const u8 * rs_str, u16 * dp_str, u32 length, u32 language);
+
+#endif //POKEDIAMOND_UNK_02015D14_H