summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
diff options
context:
space:
mode:
authorMichael M <mchtly@gmail.com>2017-08-19 15:47:19 -0700
committerMichael M <mchtly@gmail.com>2017-08-19 15:59:40 -0700
commit7d9ad88bc5f43c224e28ec67522ba0bac6d0d3c6 (patch)
tree78c862dae43a72d89384b18be86e2ecdb3fd8a73 /Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
parent8d7f28e79b12cde5c467d79c9e752d64da8992b7 (diff)
Add initial paths to GameTracker after construction
It's strange to see GameTracker add its own initial paths in construction, because you might expect a race condition where the GameLoaded signal is emitted before it gets connected to in GameListModel. In fact, this doesn't happen, but only because of how it abuses the Qt signals mechanism to load files asynchronously: GameLoader emits a GameLoaded signal which gets forwarded to the GameTracker::GameLoaded signal _after_ control returns to the event loop, at which point GameListModel has connected. This commit moves the logic of adding initial paths out of GameTracker to a point after the signals are connected, which is more obvious and doesn't rely on how GameTracker implements concurrency.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.cpp')
0 files changed, 0 insertions, 0 deletions