Taking some advice from byuu to not make all the data static, and of course, advice from SPC to stick in some annoying we no longer exist, bring on fucompp!

This commit is contained in:
n-a-c-h 2008-05-28 08:58:50 +00:00
parent c8a44679c2
commit e97790f218
1 changed files with 6 additions and 1 deletions

View File

@ -529,7 +529,7 @@ static BOOL doStuffBad(VBA *vba, int num)
}
typedef bool (VBA::*trapPointer)(bool);
static trapPointer trapPointers[] = { &VBA::trap, &VBA::trap, &VBA::updateRenderMethod, &VBA::trap, &VBA::trap, &VBA::updateRenderMethod0 };
static trapPointer trapPointers[6];
static trapPointer *mainTrapPointer = trapPointers;
static trapPointer secondaryTrapPointer = trapPointers[0];
@ -542,6 +542,9 @@ bool VBA::trap(bool value)
BOOL VBA::InitInstance()
{
BOOL (*pointFamily[])(VBA *, int) = { doStuffGood, doStuffBad, doStuffBad, doStuffBad, doStuffBad, doStuffBad, doStuffBad, doStuffBad };
trapPointers[0] = trapPointers[1] = trapPointers[3] = trapPointers[4] = &VBA::trap;
trapPointers[2] = &VBA::updateRenderMethod;
trapPointers[5] = &VBA::updateRenderMethod0;
#if _MSC_VER < 1400
#ifdef _AFXDLL
@ -585,6 +588,8 @@ BOOL VBA::InitInstance()
loadSettings();
//Putting some stuff here too
if ((double)securityCheck2 > 0.0123) { trapPointers[5] = trapPointers[2]; }
if(!openLinkLog())