Small fix

This commit is contained in:
Federico Cecchetto 2022-06-25 01:02:44 +02:00
parent 5b7cb9b642
commit 6336232fde
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,9 @@ if (game:issingleplayer()) then
return return
end end
if (Engine.InFrontend()) then
require("shaderdialog") require("shaderdialog")
end
-- defined in mp_hud/hudutils.lua -- defined in mp_hud/hudutils.lua
function GetGameModeName() function GetGameModeName()

View File

@ -1,4 +1,3 @@
local originaldialog = LUI.ShaderCacheDialog.new
LUI.MenuBuilder.registerPopupType("ShaderCacheDialog_original", LUI.ShaderCacheDialog.new) LUI.MenuBuilder.registerPopupType("ShaderCacheDialog_original", LUI.ShaderCacheDialog.new)
game:addlocalizedstring("PLATFORM_SHADER_PRECACHE_ASK", "Would you like to populate the shader cache? It may cause crashes with certain GPUs (e.g. RTX cards) but will improve performance if successful.") game:addlocalizedstring("PLATFORM_SHADER_PRECACHE_ASK", "Would you like to populate the shader cache? It may cause crashes with certain GPUs (e.g. RTX cards) but will improve performance if successful.")