Skip to content

Commit

Permalink
fix: File with game controller mappings not found
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Feb 2, 2022
1 parent 4a2c19c commit a164635
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/sdleventreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,7 @@ void SDLEventReader::haltServices()
void SDLEventReader::loadSdlMappingsFromDatabase()
{
QString database_file;
#if defined(Q_OS_UNIX)
database_file = QApplication::applicationDirPath().append("/../share/antimicrox/gamecontrollerdb.txt");
#elif defined(Q_OS_WIN)
database_file = QApplication::applicationDirPath().append("\\share\\antimicrox\\gamecontrollerdb.txt");
#endif
if (QFile::exists(database_file))
{
int result = SDL_GameControllerAddMappingsFromFile(database_file.toStdString().c_str());
Expand Down

0 comments on commit a164635

Please sign in to comment.