Epok Engine

PSYQO SDK

psyqo::Kernel::isKernelTakenOver

Function · 1 overload

Function

Returns whether the kernel has been taken over.

Belongs to
psyqo::Kernel
Header
kernel.hh
Overloads
1

Declaration

Declaration
bool isKernelTakenOver()

Returns whether the kernel has been taken over.

This overload takes no parameters.

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

Example

C++ example
#include "psyqo/kernel.hh"

auto result = psyqo::Kernel::isKernelTakenOver();

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/kernel.hh:198

Related members