From d99a59a28a20e7679148e0b7824c43ff093b484c Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Mon, 11 Jun 2018 17:37:31 +0200 Subject: [PATCH] Compile fix --- src/scripting/systemcapabilitiesbinding.cpp | 46 ++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/scripting/systemcapabilitiesbinding.cpp b/src/scripting/systemcapabilitiesbinding.cpp index a1fb38f000..fa3ab52f8b 100644 --- a/src/scripting/systemcapabilitiesbinding.cpp +++ b/src/scripting/systemcapabilitiesbinding.cpp @@ -36,41 +36,41 @@ using namespace ghoul::systemcapabilities; namespace luascripting::general { -int os(lua_State* L) { +int operatingSystem(lua_State* L) { using OS = ghoul::systemcapabilities::GeneralCapabilitiesComponent::OperatingSystem; OS os = CpuCap.operatingSystem(); switch (os) { case OS::Windows10: - case WindowsServer2016, - case WindowsVista: - case WindowsServer2008: - case Windows7: - case WindowsServer2008R2: - case Windows8: - case WindowsServer2012: - case Windows81: - case WindowsServer2012R2: - case WindowsServer2003R2: - case WindowsStorageServer2003: - case WindowsXPProfx64: - case WindowsServer2003: - case WindowsXPHome: - case WindowsXPProf: - case Windows2000Prof: - case Windows2000DatacenterServer: - case Windows2000AdvancedServer: - case Windows2000Server: + case OS::WindowsServer2016: + case OS::WindowsVista: + case OS::WindowsServer2008: + case OS::Windows7: + case OS::WindowsServer2008R2: + case OS::Windows8: + case OS::WindowsServer2012: + case OS::Windows81: + case OS::WindowsServer2012R2: + case OS::WindowsServer2003R2: + case OS::WindowsStorageServer2003: + case OS::WindowsXPProfx64: + case OS::WindowsServer2003: + case OS::WindowsXPHome: + case OS::WindowsXPProf: + case OS::Windows2000Prof: + case OS::Windows2000DatacenterServer: + case OS::Windows2000AdvancedServer: + case OS::Windows2000Server: ghoul::lua::push(L, "windows"); break; - case Linux: + case OS::Linux: ghoul::lua::push(L, "linux"); break; - case MacOS: + case OS::MacOS: ghoul::lua::push(L, "macos"); break; default: - ghoul::lua::push("other"); + ghoul::lua::push(L, "other"); break; }