Add logging to the nvapi try-catch.

This commit is contained in:
MutantAura 2024-04-11 17:45:37 +01:00
parent c1c8aaee0f
commit 1c4f8b8175

View file

@ -1,3 +1,4 @@
using Ryujinx.Common.Logging;
using System;
namespace Ryujinx.Common.GraphicsDriver
@ -15,7 +16,7 @@ namespace Ryujinx.Common.GraphicsDriver
}
catch
{
// NVAPI is not available, or couldn't change the application profile.
Logger.Warning?.Print(LogClass.Application, "Failed to set threaded optimizations. NVAPI may be unavailable.");
}
}
@ -27,7 +28,7 @@ namespace Ryujinx.Common.GraphicsDriver
}
catch
{
// NVAPI is not available, or couldn't change the application profile.
Logger.Warning?.Print(LogClass.Application, "Failed to set Vulkan/OpenGL present method. NVAPI may be unavailable.");
}
}
}