From 18ddc37a06a82b135bfc18d840cdbc85600932cd Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Wed, 2 Feb 2022 23:56:03 +0100 Subject: [PATCH] More Win32 cruft --- src/main.cpp | 13 +------------ src/stdafx.h | 16 ---------------- 2 files changed, 1 insertion(+), 28 deletions(-) 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