Skip to content

Commit

Permalink
games/SpaceCadetPinball: Use current directory not PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
neelchauhan committed Oct 14, 2021
1 parent c45b933 commit 8836ed4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions games/SpaceCadetPinball/Makefile
@@ -1,5 +1,6 @@
PORTNAME= SpaceCadetPinball
PORTVERSION= 1.1.1.20211010
PORTREVISION= 1
CATEGORIES= games

MAINTAINER= nc@FreeBSD.org
Expand Down
11 changes: 11 additions & 0 deletions 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));

0 comments on commit 8836ed4

Please sign in to comment.