libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
Typedefs | Functions
version.hpp File Reference

Game version introspection. More...

#include <cstddef>
#include <cstdint>
#include <string>

Go to the source code of this file.

Typedefs

using liber::uversion = uint64_t
 unsigned 64 bit integer representing a version.
 

Functions

uversion liber::get_version () noexcept
 Get the program version of the current process.
 
const std::string & liber::get_version_string () noexcept
 Get the program version of the current process.
 
bool liber::match_version () noexcept
 Check if the program version of the current process matches LIBER_TARGET_VERSION.
 
std::string liber::load_versioned_csv () noexcept
 Load the symbol .csv for the current ELDEN RING version.
 

Detailed Description

Game version introspection.

Copyright 2024 libER ELDEN RING API library

Typedef Documentation

◆ uversion

using liber::uversion = typedef uint64_t

unsigned 64 bit integer representing a version.

A 4-part version number (every part is 16 bits) is concatenated into a single 64-bit result.

Function Documentation

◆ get_version()

uversion liber::get_version ( )
noexcept

Get the program version of the current process.

The value is cached, only one attempt at retrieving the version is made; subsequent calls to the function return the same value

If the call fails, the value is LIBER_INVALID_GAME_VERSION.

Returns
uversion a 64-bit concatenated result of 4 16-bit fields

◆ get_version_string()

const std::string & liber::get_version_string ( )
noexcept

Get the program version of the current process.

Returns
const std::string& a formatted version string

◆ load_versioned_csv()

std::string liber::load_versioned_csv ( )
noexcept

Load the symbol .csv for the current ELDEN RING version.

Note
Internal method.
Returns
std::string the .csv contents as a string

◆ match_version()

bool liber::match_version ( )
noexcept

Check if the program version of the current process matches LIBER_TARGET_VERSION.

Returns
true
false