[XBOXKRNL & XAM] - Video, Hal, And XConfig

- Properly implement HalGetCurrentAVPack, and XGetAudioFlags.
- Return proper flags for AV Component, AV Composite, and VGA from xconfig.
- Set to HD to proper value.
- Correct wrong widescreen flag.
This commit is contained in:
The-Little-Wolf
2025-03-29 16:42:07 -07:00
committed by Radosław Gliński
parent 86a25791d0
commit 4b24f128f6
5 changed files with 77 additions and 23 deletions

View File

@@ -13,6 +13,8 @@
#include "xenia/kernel/xboxkrnl/xboxkrnl_private.h"
#include "xenia/xbox.h"
DECLARE_int32(avpack);
namespace xe {
namespace kernel {
namespace xboxkrnl {
@@ -31,12 +33,8 @@ void HalReturnToFirmware_entry(dword_t routine) {
}
DECLARE_XBOXKRNL_EXPORT2(HalReturnToFirmware, kNone, kStub, kImportant);
// this seems to be able to return a number of different values in the range 0
// - 8. just returning four for now, because thats probably a better option than
// returning whatever was in r3 to begin with
dword_result_t HalGetCurrentAVPack_entry() { return 4; }
DECLARE_XBOXKRNL_EXPORT1(HalGetCurrentAVPack, kNone, kStub);
dword_result_t HalGetCurrentAVPack_entry() { return cvars::avpack; }
DECLARE_XBOXKRNL_EXPORT1(HalGetCurrentAVPack, kNone, kImplemented);
} // namespace xboxkrnl
} // namespace kernel