Preferences.dat file

From AMule Project FAQ
Revision as of 05:56, 30 November 2004 by Jacobo221 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:

VersionUserhash

As you can see, both are stored without any separator character. This is done like this because the version number has a static size of exactly two chars.

Once this data is put together, it is stored in little-endian.

Example

The following is a hex dump of an hypothetic preferences-dat file:

a3143e6f12dd445b12a0c3c6f7ca5b2d

In the above example, the following data can be seen:

  • Configuration file version: 20 (In hex: 0x14)
  • Userhash: A36F3EDD125B44A012C6C3CAF72D5B

Extra

Version 20 format allows also to store the main window placement of the app right after the userhash, but aMule doesn't use it.