Commit e4f43053 authored by Daniel Buckmaster's avatar Daniel Buckmaster

Merge pull request #756 from eightyeight/fix_dll_loading

Load new DLL first so existing projects don't see odd behavior
parents 3c1cc9b3 868b20cf
......@@ -55,7 +55,7 @@ int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdL
HMODULE hGame = NULL;
std::wstring dllName = std::wstring();
// The file name is the same as this executable's name, plus a suffix.
const std::wstring dllSuffices[] = {L"", L" DLL"};
const std::wstring dllSuffices[] = {L" DLL", L""};
const unsigned int numSuffices = sizeof(dllSuffices) / sizeof(std::wstring);
for (unsigned int i = 0; i < numSuffices; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment