Changeset 129 for trunk/settings.cpp


Ignore:
Timestamp:
Sep 5, 2021, 7:31:26 PM (4 years ago)
Author:
Gregg Young
Message:

Use WorkPlace Sans on ecs systems. Hard code error that resource dll could not be loaded (they contain the string table)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/settings.cpp

    r125 r129  
    13601360            p = env;
    13611361            p++;
    1362             if (!stricmp(p, ":\\sys")) {
     1362            if (!stricmp(p, ":\\sys") || !stricmp(p, ":\\ecs")) {
    13631363                strcpy(ucFont, "9.Workplace Sans");
    13641364                WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont);
    13651365            }
    1366             /*if (pset->GetLangID() == RU || pset->GetLangID() == CZ || pset->GetLangID() == PL) {*/
    13671366            else {
    13681367                strcpy(ucFont, "9.Times New Roman MT 30");
    13691368                WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont);
    13701369            }
    1371             /*else if (g_installer) {
    1372                 strcpy(ucFont, 9.WarpSans");
    1373                 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont);
    1374             } */
    13751370        return MRESULT (FALSE);
    13761371        }
     
    15221517    if ((rc = DosLoadModule(PSZ(NULL), 0, psz, &g_hmod)))
    15231518    {
    1524         DisplayError(RSTR(IDS_HEADER_ERROR),
    1525                      RSTR(IDS_ERROR_RESOURSEMODFAILED), psz, rc);
     1519        DisplayError("Error",
     1520                     "Could not (re)load resource module '%s' (return code %d). "
     1521                     "Make sure the DLL is in the LIBPATH. If this is the case, "
     1522                     "try deleting GOTCHA.INI and restart. If this fails, contact "
     1523                     "the author (ygk@qwest.net).", psz, rc);
     1524        // This won't work since the strings are in the resource DLL
     1525        //DisplayError(RSTR(IDS_HEADER_ERROR),
     1526        //             RSTR(IDS_ERROR_RESOURSEMODFAILED), psz, rc);
    15261527        exit(1);
    15271528    }
Note: See TracChangeset for help on using the changeset viewer.