
This commit includes the following changes: - Updates the build environment in the GitHub Actions workflow to use `ubuntu-latest` instead of `ubuntu-22.04`. - Adds `playerGroup2Server` to the XEH_PREP.hpp file. - Updates the picture path in CfgMods.hpp to include the file extension.
32 lines
708 B
Plaintext
32 lines
708 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* Function: forge_server_db_fnc_loadFromProfile
|
|
* Author: J. Schmidt
|
|
*
|
|
* Description:
|
|
* Loads data from profile namespace
|
|
*
|
|
* Arguments:
|
|
* 0: _name - Store name <STRING>
|
|
* 1: _key - Key to retrieve (Optional, get entire collection if empty) <STRING>
|
|
* 2: _default - Default value if key not found <ANY>
|
|
*
|
|
* Return Value:
|
|
* Retrieved data or default value
|
|
*/
|
|
|
|
params [
|
|
["_name", "", [""]],
|
|
["_key", "", [""]],
|
|
["_default", nil]
|
|
];
|
|
|
|
private _database = call FUNC(verifyDB);
|
|
private _store = _database call ["getStore", [_name]];
|
|
|
|
if (isNil "_store") exitWith {
|
|
_default
|
|
};
|
|
|
|
[_name, _key, _default, profileNamespace] call FUNC(getFromStore); |