Unify love.system.getOS and love._os implementations.

This commit is contained in:
Sasha Szpakowski
2022-11-26 20:54:46 -04:00
parent 6599697835
commit 2598a51316
4 changed files with 10 additions and 15 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ System::System()
{
}
std::string System::getOS() const
const char *System::getOS()
{
#if defined(LOVE_MACOS)
return "OS X";
+1 -1
View File
@@ -57,7 +57,7 @@ public:
/**
* Gets the current operating system.
**/
std::string getOS() const;
static const char *getOS();
/**
* Gets the number of reported CPU cores on the current system.
+1 -1
View File
@@ -31,7 +31,7 @@ namespace system
int w_getOS(lua_State *L)
{
luax_pushstring(L, instance()->getOS());
luax_pushstring(L, System::getOS());
return 1;
}