Changeset 1488 for trunk/dll/assoc.c


Ignore:
Timestamp:
Dec 22, 2009, 12:42:55 AM (16 years ago)
Author:
Gregg Young
Message:

Fixed commands so reordering them in commands.dat no longer changes their ID or hot key assignment; added 20 new hot keys; the environment information is now used when executing a command; some code clean up in command.c; added CheckExecutibleFlags to systemf.c the eliminate repetative code in assoc.c, command.c & cmdline.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/assoc.c

    r1479 r1488  
    2121  24 Aug 08 GKY Warn full drive on save of .DAT file; prevent loss of existing file
    2222  15 Nov 09 GKY Add check for attempt to open zero byte file (avoids MMPM trying to play them)
     23  21 Dec 09 GKY Added CheckExecutibleFlags to streamline code in command.c assoc.c & cmdline.c
    2324
    2425**************************************************************************************/
     
    755756        }
    756757        bstrip(temp.mask);
    757         bstrip(temp.pszCmdLine);
    758         if (WinQueryButtonCheckstate(hwnd, ASS_DEFAULT))
     758        bstrip(temp.pszCmdLine);
     759        temp.flags = CheckExecutibleFlags(hwnd, 1);
     760        /*if (WinQueryButtonCheckstate(hwnd, ASS_DEFAULT))
    759761          temp.flags = 0;
    760762        else if (WinQueryButtonCheckstate(hwnd, ASS_FULLSCREEN))
     
    771773          temp.flags |= DIEAFTER;
    772774        if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT))
    773           temp.flags |= PROMPT;
     775          temp.flags |= PROMPT;*/
    774776        if (fCancelAction){
    775777          fCancelAction = FALSE;
     
    830832        }
    831833        bstrip(temp.mask);
    832         bstrip(temp.pszCmdLine);
    833         if (WinQueryButtonCheckstate(hwnd, ASS_DEFAULT))
     834        bstrip(temp.pszCmdLine);
     835        temp.flags = CheckExecutibleFlags(hwnd, 1);
     836        /*if (WinQueryButtonCheckstate(hwnd, ASS_DEFAULT))
    834837          temp.flags = 0;
    835838        else if (WinQueryButtonCheckstate(hwnd, ASS_FULLSCREEN))
     
    846849          temp.flags |= DIEAFTER;
    847850        if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT))
    848           temp.flags |= PROMPT;
     851          temp.flags |= PROMPT;*/
    849852        if (fCancelAction){
    850853          fCancelAction = FALSE;
     
    934937        }
    935938        bstrip(temp.mask);
    936         bstrip(temp.pszCmdLine);
    937         if (WinQueryButtonCheckstate(hwnd, ASS_DEFAULT))
     939        bstrip(temp.pszCmdLine);
     940        temp.flags = CheckExecutibleFlags(hwnd, 1);
     941        /*if (WinQueryButtonCheckstate(hwnd, ASS_DEFAULT))
    938942          temp.flags = 0;
    939943        else if (WinQueryButtonCheckstate(hwnd, ASS_FULLSCREEN))
     
    950954          temp.flags |= DIEAFTER;
    951955        if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT))
    952           temp.flags |= PROMPT;
     956          temp.flags |= PROMPT;*/
    953957        if (fCancelAction){
    954958          fCancelAction = FALSE;
Note: See TracChangeset for help on using the changeset viewer.