Merge pull request #90 from gizmo98/patch-2
[libretro-ppsspp.git] / Core / HLE / sceUmd.h
blob1fdf4bbc2898f5b51401abe0d84eb78432151740
1 // Copyright (c) 2012- PPSSPP Project.
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, version 2.0 or later versions.
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 // GNU General Public License 2.0 for more details.
12 // A copy of the GPL 2.0 should have been included with the program.
13 // If not, see http://www.gnu.org/licenses/
15 // Official git repository and contact information can be found at
16 // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
18 #pragma once
20 enum pspUmdState {
21 PSP_UMD_INIT = 0x00,
22 PSP_UMD_NOT_PRESENT = 0x01,
23 PSP_UMD_PRESENT = 0x02,
24 PSP_UMD_CHANGED = 0x04,
25 PSP_UMD_NOT_READY = 0x08,
26 PSP_UMD_READY = 0x10,
27 PSP_UMD_READABLE = 0x20,
30 enum pspUmdError {
31 PSP_ERROR_UMD_NOT_READY = 0x80210001,
32 PSP_ERROR_UMD_INVALID_PARAM = 0x80010016,
35 enum pspUmdType {
36 PSP_UMD_TYPE_GAME = 0x10,
37 PSP_UMD_TYPE_VIDEO = 0x20,
38 PSP_UMD_TYPE_AUDIO = 0x40,
41 void __UmdInit();
42 void __UmdDoState(PointerWrap &p);
44 void __UmdReplace(std::string filepath);
45 bool getUMDReplacePermit();
47 void Register_sceUmdUser();