OpenAccountDataFile
function · net · host
- Address
0x5af6b0· 343 bytes, up to0x5af806- Signature
void * __fastcall (bool accountWide, const char *fileName, bool write)- Meaning
- Opens a file under WTF\Account\<account> or <account>\<realm>\<character> for reading, or creates it for writing
- Confidence
- verified, proof one
- Finding
- net/accountdata#section-files
Finding: Section files in net: account data
0x5af6b0(scope, name, write) opens a section file and returns its handle, or -1. It needs the account name (0xc27d08); an account-wide path is WTF\Account\<account>\<name> and a per-character path is WTF\Account\<account>\<realm>\<character>\<name>, with the realm from the realmName CVar and the character the selected one. A write first creates the directory when it is missing, and opens with creation 2 (create or truncate); a read opens with creation 3 (existing only), share mode 0. A per-character read that fails is retried once at WTF\Account\<account>\<character>\<name>.
The derivation is in the doc.
Callers 9
- CCamera::SaveSettings uicamera
- CCamera::LoadSettings uicamera
- LoadAccountDataDigests net
- MD5AccountFile net
- SaveAccountDataDigests net
- SendAccountData net
- HandleUpdateAccountDataPacket net
- ReadAccountData net
- WriteAccountData net
Callees 8
- OsCreateFile unassigned
- OsDirectoryExists os
- OsCreateDirectory os
- GetRealmName net
- GetAccountName net
- GetSelectedCharacterName net
- SStrPack storm
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.