Add check to ensure steam is running before attempting to use the Steam API. Release Build 8221.

mac-build
sigonasr2 8 months ago
parent 2a98097336
commit ae6bab6176
  1. 10
      Adventures in Lestoria/AdventuresInLestoria.cpp
  2. 2
      Adventures in Lestoria/Version.h
  3. BIN
      x64/Release/Adventures in Lestoria.exe

@ -327,10 +327,12 @@ bool AiL::OnUserCreate(){
}else{
std::cout<<"Steam API failed to initialize!"<<std::endl;
}
SteamUtils()->SetWarningMessageHook([](int severity,const char*message){
std::cout<<std::format("STEAM[{}]: {}",severity,std::string(message))<<std::endl;
});
SteamInput()->Init(false);
if(SteamAPI_IsSteamRunning()){
SteamUtils()->SetWarningMessageHook([](int severity,const char*message){
std::cout<<std::format("STEAM[{}]: {}",severity,std::string(message))<<std::endl;
});
SteamInput()->Init(false);
}
#endif
gameInitialized=true;

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

Loading…
Cancel
Save