This commit is contained in:
Henrik Rydgård committed 2025-03-08 23:56:01 +01:00
1 parent 89e031fb8a
commit af8d14c546
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
#include "Common/CommonTypes.h"
enum : u32 {
enum PSPErrorCode : u32 {
SCE_KERNEL_ERROR_OK = 0,
SCE_KERNEL_ERROR_ALREADY = 0x80000020,
SCE_KERNEL_ERROR_BUSY = 0x80000021,
+1 -1
View File
@@ -1349,7 +1349,7 @@ int sceKernelGetThreadExitStatus(SceUID threadID) {
hleEatCycles(330);
// Some return values don't deserve to be considered errors for logging.
switch (status) {
switch ((PSPErrorCode)status) {
case SCE_KERNEL_ERROR_NOT_DORMANT:
return hleLogDebug(Log::sceKernel, status);
default:
+2 -2
View File
@@ -996,12 +996,12 @@ void DrawAudioDecodersView(ImConfig &cfg, ImControl &control) {
if (cfg.selectedAtracCtx >= 0 && cfg.selectedAtracCtx < PSP_NUM_ATRAC_IDS) {
u32 type = 0;
const AtracCtx *ctx = __AtracGetCtx(cfg.selectedAtracCtx, &type);
const AtracBase *ctx = __AtracGetCtx(cfg.selectedAtracCtx, &type);
// Show details about the selected atrac context here.
char header[32];
snprintf(header, sizeof(header), "Atrac context %d", cfg.selectedAtracCtx);
if (ctx && ImGui::CollapsingHeader(header, ImGuiTreeNodeFlags_DefaultOpen)) {
ImGui::ProgressBar((float)ctx->CurrentSample() / ctx->GetTrack().endSample, ImVec2(200.0f, 0.0f));
ImGui::ProgressBar((float)ctx->CurrentSample() / (float)ctx->GetTrack().endSample, ImVec2(200.0f, 0.0f));
ImGui::Text("Status: %s", AtracStatusToString(ctx->BufferState()));
ImGui::Text("cur/end sample: %d/%d", ctx->CurrentSample(), ctx->GetTrack().endSample);
ImGui::Text("ctx addr: "); ImGui::SameLine(); ImClickableValue("addr", ctx->Decoder()->GetCtxPtr(), control, ImCmd::SHOW_IN_MEMORY_VIEWER);