Skip to content

Platform

APHONIC edited this page Sep 15, 2026 · 2 revisions

Platform

Platform.lua: platform and PC storefront detection.

LibAPH.GetPlatformString()

Returns "PC", "Xbox", "PlayStation 4", "PlayStation 5", or nil for anything unrecognized.

label:SetText("Running on " .. (LibAPH.GetPlatformString() or "unknown platform"))

LibAPH.GetPlatformServiceName()

PC only: returns "Steam", "Epic", "ZOS", or "DMM". Returns nil on console and for an unrecognized service.

local platform = LibAPH.GetPlatformString()
local service = LibAPH.GetPlatformServiceName()
d(service and (platform .. " (" .. service .. ")") or platform)
-- "PC (Steam)" or "Xbox"

Note

ESO addons has no OS-level access.


Home · Getting Started

Clone this wiki locally