1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

emulators/vba: Mark Un'BROKEN

While here, set LICENSE_FILE.

PR:		234497
Reviewed by:	koobs, mat
Approved by:	mat (mentor)
Approved by:	portmgr (blanket: build/run fixes, ports compliance)
Differential Revision:	https://reviews.freebsd.org/D18687
This commit is contained in:
Mateusz Piotrowski 2019-01-07 09:02:21 +00:00
parent e7bf1ff75c
commit 4efac98070
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=489566
2 changed files with 22 additions and 2 deletions

View File

@ -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

View File

@ -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
};