Preferences.dat
#2
Posted 01 November 2009 - 10:21 AM
Saves the user hash. This is a value calculated at eMule's first start and is used to identify this client in the network. Used for credit system and friends.
Cryptkey.dat
Contains the unique 384 bit private RSA key of your client to verify your userhash. If you delete this file, make sure to also delete preferences.dat which stores your userhash.
#5
Posted 01 November 2009 - 12:11 PM
loverboy, on 01 November 2009 - 12:09 PM, said:
Is it related to my IP in that particular session?
No it has nothing to do with your IP. A value named PREFFILE_VERSION (which currently (v0.49c) equals 0x14), the position of eMule's window on the screen and the userhash is saved in preferences.dat each time eMule is closed.
bool CPreferences::Save(){
bool error = false;
CString strFullPath;
strFullPath = GetMuleDirectory(EMULE_CONFIGDIR) + L"preferences.dat";
FILE* preffile = _tfsopen(strFullPath, L"wb", _SH_DENYWR);
prefsExt->version = PREFFILE_VERSION;
if (preffile){
prefsExt->version=PREFFILE_VERSION;
prefsExt->EmuleWindowPlacement=EmuleWindowPlacement;
md4cpy(prefsExt->userhash, userhash);
error = fwrite(prefsExt,sizeof(Preferences_Ext_Struct),1,preffile)!=1;
if (thePrefs.GetCommitFiles() >= 2 || (thePrefs.GetCommitFiles() >= 1 && !theApp.emuledlg->IsRunning())){
fflush(preffile); // flush file stream buffers to disk buffers
(void)_commit(_fileno(preffile)); // commit disk buffers to disk
}
fclose(preffile);
}
else
error = true;
(...)
}

#6
Posted 01 November 2009 - 12:14 PM
loverboy, on 01 November 2009 - 01:09 PM, said:
Is it related to my IP in that particular session?
Your ID is related with your WAN ip number, not userhash. I think preferences.dat file content is always the same. Maybe eMule is reading it from the memory and rewriting it to the disk on close action.
SS1900, on 01 November 2009 - 01:23 PM, said:
I couldn't understand that message. . .
//Nissenice has already posted while i was writing
This post has been edited by omeringen: 01 November 2009 - 12:16 PM
. . .
#8
Posted 01 November 2009 - 01:09 PM
Quote
why should emule rewrite it?
This post has been edited by xilolee: 01 November 2009 - 01:10 PM
italian guides - guide della sezione italiana --- come ottenere aiuto
italian support - sezione italiana --- scaricare la lista server --- i filtri ip
ottenere id alto --- aprire le porte nel router --- recuperare file corrotti
Sembra talco ma non è serve a darti l'allegrIa! Se lo lanci e poi lo respiri ti dà subito l'allegrIa!

#9
Posted 01 November 2009 - 01:27 PM
. . .
#10
Posted 01 November 2009 - 01:30 PM
italian guides - guide della sezione italiana --- come ottenere aiuto
italian support - sezione italiana --- scaricare la lista server --- i filtri ip
ottenere id alto --- aprire le porte nel router --- recuperare file corrotti
Sembra talco ma non è serve a darti l'allegrIa! Se lo lanci e poi lo respiri ti dà subito l'allegrIa!

#11
#12
Posted 01 November 2009 - 01:41 PM
cryptkey.dat file is not the point because eMule doesn't rewrite it even if you set "Safe .met/.dat file writing" option to "Always". . . For example mine is about 2008.
This post has been edited by omeringen: 01 November 2009 - 01:51 PM
. . .
#13
Posted 01 November 2009 - 01:50 PM
yes, but i have modified that option in the last months, whilst in the 2006 i had the default option (on shutdown)
italian guides - guide della sezione italiana --- come ottenere aiuto
italian support - sezione italiana --- scaricare la lista server --- i filtri ip
ottenere id alto --- aprire le porte nel router --- recuperare file corrotti
Sembra talco ma non è serve a darti l'allegrIa! Se lo lanci e poi lo respiri ti dà subito l'allegrIa!

#14
Posted 01 November 2009 - 02:01 PM
omeringen, on 01 November 2009 - 02:41 PM, said:
cryptkey.dat file is not the point because eMule doesn't save it even if you set "Safe .met/.dat file writing" option to "Always". . . For example mine is about 2008.
Well, I wasn't thinking of cryptkey.dat. I thought what xilolee was trying to say was that his preferences.dat was last changed the same date as his cryptkey.dat.
And if so the only reason for this would be this part from the code posted above:
if (thePrefs.GetCommitFiles() >= 2 || (thePrefs.GetCommitFiles() >= 1 && !theApp.emuledlg->IsRunning())){
fflush(preffile); // flush file stream buffers to disk buffers
(void)_commit(_fileno(preffile)); // commit disk buffers to disk
}
Which basically says, if I'm not wrong, that if 'Safe .met/.dat file writing' is set to 'Always' preferences.dat will always be saved at shutdown and if it is set to 'Never' it never will.
Btw, my preferences.dat changes every time I close the program. And I have "Safe .met/.dat file writing" set to 'On shutdown'

#15
Posted 01 November 2009 - 02:04 PM
xilolee, on 01 November 2009 - 02:50 PM, said:
yes, but i have modified that option in the last months, whilst in the 2006 i had the default option (on shutdown)
Hmm.. Strange! That was unexpected. Perhaps you are using a backup of it?
This post has been edited by Nissenice: 01 November 2009 - 02:11 PM

#16
Posted 01 November 2009 - 02:15 PM
This post has been edited by xilolee: 01 November 2009 - 02:16 PM
italian guides - guide della sezione italiana --- come ottenere aiuto
italian support - sezione italiana --- scaricare la lista server --- i filtri ip
ottenere id alto --- aprire le porte nel router --- recuperare file corrotti
Sembra talco ma non è serve a darti l'allegrIa! Se lo lanci e poi lo respiri ti dà subito l'allegrIa!

#17
Posted 01 November 2009 - 02:16 PM
omeringen, on 01 November 2009 - 03:41 PM, said:
cryptkey.dat file is not the point because eMule doesn't rewrite it even if you set "Safe .met/.dat file writing" option to "Always". . . For example mine is about 2008.
This post has been edited by omeringen: 01 November 2009 - 02:16 PM
. . .
#19
Posted 01 November 2009 - 02:19 PM
imo, if the preferences.dat and the criptkey.dat do not change, they should not be rewrited ... but the preferences.dat changes
This post has been edited by xilolee: 01 November 2009 - 02:22 PM
italian guides - guide della sezione italiana --- come ottenere aiuto
italian support - sezione italiana --- scaricare la lista server --- i filtri ip
ottenere id alto --- aprire le porte nel router --- recuperare file corrotti
Sembra talco ma non è serve a darti l'allegrIa! Se lo lanci e poi lo respiri ti dà subito l'allegrIa!

#20
Posted 01 November 2009 - 02:46 PM
Cheers
Reglas del Foro Configuraciones de Varios Cortafuegos Saturación de la Conexión
La torpeza en la persona grandes males proporciona
Siervo de la gleba de la extinta Republica de Kjersti

Sign In
Register
Help


MultiQuote

