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.
EPOK RUNTIME
Method · 1 overload
Reads read as part of the gameplay api module.
static bool read(uint32_t slot,uint32_t port)Reads read as part of the gameplay api module.
| Parameter | Type | Meaning |
|---|---|---|
slot | uint32_t | Value supplied for slot. Keep referenced or pointed-to data valid for the complete call. |
port | uint32_t | Value 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.
#include "gameplay_api.hpp"
// Assume these named values have been initialized with valid data:
// uint32_t slot
// uint32_t port
auto result = epok::MemoryCardLibrary::read(slot, port);The boolean result makes success, availability or state explicit without exceptions. The API exposes the hardware service without hiding latency or bounded memory.
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:328
clear_staged_payloadClears staged payload as part of the gameplay api module.MethodfilePerforms `file` as part of the gameplay api module.MethodlistPerforms `list` as part of the gameplay api module.Methodloaded_wordLoads ed word as part of the gameplay api module.MethodpayloadPerforms `payload` as part of the gameplay api module.MethodprobePerforms `probe` as part of the gameplay api module.Methodset_staged_wordSets staged word as part of the gameplay api module.MethodsnapshotPerforms `snapshot` as part of the gameplay api module.Methodstaged_wordPerforms `staged word` as part of the gameplay api module.MethodwriteWrites write as part of the gameplay api module.Methodwrite_stagedWrites staged as part of the gameplay api module.Method