From 618dad69404afb131ec2e2207dd0f642f09a1e86 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 21:01:00 +0000 Subject: Miranda libs to have the .mir extension, to prevent conflicts git-svn-id: http://svn.miranda-ng.org/main/trunk@14272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/src/mir_app.def | 3 ++- src/mir_app/src/mir_app64.def | 3 ++- src/mir_core/src/mir_core.def | 2 +- src/mir_core/src/mir_core64.def | 2 +- src/miranda32/src/checker.cpp | 6 +++++- src/miranda32/src/miranda.cpp | 6 +++--- 6 files changed, 14 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index 14e239b8f6..29a0ddd771 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -1,5 +1,6 @@ -EXPORTS +LIBRARY mir_app.mir +EXPORTS CallContactService @1 CallProtoService @2 Skin_LoadProtoIcon @4 diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index 26677f922c..be37130c97 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -1,5 +1,6 @@ -EXPORTS +LIBRARY mir_app.mir +EXPORTS CallContactService @1 CallProtoService @2 Skin_LoadProtoIcon @4 diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 70ee0c1c1d..de7e3dba81 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1,4 +1,4 @@ -LIBRARY mir_core +LIBRARY mir_core.mir EXPORTS Langpack_LookupUuid @3 diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index cc345a6ca8..d827389424 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1,4 +1,4 @@ -LIBRARY mir_core +LIBRARY mir_core.mir EXPORTS Langpack_LookupUuid @3 diff --git a/src/miranda32/src/checker.cpp b/src/miranda32/src/checker.cpp index 0ba46a5c7f..511e228109 100644 --- a/src/miranda32/src/checker.cpp +++ b/src/miranda32/src/checker.cpp @@ -196,7 +196,11 @@ bool TryDeleteFile(const TCHAR *ptszFileName) ///////////////////////////////////////////////////////////////////////////////////////// -static TCHAR *arDlls[] = { _T("mir_app.dll"), _T("mir_core.dll"), _T("pcre16.dll"), _T("zlib.dll"), _T("libtox.dll") }; +static TCHAR *arDlls[] = +{ + _T("mir_app.dll"), _T("mir_core.dll"), _T("pcre16.dll"), _T("zlib.dll"), _T("libtox.dll"), + _T("libs\\mir_app.dll"), _T("libs\\mir_core.dll"), _T("libs\\libjson.dll"), _T("libs\\pcre16.dll"), _T("libs\\zlib.dll") +}; bool CheckDlls() { diff --git a/src/miranda32/src/miranda.cpp b/src/miranda32/src/miranda.cpp index c5751aca4f..d05dc557c4 100644 --- a/src/miranda32/src/miranda.cpp +++ b/src/miranda32/src/miranda.cpp @@ -51,16 +51,16 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR cmdLine, int) GetEnvironmentVariable(_T("PATH"), ptszVal + cbPath + 1, cbSize); SetEnvironmentVariable(_T("PATH"), ptszVal); - HINSTANCE hMirApp = LoadLibraryA("mir_app.dll"); + HINSTANCE hMirApp = LoadLibraryA("mir_app.mir"); if (hMirApp == NULL) { - MessageBox(NULL, _T("mir_app.dll cannot be loaded"), _T("Fatal error"), MB_ICONERROR | MB_OK); + MessageBox(NULL, _T("mir_app.mir cannot be loaded"), _T("Fatal error"), MB_ICONERROR | MB_OK); return 1; } typedef int (WINAPI *pfnMain)(LPTSTR); pfnMain fnMain = (pfnMain)GetProcAddress(hMirApp, "mir_main"); if (fnMain == NULL) { - MessageBox(NULL, _T("invalid mir_app.dll present, program exiting"), _T("Fatal error"), MB_ICONERROR | MB_OK); + MessageBox(NULL, _T("invalid mir_app.mir present, program exiting"), _T("Fatal error"), MB_ICONERROR | MB_OK); return 2; } -- cgit v1.2.3