Skip to content

Commit

Permalink
More Win32 cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
jorio committed Feb 3, 2022
1 parent ceb09f7 commit 18ddc37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
13 changes: 1 addition & 12 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
16 changes: 0 additions & 16 deletions src/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,3 @@

#include <SDL.h>
#include <SDL_endian.h>

#if _WIN32

#define _CRT_SECURE_NO_WARNINGS 1

#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>

// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>

#endif

0 comments on commit 18ddc37

Please sign in to comment.