Changeset 30 for trunk/settings.cpp


Ignore:
Timestamp:
Mar 13, 2018, 11:51:18 PM (7 years ago)
Author:
Gregg Young
Message:

Changes to allow building either Gotcha or Gotchaq. Gotchaq requires defining _QUIET_. Ticket #10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/settings.cpp

    r28 r30  
    9292
    9393Settings :: Settings (VOID) :
    94 ththSettings(apse, "gotcha.ini", L_PROFILEVERSION)
     94#ifdef _QUIET_
     95//#if 1
     96    ththSettings(apse, "gotchaq.ini", L_PROFILEVERSION)
     97#else
     98    ththSettings(apse, "gotcha.ini", L_PROFILEVERSION)
     99#endif
    95100{
    96101    if( ! QueryFlag( SEI_UPDATE178DONE ) ) {
     
    213218                        MPFROMLONG (idPage[i]), MPFROMP (pszPageTab[i]));
    214219        }
    215 //#ifndef _QUIET_
    216 #if 0
     220#ifndef _QUIET_
     221//#if 0
    217222        // open and assign dialogs to pages
    218223        hwndPage[0] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page1Procedure,
    219224                                  GETMODULE, ID_DLG_SETTINGSPAGE1, this);
    220         hwndPage[1] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) WindowProcedure, //Page2Procedure,
     225        hwndPage[1] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page2Procedure,
    221226                                  GETMODULE, ID_DLG_SETTINGSPAGE2, this);
    222227        hwndPage[2] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page3Procedure,
     
    492497            WinSendDlgItemMsg( hwnd, WID_LB_FILEFORMAT, LM_SELECTITEM,
    493498                               MPFROMSHORT(0), MPFROMSHORT(TRUE) );
    494 //#ifdef _QUIET_
    495 #if 1
     499#ifdef _QUIET_
     500//#if 1
    496501        // set play sound button
    497502        pset->AdjustButton (hwnd, WID_CB_DOSOUND,
     
    539544            else
    540545                pset->SetFileSaveStyle (FSS_PROMPT);
    541 //#ifdef _QUIET_
    542 #if 1
     546#ifdef _QUIET_
     547//#if 1
    543548            pset->DoSound(WinQueryButtonCheckstate
    544549                          (hwnd, WID_CB_DOSOUND));
     
    640645        pset->AdjustButton (hwnd, WID_CB_SSWALWAYSONTOP,
    641646                            pset->SSWAlwaysOnTop ());
    642 //#ifdef _QUIET_
    643 #if 1
     647#ifdef _QUIET_
     648//#if 1
    644649        pset->AdjustButton (hwnd, WID_CB_SERIALCAPTURE,
    645650                            pset->SerialCapture ());
     
    695700            LogDebug( "Page2Procedure: start UM_ADJUST" );
    696701#endif
    697 //#ifndef _QUIET_
    698 #if 0
     702#ifndef _QUIET_
     703//#if 0
    699704        // query state of checkbuttons and set flags
    700705        pset->SSWHide(WinQueryButtonCheckstate(hwnd, WID_CB_SSWHIDE));
     
    730735        else
    731736            pset->SetSSWCaptureType (CAP_SCREEN);
    732 //#ifdef _QUITE_
    733 #if 1
     737#ifdef _QUIET_
     738//#if 1
    734739        // delay time
    735740        ULONG   ul;
     
    11261131
    11271132    ResourceString::Module(g_hmod);
    1128 //#ifdef _QUIET_
    1129 #if 1
     1133#ifdef _QUIET_
     1134//#if 1
    11301135    pszPageTab[0] = RSTR (IDS_MAINWIN);
    11311136    pszPageTab[1] = RSTR (IDS_PAGESAVE);
     
    11501155    // set this to some default, as we must open the settings dialog for
    11511156    // selecting a language
    1152 //#ifdef _QUIET_
    1153 #if 1
     1157#ifdef _QUIET_
     1158//#if 1
    11541159    pszPageTab[0] = RSTR (IDS_MAINWIN);
    11551160    pszPageTab[1] = RSTR (IDS_PAGESAVE);
     
    11811186    hdir = HDIR_CREATE;
    11821187    c    = 1;
    1183     rc   = DosFindFirst ("*.dll", &hdir, fl, &findbuf,
     1188#ifdef _QUIET_
     1189    rc   = DosFindFirst ("goqre*.dll", &hdir, fl, &findbuf,
    11841190                         sizeof (findbuf), &c, FIL_STANDARD);
     1191#else
     1192    rc   = DosFindFirst ("gotre*.dll", &hdir, fl, &findbuf,
     1193                         sizeof (findbuf), &c, FIL_STANDARD);
     1194#endif
    11851195    while (!rc)
    11861196    {
Note: See TracChangeset for help on using the changeset viewer.