Browse Source

timedemo_test: SDL1.2 compat

pull/7583/head
Gleb Mazovetskiy 1 year ago committed by Anders Jenbo
parent
commit
cf759c208a
  1. 9
      test/timedemo_test.cpp

9
test/timedemo_test.cpp

@ -23,7 +23,14 @@ bool Dummy_GetHeroInfo(_uiheroinfo *pInfo)
void RunTimedemo(std::string timedemoFolderName) void RunTimedemo(std::string timedemoFolderName)
{ {
if (SDL_Init(SDL_INIT_EVENTS) <= -1) { if (SDL_Init(
#ifdef USE_SDL1
0
#else
SDL_INIT_EVENTS
#endif
)
<= -1) {
ErrSdl(); ErrSdl();
} }
std::string unitTestFolderCompletePath = paths::BasePath() + "/test/fixtures/timedemo/" + timedemoFolderName; std::string unitTestFolderCompletePath = paths::BasePath() + "/test/fixtures/timedemo/" + timedemoFolderName;

Loading…
Cancel
Save