2024-03-06 00:53:07 +04:00
|
|
|
#include "gx/CGVideoOptions.hpp"
|
|
|
|
|
#include "ui/FrameScript.hpp"
|
|
|
|
|
#include "util/Unimplemented.hpp"
|
|
|
|
|
|
|
|
|
|
int32_t Script_GetCurrentResolution(lua_State* L) {
|
|
|
|
|
WHOA_UNIMPLEMENTED(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32_t Script_GetScreenResolutions(lua_State* L) {
|
|
|
|
|
WHOA_UNIMPLEMENTED(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32_t Script_GetRefreshRates(lua_State* L) {
|
|
|
|
|
WHOA_UNIMPLEMENTED(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32_t Script_GetCurrentMultisampleFormat(lua_State* L) {
|
|
|
|
|
WHOA_UNIMPLEMENTED(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32_t Script_GetMultisampleFormats(lua_State* L) {
|
|
|
|
|
WHOA_UNIMPLEMENTED(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32_t Script_IsStereoVideoAvailable(lua_State* L) {
|
|
|
|
|
WHOA_UNIMPLEMENTED(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FrameScript_Method CGVideoOptions::s_ScriptFunctions[] = {
|
|
|
|
|
{ "GetCurrentResolution", &Script_GetCurrentResolution },
|
|
|
|
|
{ "GetScreenResolutions", &Script_GetScreenResolutions },
|
|
|
|
|
{ "GetRefreshRates", &Script_GetRefreshRates },
|
|
|
|
|
{ "GetCurrentMultisampleFormat", &Script_GetCurrentMultisampleFormat },
|
|
|
|
|
{ "GetMultisampleFormats", &Script_GetMultisampleFormats },
|
2024-03-05 16:24:33 -05:00
|
|
|
{ "IsStereoVideoAvailable", &Script_IsStereoVideoAvailable }
|
2024-03-06 00:53:07 +04:00
|
|
|
};
|
|
|
|
|
|
2024-03-05 16:24:33 -05:00
|
|
|
size_t CGVideoOptions::s_NumScriptFunctions = sizeof(CGVideoOptions::s_ScriptFunctions) / sizeof(FrameScript_Method);
|
|
|
|
|
|
2024-03-06 00:53:07 +04:00
|
|
|
void CGVideoOptions::RegisterScriptFunctions() {
|
2024-03-05 16:24:33 -05:00
|
|
|
for (int32_t i = 0; i < CGVideoOptions::s_NumScriptFunctions; i++) {
|
|
|
|
|
auto item = &s_ScriptFunctions[i];
|
2024-03-06 00:53:07 +04:00
|
|
|
FrameScript_RegisterFunction(item->name, item->method);
|
|
|
|
|
}
|
|
|
|
|
}
|