diff --git a/src/main.cpp b/src/main.cpp index c0b20bc..5dfb926 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -626,18 +626,7 @@ const char* QuickResourceName( const char* prefix, int id, const char* extension void Initialize(void) { #if _WIN32 - HMODULE module; - char name[MAX_PATH + 1], *lastBackslash; - - module = GetModuleHandle(NULL); - GetModuleFileName(module, name, MAX_PATH); - lastBackslash = strrchr(name, '\\'); - if (lastBackslash != NULL) - { - *lastBackslash = '\0'; - strcpy(candyCrisisResources, name); - strcat(candyCrisisResources, "\\CandyCrisisResources\\"); - } + strcpy(candyCrisisResources, "CandyCrisisResources\\"); #endif #if __APPLE__ sprintf(candyCrisisResources, "%s/", [[[NSBundle mainBundle] resourcePath] UTF8String]); diff --git a/src/stdafx.h b/src/stdafx.h index 4cc2dcc..c77676b 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -6,19 +6,3 @@ #include #include - -#if _WIN32 - -#define _CRT_SECURE_NO_WARNINGS 1 - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files: -#include - -// C RunTime Header Files -#include -#include -#include -#include - -#endif