| 1512 | |
| 1513 | |
| 1514 | void 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 | |
| 1538 | void CPreferences::SaveSharedFolders() |
nothing calls this directly
no test coverage detected