-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow setting game directory from CLI; add -v flag
- Use the directory the binary is in as the default path, so you can use "./games/fallout/fallout-ce" without having to cd to that directory. - Also allow setting the game directory from argv. - Add -v option for verbose information; this was protected by a _DEBUG preprocessor flag, and not having to recompile is helpful. - Output GNWSystemError() to stderr as well. For whatever reason I don't get any popup window (not sure why), so the game would simply exit without any information. It doesn't hurt to print it anyway. - Add -h flag to document all of this. Note: I only tested this on my Linux system, as that's the only machine I have access to. In particular, I'm not entirely sure if my usage of PathRemoveFileSpecA() is correct, but I have no way to test it. Also clarify which values are read from f1_res.ini, as per my reading of src/plib/gnw/svga.cc (Fixes #84).
- Loading branch information
Showing
7 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,6 +281,7 @@ endif() | |
if(WIN32) | ||
target_link_libraries(${EXECUTABLE_NAME} | ||
winmm | ||
Shlwapi | ||
) | ||
endif() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters