mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
Buildfix
This commit is contained in:
1 parent
89e031fb8a
commit
af8d14c546
3 files changed
+4
-4
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user