Files
ppsspp/Core/HLE/sceUmd.h
T
Henrik RydgårdandClaude Opus 5.5 61db5f9459 VSH: Insert UMD Video discs, and report what kind of disc is in the drive
A UMD Video image can now be inserted, and the drive's disc type (devctl
0x01F20001) comes from what's on the disc: PSP_GAME, UMD_VIDEO and UMD_AUDIO
each set their bit. With a video disc the XMB moves to the Video column,
shows the disc with its icon and background, and hands it to the firmware's
video player when selected. sceUmdGetDiscInfo still tells games they're on
a game disc.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 17:32:43 +02:00

52 lines
1.6 KiB
C++

// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#pragma once
#include "Common/File/Path.h"
class PointerWrap;
enum pspUmdState {
PSP_UMD_INIT = 0x00,
PSP_UMD_NOT_PRESENT = 0x01,
PSP_UMD_PRESENT = 0x02,
PSP_UMD_CHANGED = 0x04,
PSP_UMD_NOT_READY = 0x08,
PSP_UMD_READY = 0x10,
PSP_UMD_READABLE = 0x20,
};
enum pspUmdType {
PSP_UMD_TYPE_GAME = 0x10,
PSP_UMD_TYPE_VIDEO = 0x20,
PSP_UMD_TYPE_AUDIO = 0x40,
};
void __UmdInit();
void __UmdDoState(PointerWrap &p);
void __UmdReplace(const Path &filepath);
// A drive that can be empty: the XMB's, booted without a game. Insert fails if a disc is in.
bool __UmdInsert(const Path &filepath, std::string *error);
void __UmdEject();
bool __UmdIsInserted();
// What's on the disc in the drive (PSP_UMD_TYPE_* bits), or 0 for an empty drive.
u32 __UmdDiscType();
bool getUMDReplacePermit();
void Register_sceUmdUser();