Lock down gamepack key so it's not included in repo. Release Build 7608.

This commit is contained in:
sigonasr2 2024-02-25 18:31:52 -06:00
parent 57bad057ed
commit ae26813f05
7 changed files with 13 additions and 4 deletions

View File

@ -678,6 +678,7 @@
<SubType> <SubType>
</SubType> </SubType>
</ClCompile> </ClCompile>
<ClCompile Include="packkey.cpp" />
<ClCompile Include="PauseMenu.cpp"> <ClCompile Include="PauseMenu.cpp">
<SubType> <SubType>
</SubType> </SubType>

View File

@ -818,6 +818,9 @@
<ClCompile Include="LoadingScreen.cpp"> <ClCompile Include="LoadingScreen.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="packkey.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="cpp.hint" /> <None Include="cpp.hint" />

View File

@ -82,6 +82,7 @@ INCLUDE_EMITTER_LIST
INCLUDE_ITEM_CATEGORIES INCLUDE_ITEM_CATEGORIES
INCLUDE_BACKDROP_DATA INCLUDE_BACKDROP_DATA
INCLUDE_MONSTER_DATA INCLUDE_MONSTER_DATA
INCLUDE_PACK_KEY
bool _DEBUG_MAP_LOAD_INFO = false; bool _DEBUG_MAP_LOAD_INFO = false;
//360x240 //360x240
@ -227,8 +228,7 @@ AiL::AiL()
} }
bool AiL::OnUserCreate(){ bool AiL::OnUserCreate(){
std::string packKey="129jvgndsaf7dsa8932hj"; gamepack.LoadPack("assets/"+"gamepack_file"_S,PACK_KEY);
gamepack.LoadPack("assets/"+"gamepack_file"_S,packKey);
GamePad::init(); GamePad::init();
@ -320,7 +320,7 @@ bool AiL::OnUserCreate(){
gameInitialized=true; gameInitialized=true;
if(!gamepack.Loaded()&&"GENERATE_GAMEPACK"_B){ if(!gamepack.Loaded()&&"GENERATE_GAMEPACK"_B){
gamepack.SavePack("assets/"+"gamepack_file"_S,packKey); gamepack.SavePack("assets/"+"gamepack_file"_S,PACK_KEY);
std::cout<<"Game Pack has been generated!"<<std::endl<<"========================"<<std::endl<<std::endl; std::cout<<"Game Pack has been generated!"<<std::endl<<"========================"<<std::endl<<std::endl;
} }

View File

@ -59,6 +59,8 @@ using BackdropName=std::string;
#define INCLUDE_WINDOW_SIZE extern vi2d WINDOW_SIZE; #define INCLUDE_WINDOW_SIZE extern vi2d WINDOW_SIZE;
#define INCLUDE_ITEM_CONVERSIONS extern safemap<std::string,IT>ITEM_CONVERSIONS; #define INCLUDE_ITEM_CONVERSIONS extern safemap<std::string,IT>ITEM_CONVERSIONS;
#define INCLUDE_PACK_KEY extern std::string PACK_KEY;
#define INCLUDE_BACKDROP_DATA extern std::map<BackdropName,Renderable>BACKDROP_DATA; #define INCLUDE_BACKDROP_DATA extern std::map<BackdropName,Renderable>BACKDROP_DATA;

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_PATCH 0 #define VERSION_PATCH 0
#define VERSION_BUILD 7603 #define VERSION_BUILD 7608
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

View File

@ -0,0 +1,3 @@
#include <string>
std::string PACK_KEY="INSERT_PACK_KEY_HERE";