Showing with 2 additions and 3 deletions.
  1. +2 −0 src/Settings.c
  2. +0 −3 src/main.c
@@ -19,6 +19,8 @@ void SettingsLoad()
StretchToWidth = GetInt("StretchToWidth", StretchToWidth);
StretchToHeight = GetInt("StretchToHeight", StretchToHeight);
DrawFPS = GetInt("DrawFPS", DrawFPS);
if (GetBool("SingleProcAffinity", true))
SetProcessAffinityMask(GetCurrentProcess(), 1);
}

static bool GetBool(LPCTSTR key, bool defaultValue)
@@ -84,9 +84,6 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
}
}

// unfortunately necessary to avoid random access violations
SetProcessAffinityMask(GetCurrentProcess(), 1);

SettingsLoad();
hook_init();