If user_settings.sharepath is configured to be blank in SConstruct, omit the C preprocessor macro SHAREPATH instead of defining it to expand to an empty string. Adjust the C++ code that uses the macro SHAREPATH to handle its absence: - Clearer output in help text - Skip adding blank SHAREPATH to the PhysFS search path. As a nice side effect, this enables SHAREPATH on Windows, which could be helpful for builds shipped with an installer that places game files in a well-known location (such as "C:\Games\Descent"). Previously, !defined(__unix__) systems did not add SHAREPATH to the PhysFS search path, even when one was defined. |
||
---|---|---|
.. | ||
args.cpp | ||
physfsx.cpp |