mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:41:57 +00:00
[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:
parent
30bc0b6b7a
commit
fefc5f4823
9 changed files with 31 additions and 32 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue