mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): implement Script_IsStereoVideoAvailable
This commit is contained in:
parent
3ebed78a98
commit
1eed077d0b
@ -1,6 +1,7 @@
|
|||||||
#include "ui/game/CGVideoOptionsScript.hpp"
|
#include "ui/game/CGVideoOptionsScript.hpp"
|
||||||
#include "console/CVar.hpp"
|
#include "console/CVar.hpp"
|
||||||
#include "console/Detect.hpp"
|
#include "console/Detect.hpp"
|
||||||
|
#include "gx/Gx.hpp"
|
||||||
#include "ui/Types.hpp"
|
#include "ui/Types.hpp"
|
||||||
#include "ui/game/CGVideoOptions.hpp"
|
#include "ui/game/CGVideoOptions.hpp"
|
||||||
#include "util/Lua.hpp"
|
#include "util/Lua.hpp"
|
||||||
@ -136,7 +137,13 @@ int32_t Script_SetTerrainMip(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_IsStereoVideoAvailable(lua_State* L) {
|
int32_t Script_IsStereoVideoAvailable(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
if (GxCaps().m_stereoAvailable) {
|
||||||
|
lua_pushnumber(L, 1.0);
|
||||||
|
} else {
|
||||||
|
lua_pushnil(L);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_IsPlayerResolutionAvailable(lua_State* L) {
|
int32_t Script_IsPlayerResolutionAvailable(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user