Epok Engine

PSYQO SDK

psyqo::MemoryCardFileSystem

Class

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Class

A Sony-compatible memory card filesystem.

Namespace
psyqo
Header
memory-card-filesystem.hh
Include
#include "psyqo/memory-card-filesystem.hh"
Module
memory-card-filesystem
Source
https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/memory-card-filesystem.hh:72

Basic usage

This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. 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

Constructors

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