diff options
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];
|