Exzap says to use StringHelpers, and int instead of float

This commit is contained in:
Niko 2022-08-27 14:49:29 -04:00
parent 239c458a14
commit 5df72b4425
3 changed files with 7 additions and 6 deletions

View file

@ -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;
}
}