[Kernel] AVPack cvar

idk what teh hell im doing 😹
This commit is contained in:
illusion98 2019-10-26 02:25:34 -05:00 committed by illusion
parent 9e2df79990
commit 109f47b52d
1 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,7 @@
*/ */
#include "xenia/base/logging.h" #include "xenia/base/logging.h"
#include "xenia/base/cvar.h"
#include "xenia/kernel/kernel_state.h" #include "xenia/kernel/kernel_state.h"
#include "xenia/kernel/user_module.h" #include "xenia/kernel/user_module.h"
#include "xenia/kernel/util/shim_utils.h" #include "xenia/kernel/util/shim_utils.h"
@ -21,6 +22,8 @@
#include "xenia/base/platform_win.h" #include "xenia/base/platform_win.h"
#endif #endif
DEFINE_int32(avpack, 8, "Video modes", "Video");
namespace xe { namespace xe {
namespace kernel { namespace kernel {
namespace xam { namespace xam {
@ -195,12 +198,13 @@ void XCustomRegisterDynamicActions() {
DECLARE_XAM_EXPORT1(XCustomRegisterDynamicActions, kNone, kStub); DECLARE_XAM_EXPORT1(XCustomRegisterDynamicActions, kNone, kStub);
dword_result_t XGetAVPack() { dword_result_t XGetAVPack() {
// Value from https://github.com/Free60Project/libxenon/blob/920146f32a4564006863bbcf6599c1f75ef4be83/libxenon/drivers/xenos/xenos_videomodes.h
// DWORD // DWORD
// Not sure what the values are for this, but 6 is VGA. // Not sure what the values are for this, but 6 is VGA.
// Other likely values are 3/4/8 for HDMI or something. // Other likely values are 3/4/8 for HDMI or something.
// Games seem to use this as a PAL check - if the result is not 3/4/6/8 // Games seem to use this as a PAL check - if the result is not 3/4/6/8
// they explode with errors if not in PAL mode. // they explode with errors if not in PAL mode.
return 6; return (cvars::avpack);
} }
DECLARE_XAM_EXPORT1(XGetAVPack, kNone, kStub); DECLARE_XAM_EXPORT1(XGetAVPack, kNone, kStub);