diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2019-01-07 09:02:21 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2019-01-07 09:02:21 +0000 |
commit | 4efac9807011b3208cc38557e0aff31bb801a1db (patch) | |
tree | 91ca4d63c6f490c441c644dd0aa610e78b721e9f /emulators | |
parent | e7bf1ff75c4fa0d9adb82710a1ff580f4a72a132 (diff) | |
download | ports-4efac9807011b3208cc38557e0aff31bb801a1db.tar.gz ports-4efac9807011b3208cc38557e0aff31bb801a1db.zip |
Notes
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/vba/Makefile | 3 | ||||
-rw-r--r-- | emulators/vba/files/patch-src_Cheats.cpp | 21 |
2 files changed, 22 insertions, 2 deletions
diff --git a/emulators/vba/Makefile b/emulators/vba/Makefile index 1987008035a2..48c6887be5f2 100644 --- a/emulators/vba/Makefile +++ b/emulators/vba/Makefile @@ -12,8 +12,7 @@ MAINTAINER= arundel@h3c.de COMMENT= Open source Gameboy Advance emulator LICENSE= GPLv2 - -BROKEN= fails to build +LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= nasm:devel/nasm LIB_DEPENDS= libpng.so:graphics/png diff --git a/emulators/vba/files/patch-src_Cheats.cpp b/emulators/vba/files/patch-src_Cheats.cpp new file mode 100644 index 000000000000..c520e855cccd --- /dev/null +++ b/emulators/vba/files/patch-src_Cheats.cpp @@ -0,0 +1,21 @@ +--- src/Cheats.cpp.orig 2018-12-29 21:27:02 UTC ++++ src/Cheats.cpp +@@ -1344,12 +1344,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 + }; |