[RAPPS] Centralize RAPPS exposed names: registry & user local settings (#4214)

Centralize the names of the RAPPS' registry setting sub-key, and
user local settings & offline apps database sub-directories.

- Change the name of the application database sub-directory from
  "rapps\rapps" to "RApps\appdb".

- Adjust the documentation to reflect this.

- Simplify CConfigParser constructor by removing GetINIFullPath().
This commit is contained in:
Hermès Bélusca-Maïto 2021-12-29 01:05:00 +01:00
parent 30bc0b6b7a
commit fefc5f4823
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
9 changed files with 31 additions and 32 deletions

View file

@ -7,6 +7,7 @@
* Copyright 2017 Alexander Shaposhnikov (sanchaez@reactos.org)
* Copyright 2021 Mark Jansen <mark.jansen@reactos.org>
*/
#include "rapps.h"
#include <debug.h>
@ -24,19 +25,7 @@ struct CSectionNames
};
static CSectionNames g_Names;
static CStringW
GetINIFullPath(const CStringW &FileName)
{
CStringW szDir;
CStringW szBuffer;
GetStorageDirectory(szDir);
szBuffer.Format(L"%ls\\rapps\\%ls", szDir.GetString(), FileName.GetString());
return szBuffer;
}
CConfigParser::CConfigParser(const CStringW &FileName) : szConfigPath(GetINIFullPath(FileName))
CConfigParser::CConfigParser(const CStringW &FilePath) : szConfigPath(FilePath)
{
CacheINI();
}