Epok Engine

EPOK RUNTIME

epok::MemoryCardLibrary::list

Method · 1 overload

Method

Performs `list` as part of the gameplay api module.

Belongs to
epok::MemoryCardLibrary
Header
gameplay_api.hpp
Overloads
1

Declaration

static
Declaration
static bool list(uint32_t port)

Performs `list` as part of the gameplay api module.

ParameterTypeMeaning
portuint32_tValue supplied for port. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "gameplay_api.hpp"

// Assume these named values have been initialized with valid data:
// uint32_t port

auto result = epok::MemoryCardLibrary::list(port);

Why use it

The boolean result makes success, availability or state explicit without exceptions. The API exposes the hardware service without hiding latency or bounded memory.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. Treat device absence, busy state and I/O failure as expected outcomes; do not block the frame loop waiting for hardware.

Declared in runtime/gameplay_api.hpp:327

Related members