mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-11 15:44:15 +00:00
31 lines
556 B
C++
31 lines
556 B
C++
#include "MemoryStick.h"
|
|
|
|
// MS and FatMS states.
|
|
static MemStickState memStickState = PSP_MEMORYSTICK_STATE_DRIVER_READY;
|
|
static MemStickFatState memStickFatState = PSP_FAT_MEMORYSTICK_STATE_ASSIGNED;
|
|
|
|
MemStickState MemoryStick_State()
|
|
{
|
|
return memStickState;
|
|
}
|
|
|
|
MemStickFatState MemoryStick_FatState()
|
|
{
|
|
return memStickFatState;
|
|
}
|
|
|
|
u64 MemoryStick_SectorSize()
|
|
{
|
|
return 32 * 1024; // 32KB
|
|
}
|
|
|
|
u64 MemoryStick_FreeSpace()
|
|
{
|
|
return 1ULL * 1024 * 1024 * 1024; // 1GB
|
|
}
|
|
|
|
void MemoryStick_SetFatState(MemStickFatState state)
|
|
{
|
|
memStickFatState = state;
|
|
}
|