[XboxKrnl/xconfig.cc] - Fixes and logging changes

- Adding more information in logs for easier debugging
- XamSetDashContext correction
- XCONFIG_USER_VIDEO_FLAGS reports widescreen when set in config by user
- XCONFIG_SECURED_AV_REGION reports proper values when set in config by user
- Added missing \n
This commit is contained in:
The-Little-Wolf
2025-01-02 15:49:18 -08:00
committed by Radosław Gliński
parent bb20ada9bf
commit b5d319834e
5 changed files with 38 additions and 12 deletions

View File

@@ -170,7 +170,8 @@ void UserProfile::LoadSetting(UserSetting* setting) {
} else {
// Unsupported for now. Other settings aren't per-game and need to be
// stored some other way.
XELOGW("Attempting to load unsupported profile setting from disk");
XELOGW("Attempting to load unsupported profile setting 0x{:08X} from disk",
setting->GetSettingId());
}
}
@@ -204,7 +205,8 @@ void UserProfile::SaveSetting(UserSetting* setting) {
} else {
// Unsupported for now. Other settings aren't per-game and need to be
// stored some other way.
XELOGW("Attempting to save unsupported profile setting to disk");
XELOGW("Attempting to save unsupported profile setting 0x{:08X} from disk",
setting->GetSettingId());
}
}

View File

@@ -1255,6 +1255,8 @@ DECLARE_XAM_EXPORT1(XamShowCommunitySessionsUI, kNone, kStub);
dword_result_t XamSetDashContext_entry(dword_t value,
const ppc_context_t& ctx) {
ctx->kernel_state->dash_context_ = value;
kernel_state()->BroadcastNotification(
kXNotificationDvdDriveUnknownDashContext, 0);
return 0;
}