diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-10 14:25:58 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-10 14:25:58 +0000 |
commit | b93e0e123f0ff027c6dc9f7604fc39b7944c044a (patch) | |
tree | 67cee62db1052ed011e25b4dca4d26126b8ac634 /src | |
parent | 5392de61abb5e4e40e053673b4ca05603642f0a9 (diff) |
mir_app: ImportINI service
git-svn-id: http://svn.miranda-ng.org/main/trunk@16078 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/dbini.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mir_app/src/dbini.cpp b/src/mir_app/src/dbini.cpp index 38f883f2f1..b45e520ac8 100644 --- a/src/mir_app/src/dbini.cpp +++ b/src/mir_app/src/dbini.cpp @@ -523,10 +523,17 @@ static INT_PTR CheckIniImportNow(WPARAM, LPARAM) return 0;
}
+static INT_PTR ImportINI(WPARAM wParam, LPARAM)
+{
+ ptrT tszIniPath(mir_utf8decodeT((char*)wParam));
+ ProcessIniFile(tszIniPath, "", "", 0, 0);
+ return 0;
+}
+
int InitIni(void)
{
bModuleInitialized = true;
-
+ CreateServiceFunction("DB/Ini/ImportFile", ImportINI);
DoAutoExec();
TCHAR szMirandaDir[MAX_PATH];
|