Code cleanup

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@770 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 2b65d19359bd932545dbbbccddeb434308b50c42
Former-commit-id: 4ac1a75ab17aa870103700f359b5fbd2a93c2b83
This commit is contained in:
pouillot 2009-02-20 14:54:54 +00:00
parent 6608bc5fa8
commit 846ac35463

View file

@ -111,7 +111,6 @@ BOOL WINAPI DllEntryPoint (HINSTANCE hDLL, DWORD dwReason, LPVOID Reserved)
static void
shutdown(int index)
{
//static int firstTime = 1;
int idx = index - 1;
free (VecNames[idx]);
@ -121,7 +120,6 @@ shutdown(int index)
HCtx[idx] = 0;
if (firstTime) {
//GfParmReleaseHandle(DrvInfo);
GfParmReleaseHandle(PrefHdle);
GfctrlJoyRelease(joyInfo);
GfctrlMouseRelease(mouseInfo);
@ -159,9 +157,8 @@ InitFuncPt(int index, void *pt)
masterPlayer = index;
}
if (firstTime < 1) {
if (!firstTime) {
firstTime = 1;
//DrvInfo = GfParmReadFile(buf, GFPARM_RMODE_REREAD | GFPARM_RMODE_CREAT);
joyInfo = GfctrlJoyInit();
if (joyInfo) {
joyPresent = 1;