Previous 15994 Revisions Next

r2749 Sunday 25th May, 2008 at 14:26:42 UTC by Nathan Woods
[MESSUI] Fixed stupid regression
[src/osd/winui]winui.c

src/osd/winui/winui.c
r2748r2749
777777   { RA_ID,   { IDC_SSPICTURE },FALSE,   RA_RIGHT | RA_BOTTOM | RA_TOP,     NULL },
778778   { RA_ID,   { IDC_HISTORY },  TRUE,   RA_RIGHT | RA_BOTTOM | RA_TOP,     NULL },
779779   { RA_ID,   { IDC_SSTAB },    FALSE,   RA_RIGHT | RA_TOP,                 NULL },
780#ifdef MESS
781   { RA_ID,   { IDC_SWLIST },    TRUE,   RA_RIGHT | RA_BOTTOM | RA_TOP,     NULL },
782   { RA_ID,   { IDC_SPLITTER3 },FALSE,   RA_RIGHT | RA_BOTTOM | RA_TOP,     NULL },
783#endif /* MESS */
780784   { RA_END,  { 0 },            FALSE, 0,                                 NULL }
781785};
782786
r2748r2749
818822/* List view Column text */
819823const LPCTSTR column_names[COLUMN_MAX] =
820824{
825#ifdef MESS
826   TEXT("System"),
827#else
821828   TEXT("Game"),
829#endif
822830   TEXT("Screen"),
823831   //TEXT("ROMs"),
824832   TEXT("Samples"),
r2748r2749
914922   // Tell mame were to get the INIs
915923   options_set_string(mame_opts, OPTION_INIPATH, GetIniDir(), OPTION_PRIORITY_CMDLINE);
916924
925#ifdef MESS
926   // add MESS specific device options
927   mess_add_device_options(mame_opts, drivers[nGameIndex]);
928#endif // MESS
929
917930   // set any specified play options
918931   if (playopts != NULL)
919932   {
r2748r2749
13011314
13021315   if (have_selection)
13031316   {
1317#ifdef MESS
1318      if (!g_szSelectedItem[0] || !LoadScreenShotEx(Picker_GetSelectedItem(hwndList), g_szSelectedItem,
1319         TabView_GetCurrentTab(hTabCtrl)))
1320#endif
13041321      // load and set image, or empty it if we don't have one
13051322      LoadScreenShot(Picker_GetSelectedItem(hwndList), TabView_GetCurrentTab(hTabCtrl));
13061323   }
r2748r2749
17171734
17181735   RegisterClass(&wndclass);
17191736
1737#ifdef MESS
1738   DevView_RegisterClass();
1739#endif //MESS
1740
17201741   InitCommonControls();
17211742
17221743   // Are we using an Old comctl32.dll?
r2748r2749
19021923   dprintf("did init tree");
19031924
19041925   /* Initialize listview columns */
1926#ifdef MESS
1927   InitMessPicker();
1928#endif
19051929   InitListView();
19061930   SetFocus(hwndList);
19071931
r2748r2749
31363160   HMENU         hMenu = GetMenu(hMain);
31373161   TCHAR*          t_description;
31383162
3163#ifdef MESS
3164   MyFillSoftwareList(nGame, FALSE);
3165#endif
31393166
31403167   t_description = tstring_from_utf8(ConvertAmpersandString(ModifyThe(drivers[nGame]->description)));
31413168   if( !t_description )
r2748r2749
42924319      {
42934320         folder = GetFolderByName(FOLDER_SOURCE, GetDriverFilename(Picker_GetSelectedItem(hwndList)) );
42944321         InitPropertyPage(hInst, hwnd, GetSelectedPickItemIcon(), OPTIONS_GAME, folder->m_nFolderId, Picker_GetSelectedItem(hwndList));
4322#ifdef MESS
4323         {
4324            extern BOOL g_bModifiedSoftwarePaths;
4325            if (g_bModifiedSoftwarePaths) {
4326               g_bModifiedSoftwarePaths = FALSE;
4327               MessUpdateSoftwareList();
4328            }
4329         }
4330#endif
42954331      }
42964332      /* Just in case the toggle MMX on/off */
42974333      UpdateStatusBar();
r2748r2749
43674403         int  nResult;
43684404         BOOL bUpdateRoms;
43694405         BOOL bUpdateSamples;
4406#ifdef MESS
4407         BOOL bUpdateSoftware;
4408#endif
43704409
43714410         nResult = DialogBox(GetModuleHandle(NULL),
43724411                        MAKEINTRESOURCE(IDD_DIRECTORIES),
r2748r2749
43774416
43784417         bUpdateRoms    = ((nResult & DIRDLG_ROMS)    == DIRDLG_ROMS)   ? TRUE : FALSE;
43794418         bUpdateSamples = ((nResult & DIRDLG_SAMPLES) == DIRDLG_SAMPLES) ? TRUE : FALSE;
4419#ifdef MESS
4420         bUpdateSoftware = ((nResult & DIRDLG_SOFTWARE) == DIRDLG_SOFTWARE) ? TRUE : FALSE;
43804421
4422         if (bUpdateSoftware)
4423            MessUpdateSoftwareList();
4424#endif /* MESS */
4425
43814426         if (s_pWatcher)
43824427         {
43834428            if (bUpdateRoms)
r2748r2749
46024647            return FALSE;
46034648         }
46044649      }
4650#ifdef MESS
4651      return MessCommand(hwnd, id, hwndCtl, codeNotify);
4652#else
46054653      break;
4654#endif
46064655   }
46074656
46084657   return FALSE;
r2748r2749
50365085   // restore our view
50375086   SetWindowLong(hwndList,GWL_STYLE,dwStyle);
50385087
5088#ifdef MESS
5089   CreateMessIcons();
5090#endif
5091
50395092   // Now set up header specific stuff
50405093   hHeaderImages = ImageList_Create(8,8,ILC_COLORDDB | ILC_MASK,2,2);
50415094   hIcon = LoadIcon(hInst,MAKEINTRESOURCE(IDI_HEADER_UP));
r2748r2749
58095862{
58105863   DWORD dwExitCode;
58115864
5865#ifdef MESS
5866   if (!MessApproveImageList(hMain, nGame))
5867      return;
5868#endif
5869
58125870   if (g_pJoyGUI != NULL)
58135871      KillTimer(hMain, JOYGUI_TIMER);
58145872   if (GetCycleScreenshot() > 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team