|
3 | 3 | * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
4 | 4 | * obtain one at http://mozilla.org/MPL/2.0/ |
5 | 5 | * |
6 | | - * Copyright (C) 2005-2013, Peter Johnson (www.delphidabbler.com). |
| 6 | + * Copyright (C) 2005-2016, Peter Johnson (www.delphidabbler.com). |
7 | 7 | * |
8 | 8 | * $Rev$ |
9 | 9 | * $Date$ |
@@ -97,6 +97,12 @@ TAppInfo = class(TNoConstructObject) |
97 | 97 | {Returns fully specified name of CodeSnip's help file. |
98 | 98 | @return Name of help file. |
99 | 99 | } |
| 100 | + class function AppConfigFileName: string; |
| 101 | + {Returns fully specified name of application config file. |
| 102 | + } |
| 103 | + class function UserConfigFileName: string; |
| 104 | + {Returns fully specified name of per-user config file. |
| 105 | + } |
100 | 106 | class function ProgramReleaseInfo: string; |
101 | 107 | {Gets information about the current program release. Includes any special |
102 | 108 | build information if present in version information. |
@@ -146,6 +152,11 @@ implementation |
146 | 152 |
|
147 | 153 | { TAppInfo } |
148 | 154 |
|
| 155 | +class function TAppInfo.AppConfigFileName: string; |
| 156 | +begin |
| 157 | + Result := CommonAppDir + '\Common.config'; |
| 158 | +end; |
| 159 | + |
149 | 160 | class function TAppInfo.AppDataDir: string; |
150 | 161 | {Returns the directory where CodeSnip stores the "database" files. |
151 | 162 | @return Full path to database sub directory. |
@@ -347,6 +358,11 @@ class function TAppInfo.UserAppDir: string; |
347 | 358 | {$ENDIF} |
348 | 359 | end; |
349 | 360 |
|
| 361 | +class function TAppInfo.UserConfigFileName: string; |
| 362 | +begin |
| 363 | + Result := UserAppDir + '\User.config'; |
| 364 | +end; |
| 365 | + |
350 | 366 | class function TAppInfo.UserDataDir: string; |
351 | 367 | {Returns the directory where CodeSnip stores the user's "database" files. |
352 | 368 | @return Full path to database sub directory. |
|
0 commit comments