Changeset 37


Ignore:
Timestamp:
Mar 14, 2018, 12:52:55 AM (7 years ago)
Author:
Gregg Young
Message:

Add more i#fdef _QUIET_ to fix a trap on close in Gotchaq and make sure Gotchaq uses the correct ini file.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/settings.cpp

    r30 r37  
    11871187    c    = 1;
    11881188#ifdef _QUIET_
    1189     rc   = DosFindFirst ("goqre*.dll", &hdir, fl, &findbuf,
     1189    rc   = DosFindFirst ("goqres*.dll", &hdir, fl, &findbuf,
    11901190                         sizeof (findbuf), &c, FIL_STANDARD);
    11911191#else
    1192     rc   = DosFindFirst ("gotre*.dll", &hdir, fl, &findbuf,
     1192    rc   = DosFindFirst ("gotres*.dll", &hdir, fl, &findbuf,
    11931193                         sizeof (findbuf), &c, FIL_STANDARD);
    11941194#endif
     
    12021202            PVOID pv;
    12031203            if (DosGetResource(hmod, RT_RCDATA, DLL_ID, &pv) == NO_ERROR) {
     1204#ifdef _QUIET_
     1205                if (strcmp(PSZ(pv), "Gotchaq!") == 0) {
     1206#else
    12041207                if (strcmp(PSZ(pv), "Gotcha!") == 0) {
     1208#endif
    12051209                    psz = PSZ(pv)+strlen(PSZ(pv))+3;
    12061210                    ul = WinInsertLboxItem (hwnd, LIT_END, psz);
  • trunk/settings.h

    r27 r37  
    2626#include "./settings/thth_settings.h"
    2727
     28#ifdef _QUIET
     29#define PSZ_PROFILENAME           "gotchaq.ini"
     30#else
    2831#define PSZ_PROFILENAME           "gotcha.ini"
     32#endif
    2933
    3034// this should be increased every time the format of the proFile changes
Note: See TracChangeset for help on using the changeset viewer.