mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-11 17:28:29 +12:00
Exzap says to use StringHelpers, and int instead of float
This commit is contained in:
parent
239c458a14
commit
5df72b4425
3 changed files with 7 additions and 6 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "Cafe/CafeSystem.h"
|
||||
|
||||
#include "util/helpers/helpers.h"
|
||||
#include "util/helpers/StringHelpers.h"
|
||||
|
||||
#include "config/ActiveSettings.h"
|
||||
#include "config/CemuConfig.h"
|
||||
|
@ -199,8 +200,8 @@ void VulkanRenderer::DetermineVendor()
|
|||
{
|
||||
forceLog_printf("Driver version: %s", driverProperties.driverInfo);
|
||||
|
||||
// needed for multithreaded pipelines on nvidia (requires 515.0 or higher)
|
||||
sscanf(driverProperties.driverInfo, "%f", &driverVersion);
|
||||
// needed for multithreaded pipelines on nvidia (requires 515 or higher)
|
||||
driverVersion = StringHelpers::ToInt(std::string(driverProperties.driverInfo));
|
||||
}
|
||||
|
||||
else
|
||||
|
@ -208,7 +209,7 @@ void VulkanRenderer::DetermineVendor()
|
|||
forceLog_printf("Driver version (as stored in device info): %08X", properties.properties.driverVersion);
|
||||
|
||||
// disables multithreaded pipeline loading on nvidia (requires 515.0 or higher)
|
||||
driverVersion = 0.0f;
|
||||
driverVersion = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue