MCPcopy Create free account
hub / github.com/amule-project/amule / Save

Method Save

src/Preferences.cpp:1514–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512
1513
1514void CPreferences::Save()
1515{
1516 wxString fullpath(s_configDir + "preferences.dat");
1517
1518 CFile preffile;
1519 if (!wxFileExists(fullpath)) {
1520 preffile.Create(fullpath);
1521 }
1522
1523 if (preffile.Open(fullpath, CFile::read_write)) {
1524 try {
1525 preffile.WriteUInt8(PREFFILE_VERSION);
1526 preffile.WriteHash(s_userhash);
1527 } catch (const CIOFailureException& e) {
1528 AddDebugLogLineC(logGeneral, "IO failure while saving user-hash: " + e.what());
1529 }
1530 }
1531
1532 SavePreferences();
1533
1534 SaveSharedFolders();
1535}
1536
1537
1538void CPreferences::SaveSharedFolders()

Callers

nothing calls this directly

Calls 5

WriteUInt8Method · 0.80
whatMethod · 0.80
CreateMethod · 0.45
OpenMethod · 0.45
WriteHashMethod · 0.45

Tested by

no test coverage detected