ppsspp/Core/HW/MemoryStick.h
Unknown W. Brackets 2958c575a1 Check actual free disk space when games ask.
Windows only for the moment.
2014-11-01 00:33:19 -07:00

30 lines
682 B
C++

#pragma once
#include "Common/CommonTypes.h"
class PointerWrap;
// mscmhc0 states
enum MemStickState {
PSP_MEMORYSTICK_STATE_DRIVER_READY = 1,
PSP_MEMORYSTICK_STATE_DRIVER_BUSY = 2,
PSP_MEMORYSTICK_STATE_DEVICE_INSERTED = 4,
PSP_MEMORYSTICK_STATE_DEVICE_REMOVED = 8,
};
// memstick FAT states.
enum MemStickFatState {
PSP_FAT_MEMORYSTICK_STATE_UNASSIGNED = 0,
PSP_FAT_MEMORYSTICK_STATE_ASSIGNED = 1,
};
void MemoryStick_Init();
void MemoryStick_DoState(PointerWrap &p);
MemStickState MemoryStick_State();
MemStickFatState MemoryStick_FatState();
void MemoryStick_SetFatState(MemStickFatState state);
u64 MemoryStick_SectorSize();
u64 MemoryStick_FreeSpace();