Difference between revisions of "Preferences.dat file"
From AMule Project FAQ
GonoszTopi (Talk | contribs) (Updated to current usage.) |
|||
Line 7: | Line 7: | ||
== Description == | == Description == | ||
− | This | + | This file used to store [[eMule]]'s configuration in it's earlier versions. Nowadays, it only stores the userhash and the configuration file version. |
− | + | ||
== Data == | == Data == | ||
Line 16: | Line 15: | ||
== Format == | == Format == | ||
− | + | The file format is as follows: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | '''Version Userhash''' | |
− | + | ||
− | + | ||
− | + | ||
− | + | Size of each field is as follows: | |
+ | *''Version'': 1 byte | ||
+ | *''Userhash'': 16 bytes, stored as a big-endian 128-bit value. | ||
== Example == | == Example == | ||
Line 42: | Line 27: | ||
The following is a hex dump of an hypothetic ''preferences.dat'' file: | The following is a hex dump of an hypothetic ''preferences.dat'' file: | ||
− | '' | + | ''14 2C 16 62 17 9C 0E CE 02 45 55 A8 5A 56 6C 6F 49'' |
In the above example, the following data can be seen: | In the above example, the following data can be seen: | ||
*Configuration file version: ''20'' (In hex: ''0x14'') | *Configuration file version: ''20'' (In hex: ''0x14'') | ||
− | *Userhash: '' | + | *Userhash: ''2C1662179C0ECE024555A85A566C6F49'' |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 10:46, 25 September 2008
Contents
File
Name: preferences.dat
Location: ~/.aMule/
Description
This file used to store eMule's configuration in it's earlier versions. Nowadays, it only stores the userhash and the configuration file version.
Data
The current configuration file version is 20 (in hex: 0x14).
Format
The file format is as follows:
Version Userhash
Size of each field is as follows:
- Version: 1 byte
- Userhash: 16 bytes, stored as a big-endian 128-bit value.
Example
The following is a hex dump of an hypothetic preferences.dat file:
14 2C 16 62 17 9C 0E CE 02 45 55 A8 5A 56 6C 6F 49
In the above example, the following data can be seen:
- Configuration file version: 20 (In hex: 0x14)
- Userhash: 2C1662179C0ECE024555A85A566C6F49