mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
expose a zip file password cmake config option
This commit is contained in:
parent
6fe51cd9c3
commit
a34aea55f7
3 changed files with 7 additions and 4 deletions
|
|
@ -36,8 +36,6 @@
|
||||||
/// @addtogroup zip_group Zip Code
|
/// @addtogroup zip_group Zip Code
|
||||||
// @{
|
// @{
|
||||||
|
|
||||||
/// Password to use when opening encrypted zip files. Change this to whatever the password is for your zips.
|
|
||||||
#define DEFAULT_ZIP_PASSWORD "changeme"
|
|
||||||
|
|
||||||
class ZipTestWrite;
|
class ZipTestWrite;
|
||||||
class ZipTestRead;
|
class ZipTestRead;
|
||||||
|
|
@ -235,7 +233,7 @@ class ZipTempStream;
|
||||||
/// exists and may be released as a resource in the future.
|
/// exists and may be released as a resource in the future.
|
||||||
///
|
///
|
||||||
/// To set the password used for zips, you need to modify the #DEFAULT_ZIP_PASSWORD
|
/// To set the password used for zips, you need to modify the #DEFAULT_ZIP_PASSWORD
|
||||||
/// define in core/zip/zipArchive.h. This password will be used for all zips that
|
/// define in torqueConfig.h. This password will be used for all zips that
|
||||||
/// require a password. The default password is changeme. This may be used by
|
/// require a password. The default password is changeme. This may be used by
|
||||||
/// TGB Binary users to test encrypted zips with their game. Shipping with the
|
/// TGB Binary users to test encrypted zips with their game. Shipping with the
|
||||||
/// default password is not recommended for obvious reasons.
|
/// default password is not recommended for obvious reasons.
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,8 @@ mark_as_advanced(TORQUE_BASIC_LIGHTING)
|
||||||
option(TORQUE_SFX_DirectX "DirectX Sound" OFF)
|
option(TORQUE_SFX_DirectX "DirectX Sound" OFF)
|
||||||
mark_as_advanced(TORQUE_SFX_DirectX)
|
mark_as_advanced(TORQUE_SFX_DirectX)
|
||||||
option(TORQUE_SFX_OPENAL "OpenAL Sound" ON)
|
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
|
#windows uses openal-soft
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
#disable a few things that are not required
|
#disable a few things that are not required
|
||||||
|
|
|
||||||
|
|
@ -205,3 +205,6 @@
|
||||||
#if defined(TORQUE_SDL)
|
#if defined(TORQUE_SDL)
|
||||||
#include <SDL.h>
|
#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@"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue