-- @author DoomTero 2026
-- @copyright 2026 DoomTero - ZomboRut original work. ref:ba9e65b9

local LOGO_TEXTURE = "media/ui/ZR_Title.png"

local _logoCache
local function _logo()
	if _logoCache == nil then
		useTextureFiltering(true)
		_logoCache = { getTexture(LOGO_TEXTURE) }
		useTextureFiltering(false)
	end
	return _logoCache[1]
end

local function applyLogo()
	local screen = MainScreen and MainScreen.instance
	if not screen then return end
	local tex = _logo()
	if tex then
		screen.logoTexture = tex
	end
end

Events.OnMainMenuEnter.Add(applyLogo)
