src/osd/winui/mui_audit.c
| r3882 | r3883 | |
| 53 | 53 | static INT_PTR CALLBACK AuditWindowProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam); |
| 54 | 54 | static void ProcessNextRom(void); |
| 55 | 55 | static void ProcessNextSample(void); |
| 56 | | static void CLIB_DECL DetailsPrintf(const char *fmt, ...); |
| 56 | static void CLIB_DECL DetailsPrintf(const char *fmt, ...) ATTR_PRINTF(1,2); |
| 57 | 57 | static const char * StatusString(int iStatus); |
| 58 | 58 | |
| 59 | 59 | /*************************************************************************** |
src/osd/winui/winui.c
| r3882 | r3883 | |
| 237 | 237 | ***************************************************************************/ |
| 238 | 238 | extern const ICONDATA g_iconData[]; |
| 239 | 239 | extern const TCHAR g_szPlayGameString[]; |
| 240 | | extern const char g_szGameCountString[]; |
| 241 | 240 | |
| 242 | 241 | typedef struct _play_options play_options; |
| 243 | 242 | struct _play_options |
| r3882 | r3883 | |
| 1754 | 1753 | InitCommonControls(); |
| 1755 | 1754 | |
| 1756 | 1755 | // Are we using an Old comctl32.dll? |
| 1757 | | dprintf("common controlversion %i %i",common_control_version >> 16, |
| 1756 | dprintf("common controlversion %ld %ld",common_control_version >> 16, |
| 1758 | 1757 | common_control_version & 0xffff); |
| 1759 | 1758 | |
| 1760 | 1759 | oldControl = (common_control_version < PACKVERSION(4,71)); |
| r3882 | r3883 | |
| 3103 | 3102 | } |
| 3104 | 3103 | |
| 3105 | 3104 | /* Show number of games in the current 'View' in the status bar */ |
| 3106 | | SetStatusBarTextF(2, g_szGameCountString, games_shown); |
| 3105 | SetStatusBarTextF(2, "%d %s", games_shown, GAMESNOUN); |
| 3107 | 3106 | |
| 3108 | 3107 | i = Picker_GetSelectedItem(hwndList); |
| 3109 | 3108 | |
| r3882 | r3883 | |
| 5650 | 5649 | SetStatusBarText(part_index, buf); |
| 5651 | 5650 | } |
| 5652 | 5651 | |
| 5653 | | static void CLIB_DECL MameMessageBox(const char *fmt, ...) |
| 5652 | static void CLIB_DECL ATTR_PRINTF(1,2) MameMessageBox(const char *fmt, ...) |
| 5654 | 5653 | { |
| 5655 | 5654 | char buf[2048]; |
| 5656 | 5655 | va_list va; |
src/osd/winui/mui_util.h
| r3882 | r3883 | |
| 14 | 14 | #ifndef MUI_UTIL_H |
| 15 | 15 | #define MUI_UTIL_H |
| 16 | 16 | |
| 17 | | extern void __cdecl ErrorMsg(const char* fmt, ...); |
| 18 | | extern void __cdecl dprintf(const char* fmt, ...); |
| 17 | #ifdef __GNUC__ |
| 18 | extern void __cdecl ErrorMsg(const char* fmt, ...)/* ATTR_PRINTF(1,2)*/__attribute__((format(printf, 1, 2))); |
| 19 | extern void __cdecl dprintf(const char* fmt, ...)/* ATTR_PRINTF(1,2)*/__attribute__((format(printf, 1, 2))); |
| 20 | #else |
| 21 | extern void __cdecl ErrorMsg(const char* fmt, ...)/* ATTR_PRINTF(1,2)*/; |
| 22 | extern void __cdecl dprintf(const char* fmt, ...)/* ATTR_PRINTF(1,2)*/; |
| 23 | #endif |
| 19 | 24 | |
| 20 | 25 | extern UINT GetDepth(HWND hWnd); |
| 21 | 26 | |