git: 8836ed4d8ccb - main - games/SpaceCadetPinball: Use current directory not PREFIX

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Thu, 14 Oct 2021 18:29:51 UTC
The branch main has been updated by nc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8836ed4d8ccbe9d12abec32d0a8062835bbd55c4

commit 8836ed4d8ccbe9d12abec32d0a8062835bbd55c4
Author:     Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2021-10-14 18:29:38 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2021-10-14 18:29:46 +0000

    games/SpaceCadetPinball: Use current directory not PREFIX
---
 games/SpaceCadetPinball/Makefile                              |  1 +
 .../files/patch-SpaceCadetPinball_winmain.cpp                 | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/games/SpaceCadetPinball/Makefile b/games/SpaceCadetPinball/Makefile
index 2ca3b0dfefd8..c48fed37a377 100644
--- a/games/SpaceCadetPinball/Makefile
+++ b/games/SpaceCadetPinball/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	SpaceCadetPinball
 PORTVERSION=	1.1.1.20211010
+PORTREVISION=	1
 CATEGORIES=	games
 
 MAINTAINER=	nc@FreeBSD.org
diff --git a/games/SpaceCadetPinball/files/patch-SpaceCadetPinball_winmain.cpp b/games/SpaceCadetPinball/files/patch-SpaceCadetPinball_winmain.cpp
new file mode 100644
index 000000000000..9784ec56667e
--- /dev/null
+++ b/games/SpaceCadetPinball/files/patch-SpaceCadetPinball_winmain.cpp
@@ -0,0 +1,11 @@
+--- SpaceCadetPinball/winmain.cpp.orig	2021-10-14 18:28:42 UTC
++++ SpaceCadetPinball/winmain.cpp
+@@ -56,7 +56,7 @@ int winmain::WinMain(LPCSTR lpCmdLine)
+ 		SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Could not initialize SDL2", SDL_GetError(), nullptr);
+ 		return 1;
+ 	}
+-	BasePath = SDL_GetBasePath();
++	BasePath = SDL_strdup("./");
+ 
+ 	pinball::quickFlag = strstr(lpCmdLine, "-quick") != nullptr;
+ 	DatFileName = options::get_string("Pinball Data", pinball::get_rc_string(168, 0));