John IV![Moderator Moderator](//www.mameworld.info/ubbthreads/images/mod.gif) |
IV/Play, MAME, MAMEUI
|
|
|
Reged: 09/22/03
|
Posts: 1981
|
Loc: Washington, USA
|
|
Send PM
|
|
|
[Annc] MameUI32/64 .139.3.1 released.
#233983 - 09/20/10 09:24 AM
|
|
|
|
|
Re: [Annc] MameUI32/64 .139.3.1 released.
[Re: John IV]
#233984 - 09/20/10 10:07 AM
|
|
|
|
|
Re: [Annc] MameUI32/64 .139.3.1 released.
[Re: AntoPISA]
#233988 - 09/20/10 11:24 AM
|
|
|
Thank you very much!
|
|
|
redk9258 |
Regular
|
|
|
Reged: 09/21/03
|
Posts: 3968
|
Loc: Troy, Illinois USA
|
|
Send PM
|
|
|
Re: [Annc] MameUI32/64 .139.3.1 released.
[Re: John IV]
#233995 - 09/20/10 01:52 PM
|
|
|
Thanks John. That was quick.
|
|
|
Fever |
Reformed Sk3n3 Quitter
|
|
|
Reged: 09/21/03
|
Posts: 2090
|
Loc: Britland
|
|
Send PM
|
|
|
Re: [Annc] MameUI32/64 .139.3.1 released.
[Re: John IV]
#234026 - 09/20/10 09:21 PM
|
|
|
|
|
Re: [Annc] MameUI32/64 .139.3.1 released.
[Re: Fever]
#234042 - 09/20/10 10:54 PM
|
|
|
> Nice one - what was it in the end - out of curiosity?
Here's the diff...
diff -Nru MameUIs_139.3/winui/properties.c MameUIs_139.3.1/winui/properties.c --- MameUIs_139.3/winui/properties.c Fri Sep 3 17:57:12 2010 +++ MameUIs_139.3.1/winui/properties.c Mon Sep 20 03:05:54 2010 @@ -385,15 +385,30 @@ memset(pspages, 0, sizeof(PROPSHEETPAGE) * possiblePropSheets); maxPropSheets = 0; - + i = ( isGame ) ? 0 : 2; for (; g_propSheets[i].pfnDlgProc; i++) { + if (!gamedrv) + { + if (g_propSheets[i].bOnDefaultPage) + { + pspages[maxPropSheets].dwSize = sizeof(PROPSHEETPAGE); + pspages[maxPropSheets].dwFlags = 0; + pspages[maxPropSheets].hInstance = hInst; + pspages[maxPropSheets].pszTemplate = MAKEINTRESOURCE(g_propSheets[i].dwDlgID); + pspages[maxPropSheets].pfnCallback = NULL; + pspages[maxPropSheets].lParam = 0; + pspages[maxPropSheets].pfnDlgProc = g_propSheets[i].pfnDlgProc; + maxPropSheets++; + } + } + else if ((gamedrv != NULL) || g_propSheets[i].bOnDefaultPage) { machine_config config(*gamedrv); - + if (!gamedrv || !g_propSheets[i].pfnFilterProc || g_propSheets[i].pfnFilterProc(&config, gamedrv)) { pspages[maxPropSheets].dwSize = sizeof(PROPSHEETPAGE); @@ -407,7 +422,7 @@ } } } - + if (pnMaxPropSheets) *pnMaxPropSheets = maxPropSheets; diff -Nru MameUIs_139.3/winui/treeview.c MameUIs_139.3.1/winui/treeview.c --- MameUIs_139.3/winui/treeview.c Fri Sep 3 19:05:56 2010 +++ MameUIs_139.3.1/winui/treeview.c Mon Sep 20 03:05:54 2010 @@ -924,7 +924,7 @@ int i, j, device_folder_count = 0; LPTREEFOLDER device_folders[512]; LPTREEFOLDER folder; - const device_config_execute_interface *device; + const device_config_execute_interface *device = NULL; int nFolder = numFolders; for (i = 0; drivers[i] != NULL; i++) @@ -984,7 +984,7 @@ int i, j, device_folder_count = 0; LPTREEFOLDER device_folders[512]; LPTREEFOLDER folder; - const device_config_sound_interface *device; + const device_config_sound_interface *device = NULL; int nFolder = numFolders; for (i = 0; drivers[i] != NULL; i++)
|
|
|