Skip to content

Utils (PDI Standard)

Nenkai edited this page Jul 14, 2024 · 2 revisions

< Reference Module >

Get Player Name (Console)

var player_name = pdistd::getPlayerName();

Get Command Line Arguments

var args = pdistd::GetArgs();

Get Game Boot Attributes

var flags = pdistd::GetGameBootAttribute();
if (flags & pdistd::GameBootAttribute::...)
{
    // ...
}

Get File System Version

var version = pdistd::GetFileSystemVersion(); // Always returns 0 for fsroot

Delay Thread

pdistd::DelayThread(ms);

Crash/Exit

pdistd::Crash(message);
pdistd::Exit(exit_code);

Base64 Decode/Encode

var encoded = pdistd::EncodeBase64(data);
var decoded = pdistd::DecodeBase64(encoded);