1 // Copyright (c) 2012- PPSSPP Project. 2 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. 6 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. 11 12 // A copy of the GPL 2.0 should have been included with the program. 13 // If not, see http://www.gnu.org/licenses/ 14 15 // Official git repository and contact information can be found at 16 // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. 17 18 #pragma once 19 20 #include "Common/File/Path.h" 21 22 enum pspUmdState { 23 PSP_UMD_INIT = 0x00, 24 PSP_UMD_NOT_PRESENT = 0x01, 25 PSP_UMD_PRESENT = 0x02, 26 PSP_UMD_CHANGED = 0x04, 27 PSP_UMD_NOT_READY = 0x08, 28 PSP_UMD_READY = 0x10, 29 PSP_UMD_READABLE = 0x20, 30 }; 31 32 enum pspUmdError { 33 PSP_ERROR_UMD_NOT_READY = 0x80210001, 34 PSP_ERROR_UMD_INVALID_PARAM = 0x80010016, 35 }; 36 37 enum pspUmdType { 38 PSP_UMD_TYPE_GAME = 0x10, 39 PSP_UMD_TYPE_VIDEO = 0x20, 40 PSP_UMD_TYPE_AUDIO = 0x40, 41 }; 42 43 void __UmdInit(); 44 void __UmdDoState(PointerWrap &p); 45 46 void __UmdReplace(Path filepath); 47 bool getUMDReplacePermit(); 48 49 void Register_sceUmdUser(); 50