libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
Functions
system.hpp File Reference

Dantelion2 system properties. More...

#include <detail/preprocessor.hpp>
#include <fd4/detail/singleton.hpp>

Go to the source code of this file.

Functions

LIBERAPI bool from::DLSY::wait_for_system (int timeout) noexcept
 Lock until main ELDEN RING system resources are initialized, or time runs out.
 
LIBERAPI bool from::DLSY::is_system_initialized () noexcept
 Check if ELDEN RING system resources are initialized.
 

Detailed Description

Dantelion2 system properties.

Copyright 2024 libER ELDEN RING API library

Function Documentation

◆ is_system_initialized()

LIBERAPI bool from::DLSY::is_system_initialized ( )
noexcept

Check if ELDEN RING system resources are initialized.

Does not lock (except for symbol retrieval), safe to call from any context.

Returns
true initialized
false not initialized

◆ wait_for_system()

LIBERAPI bool from::DLSY::wait_for_system ( int  timeout)
noexcept

Lock until main ELDEN RING system resources are initialized, or time runs out.

Initialization is performed by the game's main thread, post-entry. Returns true on success, false on timeout. Timeout can be -1 (indefinite wait).

Warning
POTENTIAL DEADLOCK
DO NOT call this function from a thread that the game's main thread may wait on.
DO NOT CALL THIS FUNCTION FROM DLLMAIN.
Parameters
timeouttime in ms before abandoning the wait
Returns
true wait succeeded
false wait timed out