Load sizes after detection is complete
This commit is contained in:
parent
e84cb98055
commit
75899f973b
2 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#include "ResourceManager.h"
|
||||
|
||||
#include "ProfileManager.h"
|
||||
|
||||
std::unique_ptr<ResourceManager> ResourceManager::instance;
|
||||
|
||||
|
|
@ -102,6 +102,8 @@ void ResourceManager::DetectDevicesThreadFunction()
|
|||
unsigned int prev_count = 0;
|
||||
float percent = 0.0f;
|
||||
|
||||
ProfileManager profile_manager(rgb_controllers);
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Start at 0% detection progress |
|
||||
\*-------------------------------------------------*/
|
||||
|
|
@ -158,4 +160,6 @@ void ResourceManager::DetectDevicesThreadFunction()
|
|||
|
||||
detection_percent = percent * 100.0f;
|
||||
}
|
||||
|
||||
profile_manager.LoadSizeFromProfile("sizes.ors");
|
||||
}
|
||||
|
|
|
|||
2
main.cpp
2
main.cpp
|
|
@ -157,8 +157,6 @@ int main(int argc, char* argv[])
|
|||
ResourceManager::get()->DetectDevices();
|
||||
}
|
||||
|
||||
profile_manager.LoadSizeFromProfile("sizes.ors");
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Process command line arguments |
|
||||
\*---------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue