@@ -605,43 +605,6 @@ struct damn_keys_filter
605605#undef dwFilterKeysStructSize
606606#undef dwToggleKeysStructSize
607607
608- // Ôóíöèÿ äëÿ òóïûõ òðåáîâàíèé THQ è òóïûõ àìåðèêàíñêèõ ïîëüçîâàòåëåé
609- BOOL IsOutOfVirtualMemory ()
610- {
611- #define VIRT_ERROR_SIZE 256
612- #define VIRT_MESSAGE_SIZE 512
613- MEMORYSTATUSEX statex;
614- DWORD dwPageFileInMB = 0 ;
615- DWORD dwPhysMemInMB = 0 ;
616- HINSTANCE hApp = 0 ;
617- char pszError[VIRT_ERROR_SIZE];
618- char pszMessage[VIRT_MESSAGE_SIZE];
619-
620- ZeroMemory (&statex, sizeof (MEMORYSTATUSEX));
621- statex.dwLength = sizeof (MEMORYSTATUSEX);
622-
623- if (!GlobalMemoryStatusEx (&statex))
624- return 0 ;
625-
626- dwPageFileInMB = (DWORD)(statex.ullTotalPageFile / (1024 * 1024 ));
627- dwPhysMemInMB = (DWORD)(statex.ullTotalPhys / (1024 * 1024 ));
628-
629- // Äîâîëüíî îòôîíàðíîå óñëîâèå
630- if ((dwPhysMemInMB > 500 ) && ((dwPageFileInMB + dwPhysMemInMB) > 2500 ))
631- return 0 ;
632-
633- hApp = GetModuleHandle (NULL );
634-
635- if (!LoadString (hApp, RC_VIRT_MEM_ERROR, pszError, VIRT_ERROR_SIZE))
636- return 0 ;
637-
638- if (!LoadString (hApp, RC_VIRT_MEM_TEXT, pszMessage, VIRT_MESSAGE_SIZE))
639- return 0 ;
640-
641- MessageBox (NULL , pszMessage, pszError, MB_OK | MB_ICONHAND);
642- return 1 ;
643- }
644-
645608#include " xr_ioc_cmd.h"
646609
647610// typedef void DUMMY_STUFF (const void*,const u32&,void*);
@@ -726,10 +689,6 @@ int APIENTRY WinMain_impl(HINSTANCE hInstance,
726689
727690 // foo();
728691#ifndef DEDICATED_SERVER
729-
730- // Check for virtual memory
731- if ((strstr (lpCmdLine, " --skipmemcheck" ) == NULL ) && IsOutOfVirtualMemory ())
732- return 0 ;
733692 // Check for another instance
734693#ifdef NO_MULTI_INSTANCES
735694#define STALKER_PRESENCE_MUTEX " Local\\ STALKER-COP"
0 commit comments