aboutsummaryrefslogtreecommitdiff
path: root/emulators/visualboyadvance-m/files
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-02-11 08:59:01 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-02-11 08:59:01 +0000
commitbddf06f40587b9564591474b6c633900a9d66789 (patch)
treedd74f1edd7b126d9e07af0bd432f71a78517a362 /emulators/visualboyadvance-m/files
parentc5f938513bafcc176af09d59441fe207fa25b4eb (diff)
downloadports-bddf06f40587b9564591474b6c633900a9d66789.tar.gz
ports-bddf06f40587b9564591474b6c633900a9d66789.zip
Notes
Diffstat (limited to 'emulators/visualboyadvance-m/files')
-rw-r--r--emulators/visualboyadvance-m/files/patch-fex_fex_blargg__common.h11
-rw-r--r--emulators/visualboyadvance-m/files/patch-src_gba_Cheats.cpp21
2 files changed, 32 insertions, 0 deletions
diff --git a/emulators/visualboyadvance-m/files/patch-fex_fex_blargg__common.h b/emulators/visualboyadvance-m/files/patch-fex_fex_blargg__common.h
new file mode 100644
index 000000000000..c11d5afd2089
--- /dev/null
+++ b/emulators/visualboyadvance-m/files/patch-fex_fex_blargg__common.h
@@ -0,0 +1,11 @@
+--- fex/fex/blargg_common.h.orig 2019-02-11 08:38:11 UTC
++++ fex/fex/blargg_common.h
+@@ -12,7 +12,7 @@
+ typedef const char* blargg_err_t; // 0 on success, otherwise error string
+
+ // Success; no error
+-int const blargg_ok = 0;
++const char* const blargg_ok = 0;
+
+ // BLARGG_RESTRICT: equivalent to C99's restrict, where supported
+ #if __GNUC__ >= 3 || _MSC_VER >= 1100
diff --git a/emulators/visualboyadvance-m/files/patch-src_gba_Cheats.cpp b/emulators/visualboyadvance-m/files/patch-src_gba_Cheats.cpp
new file mode 100644
index 000000000000..0708855eec31
--- /dev/null
+++ b/emulators/visualboyadvance-m/files/patch-src_gba_Cheats.cpp
@@ -0,0 +1,21 @@
+--- src/gba/Cheats.cpp.orig 2019-02-11 08:37:58 UTC
++++ src/gba/Cheats.cpp
+@@ -2477,12 +2477,12 @@ void cheatsAddCBACode(const char *code, const char *de
+ sscanf(buffer, "%x", &value);
+
+ u8 array[8] = {
+- address & 255,
+- (address >> 8) & 255,
+- (address >> 16) & 255,
+- (address >> 24) & 255,
+- (value & 255),
+- (value >> 8) & 255,
++ static_cast<u8>(address & 255),
++ static_cast<u8>((address >> 8) & 255),
++ static_cast<u8>((address >> 16) & 255),
++ static_cast<u8>((address >> 24) & 255),
++ static_cast<u8>((value & 255)),
++ static_cast<u8>((value >> 8) & 255),
+ 0,
+ 0
+ };