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