SHA256
Localize FFmpeg Download And Driver Warning Dialogs
This commit is contained in:
1 parent
c56175bbc8
commit
abb6f729e4
4 files changed
+69
-23
No files matched your search
@@ -1,3 +1,4 @@
|
||||
using ADOFAIRenderer.Localization;
|
||||
using ADOFAIRenderer.UI;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -45,18 +46,18 @@ internal class FirstUpdateHook : MonoBehaviour
|
||||
var currentVersion = driverVer.Value.ToString("F2");
|
||||
|
||||
CommonWarningDialogUI.ShowDialog(
|
||||
"NVIDIA Graphics Driver Update Recommended",
|
||||
$"Currently detected NVIDIA graphics driver version: <b><color=#ff5555>{currentVersion}</color></b>\n\nDriver version <b><color=#55ff55>610.00 or higher</color></b> is required to render video using hardware acceleration (NVENC).\n\nIf the driver version is lower, encoding may fail or fallback to software (CPU) encoding, significantly slowing down rendering. Please update your graphics driver.",
|
||||
new DialogButton("Update Driver", () =>
|
||||
LocalizationManager.Get("ui.driver_warning.title"),
|
||||
LocalizationManager.Get("ui.driver_warning.body", currentVersion),
|
||||
new DialogButton(LocalizationManager.Get("ui.driver_warning.btn_update"), () =>
|
||||
{
|
||||
Application.OpenURL("https://www.nvidia.com/Download/index.aspx");
|
||||
Application.Quit();
|
||||
}, new Color(0.0f, 0.8f, 1.0f, 1.0f)),
|
||||
new DialogButton("Disable Feature", () =>
|
||||
new DialogButton(LocalizationManager.Get("ui.driver_warning.btn_disable"), () =>
|
||||
{
|
||||
RenderMod.IsFeatureDisabled = true;
|
||||
}),
|
||||
new DialogButton("Continue Anyway", () =>
|
||||
new DialogButton(LocalizationManager.Get("ui.driver_warning.btn_continue"), () =>
|
||||
{
|
||||
// ignored
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user