Various Aion system functions for dealing with registry keys, installation path ...
More...
Various Aion system functions for dealing with registry keys, installation path ...
#define RE_SYSTEM_OVR "^ *([a-zA-Z0-9_]+) *= *\"?([0-9]+)\"?" |
Pattern for matching system.ovr values
bool aion_chatlog_enable |
( |
void |
) | |
|
Enable the chatlog feature of the Aion game client
This function enables the chatlog feature of the Aion game client by writing "g_chatlog=1" in the system.ovr file. If system.ovr does not exist it is created, otherwise the string is appended at the end of the file.
- Return values
-
true | If chatlog was successfully enabled |
false | If an error occurred |
bool aion_chatlog_is_enabled |
( |
bool * |
isenabled) | |
|
Check if the chatlog feature of the Aion game client is enabled.
- Parameters
-
[out] | isenabled | True if the chatlog is enabled, false otherwise |
- Return values
-
true | On success (this doesn't mean that the chatlog is enabled) |
false | Error, unable to verify if the chatlog is enabled. |
char* aion_default_install_path |
( |
void |
) | |
|
Retrieve the Aion default installation path
If APME_AION_PATH is set, it is used as the default installation path for Aion. Otherwise the registry is scanned for known registry keys used by the game client.
- Returns
- Installation path or NULL on error.
bool aion_get_sysovr_path |
( |
char * |
sysovr_path, |
|
|
size_t |
sysovr_pathsz |
|
) |
| |
|
static |
Figure out the full path of the system.ovr file
- Parameters
-
[out] | sysovr_path | Character buffer pointing to the full system.ovr path |
[in] | sysovr_pathsz | Size of the buffer pointed to by sysovr_path |
- Return values
-
true | On success |
false | On error |
Initial value:=
{
{
"SOFTWARE\\Gameforge\\AION-LIVE",
"BaseDir",
},
{
"SOFTWARE\\AION Free-To-Play",
"Path",
},
{
"SOFTWARE\\NCsoft\\AionEU",
"InstallPath",
},
{
"SOFTWARE\\NCsoft\\Aion",
"InstallPath",
},
}
Aion install path registry keys
These point to various registry paths used by the Aion game client. APme uses hese ones to retrieve the installation folder where the chat log is located.