Fix steam icons from being loaded too early if the game starts up quickly. Release Build 8330.

This commit is contained in:
sigonasr2 2024-03-25 00:05:19 -05:00
parent 3194ade0d8
commit b9c89e5715
4 changed files with 3 additions and 2 deletions

View File

@ -326,7 +326,6 @@ bool AiL::OnUserCreate(){
if(SteamAPI_RestartAppIfNecessary(2895980U))return false; //Immediately quit if steam is detected and can be started through it.
if(Steam_Init()){
std::cout<<"Steam API Initialized successfully!"<<std::endl;
Input::LoadSteamButtonIcons();
}else{
std::cout<<"Steam API failed to initialize!"<<std::endl;
}
@ -3779,6 +3778,7 @@ bool AiL::Steam_Init(){
}
if(SteamInput()!=nullptr){
SteamInput()->Init(false);
Input::LoadSteamButtonIcons();
Input::ingameControlsHandle=SteamInput()->GetActionSetHandle("InGameControls");
}
return true;

View File

@ -668,6 +668,7 @@ void InputGroup::DrawPrimaryInput(const std::variant<AiL*const,TileTransformedVi
case CONTROLLER:{
if(SteamInput()){
primaryKey=GetPrimaryKey(STEAM);
type=STEAM;
}else{
primaryKey=GetPrimaryKey(CONTROLLER);
}

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 0
#define VERSION_MINOR 5
#define VERSION_PATCH 1
#define VERSION_BUILD 8324
#define VERSION_BUILD 8330
#define stringify(a) stringify_(a)
#define stringify_(a) #a