Merge pull request #489 from Azaezel/alpha40/zipPassPunt

expose a zip file password cmake config option
This commit is contained in:
Areloch 2021-07-17 11:03:26 -05:00 committed by GitHub
commit 83b0432283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -57,6 +57,8 @@ mark_as_advanced(TORQUE_BASIC_LIGHTING)
option(TORQUE_SFX_DirectX "DirectX Sound" OFF)
mark_as_advanced(TORQUE_SFX_DirectX)
option(TORQUE_SFX_OPENAL "OpenAL Sound" ON)
mark_as_advanced(TORQUE_APP_PASSWORD)
set(TORQUE_APP_PASSWORD "changeme" CACHE STRING "zip file password")
#windows uses openal-soft
if(WIN32)
#disable a few things that are not required

View file

@ -216,4 +216,7 @@
//use sdl backend?
#if defined(TORQUE_SDL)
#include <SDL.h>
#endif
#endif
/// Password to use when opening encrypted zip files. Change this to whatever the password is for your zips.
#define DEFAULT_ZIP_PASSWORD "@TORQUE_APP_PASSWORD@"