diff options
author | George Hazan <ghazan@miranda.im> | 2022-07-24 20:01:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-07-24 20:01:23 +0300 |
commit | a43b5c88359a59fa950b325268498898129c9592 (patch) | |
tree | dcaa27a9d97e2adcf231af20818eaac85915575a /src/mir_app | |
parent | 29588be35e719b4ed6c2408004bffb1cfa03b7c3 (diff) |
okay, move it a bit earlier
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/database.cpp | 5 | ||||
-rw-r--r-- | src/mir_app/src/db_intf.cpp | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index c48bb5941f..d20361c3b4 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -492,11 +492,6 @@ int LoadDatabaseModule(void) PathToAbsoluteW(L".", tmp);
_wchdir(tmp);
- while (!_waccess(L"libmdbx.mir", 0)) {
- DeleteFileW(L"libmdbx.mir"); // just to be sure
- SleepEx(50, TRUE);
- }
-
// find out which profile to load
MFilePath szProfile;
if (!getProfile(szProfile))
diff --git a/src/mir_app/src/db_intf.cpp b/src/mir_app/src/db_intf.cpp index e351d2cad8..fc9467d8fd 100644 --- a/src/mir_app/src/db_intf.cpp +++ b/src/mir_app/src/db_intf.cpp @@ -79,5 +79,11 @@ int LoadDbintfModule() g_hevEventEdited = CreateHookableEvent(ME_DB_EVENT_EDITED);
g_hevEventDeleted = CreateHookableEvent(ME_DB_EVENT_DELETED);
g_hevEventFiltered = CreateHookableEvent(ME_DB_EVENT_FILTER_ADD);
+
+ while (!_waccess(L"libmdbx.mir", 0)) {
+ DeleteFileW(L"libmdbx.mir"); // just to be sure
+ SleepEx(50, TRUE);
+ }
+
return 0;
}
|