PSYQO SDK
psyqo::MemoryCardFileSystem
Class
Class
A Sony-compatible memory card filesystem.
Basic usage
This minimal snippet shows the normal syntax for reaching the type. Open a member below for an operation-specific example.
C++ example
#include "psyqo/memory-card-filesystem.hh"
// Assume these named values have been initialized with valid data:
// MemoryCard & card
psyqo::MemoryCardFileSystem value(card);Nested types
ErrorType alias declared by the memory-card-filesystem module for asynchronous Memory Card access and files.Type aliasFileEntryA directory listing entry.StructFileInfoA file's on-card metadata: its title and icon.StructIconA save icon, in the native PlayStation format.StructPortType alias declared by the memory-card-filesystem module for asynchronous Memory Card access and files.Type aliasConstructors
Public methods
deleteFileDeletes a file, freeing all of its blocks.MethoddeleteFileBlockingPerforms `delete file blocking` as part of asynchronous Memory Card access and files.MethodfileExistsReports whether a named file exists, into *outExists.MethodfileExistsBlockingPerforms `file exists blocking` as part of asynchronous Memory Card access and files.MethodformatWrites a fresh, empty Sony filesystem to the card.MethodformatBlockingPerforms `format blocking` as part of asynchronous Memory Card access and files.MethodgetCardStateDetermines whether a usable, formatted card is present.MethodgetCardStateBlocking-- Blocking variants -------------------------------------------------- These run the same transaction but pump the GPU until it finishes and return the error directly.MethodgetFreeBlockCountCounts the free 8KiB blocks (0..15) into *outFreeBlocks.MethodgetFreeBlockCountBlockingReturns free block count blocking as part of asynchronous Memory Card access and files.MethodisIdleWhether the filesystem is ready to accept a new operation.MethodlistFilesLists the files on the card.MethodlistFilesBlockingPerforms `list files blocking` as part of asynchronous Memory Card access and files.MethodreadFileReads the payload of a file.MethodreadFileBlockingReads file blocking as part of asynchronous Memory Card access and files.MethodreadFileInfoReads a file's title and icon.MethodreadFileInfoBlockingReads file info blocking as part of asynchronous Memory Card access and files.MethodwriteFileCreates or overwrites a file.MethodwriteFileBlockingWrites file blocking as part of asynchronous Memory Card access and files.Method