mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 12:59:07 -06:00
Compile fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user