View | Details | Raw Unified | Return to bug 234497
Collapse All | Expand All

(-)emulators/vba/Makefile (-2 / +1 lines)
Lines 12-19 Link Here
12
COMMENT=	Open source Gameboy Advance emulator
12
COMMENT=	Open source Gameboy Advance emulator
13
13
14
LICENSE=	GPLv2
14
LICENSE=	GPLv2
15
15
LICENSE_FILE=	${WRKSRC}/COPYING
16
BROKEN=		fails to build
17
16
18
BUILD_DEPENDS=	nasm:devel/nasm
17
BUILD_DEPENDS=	nasm:devel/nasm
19
LIB_DEPENDS=	libpng.so:graphics/png
18
LIB_DEPENDS=	libpng.so:graphics/png
(-)emulators/vba/files/patch-src_Cheats.cpp (+21 lines)
Added Link Here
1
--- src/Cheats.cpp.orig	2018-12-29 21:27:02 UTC
2
+++ src/Cheats.cpp
3
@@ -1344,12 +1344,12 @@ void cheatsAddCBACode(const char *code, const char *de
4
   sscanf(buffer, "%x", &value);
5
 
6
   u8 array[8] = {
7
-    address & 255,
8
-    (address >> 8) & 255,
9
-    (address >> 16) & 255,
10
-    (address >> 24) & 255,
11
-    (value & 255),
12
-    (value >> 8) & 255,
13
+    static_cast<u8>(address & 255),
14
+    static_cast<u8>((address >> 8) & 255),
15
+    static_cast<u8>((address >> 16) & 255),
16
+    static_cast<u8>((address >> 24) & 255),
17
+    static_cast<u8>((value & 255)),
18
+    static_cast<u8>((value >> 8) & 255),
19
     0,
20
     0
21
   };

Return to bug 234497