Previous 199869 Revisions Next

r40534 Friday 28th August, 2015 at 16:58:14 UTC by Scott Stone
Merge branch 'master' of https://github.com/mamedev/mame
[hash]x1_cass.xml
[src/emu/sound]c352.c c352.h
[src/mame/drivers]namcofl.c namconb1.c namcond1.c namcos11.c namcos12.c namcos22.c namcos23.c
[src/mess/drivers]mc1000.c
[src/osd/modules/debugger/win]debugviewinfo.c debugwininfo.c editwininfo.c
[src/osd/windows]input.c output.c window.c winmain.c winutil.c winutil.h

trunk/hash/x1_cass.xml
r249045r249046
1212
1313<softwarelist name="x1_cass" description="Sharp X1 cassettes">
1414
15   <software name="alamein">
16      <description>El Alamein</description>
17      <year>1983</year>
18      <publisher>ポニカ (Pony Canyon)</publisher>
19      <info name="alt_title" value="エル・アラメイン"/>
20      <info name="usage" value="In BASIC, type LOAD and then RUN"/>
21      <sharedfeat name="requirement" value="x1_flop:tapbas"/>
22      <part name="cass" interface="x1_cass">
23         <dataarea name="side1" size="12742140">
24            <rom name="alamein.wav" size="12742140" crc="04e00f60" sha1="42f3ef356fdb67ddd0fbdb57e473c23d267f9bf4" offset="0" />
25         </dataarea>
26      </part>
27   </software>
28   
1529   <software name="blckonyx" supported="no">
1630      <description>The Black Onyx</description>
1731      <year>1985</year>
r249045r249046
7690         </dataarea>
7791      </part>
7892   </software>
93   
94   <software name="cball">
95      <description>Cannon Ball</description>
96      <year>1983</year>
97      <publisher>ハドソン (Hudson Soft)</publisher>
98      <info name="alt_title" value="キャノンボール"/>
99      <part name="cass" interface="x1_cass">
100         <dataarea name="side1" size="4857558">
101            <rom name="cball.wav" size="4857558" crc="4405cf21" sha1="769a43d97f69b5d72347ca8b72547e464b9d059b" offset="0" />
102         </dataarea>
103      </part>
104   </software>
79105
80106   <software name="cprowsp">
81107      <description>Champion ProWres Special</description>
r249045r249046
296322         </dataarea>
297323      </part>
298324   </software>
325   
326   <software name="machgjoe">
327      <description>Ginkou Goutou - Machinegun Joe vs. the Mafia</description>
328      <year>1983</year>
329      <publisher>ハドソン (Hudson Soft)</publisher>
330      <info name="alt_title" value="銀行強盗 マシンガンジョー VS ザ・マフィア"/>
331      <part name="cass" interface="x1_cass">
332         <dataarea name="side1" size="15591932">
333            <rom name="machgjoe.wav" size="15591932" crc="3769199a" sha1="81614c317f432055f2c5fdcce51438de9fbdad7f" offset="0" />
334         </dataarea>
335      </part>
336   </software>
299337
300338   <software name="mappy">
301339      <description>Mappy</description>
trunk/src/emu/sound/c352.c
r249045r249046
1313    Supports 8-bit linear and 8-bit muLaw samples
1414    Output: digital, 16 bit, 4 channels
1515    Output sample rate is the input clock / (288 * 2).
16   
17    superctr: The clock divider appears to be configurable for each system.
18    Below is a list of the divider values followed by the systems that use it.
19   
20    * 228: System 11.
21    * 288: System 22, Super 22, NB-1/2, ND-1, FL.
22    * 296: System 23, Super 23.
23    * 332: System 12.
1624 */
1725
1826#include "emu.h"
r249045r249046
468476
469477void c352_device::device_start()
470478{
471   int i, divider;
479   int i;
472480   double x_max = 32752.0;
473481   double y_max = 127.0;
474482   double u = 10.0;
r249045r249046
476484   // find our direct access
477485   m_direct = &space().direct();
478486
479   switch(m_divider)
480   {
481      case C352_DIVIDER_228:
482         divider=228;
483         break;
484      case C352_DIVIDER_288:
485      default:
486         divider=288;
487         break;
488      case C352_DIVIDER_332:
489         divider=332;
490         break;
491   }
487   m_sample_rate_base = clock() / m_divider;
492488
493   m_sample_rate_base = clock() / divider;
494
495489   m_stream = machine().sound().stream_alloc(*this, 0, 4, m_sample_rate_base);
496490
497491   // generate mulaw table for mulaw format samples
trunk/src/emu/sound/c352.h
r249045r249046
66#define __C352_H__
77
88//**************************************************************************
9//  CONSTANTS
10//**************************************************************************
11
12enum
13{
14   C352_DIVIDER_228 = 0,
15   C352_DIVIDER_288 = 1,
16   C352_DIVIDER_332 = 2
17};
18
19//**************************************************************************
209//  INTERFACE CONFIGURATION MACROS
2110//**************************************************************************
2211
trunk/src/mame/drivers/namcofl.c
r249045r249046
610610   MCFG_VIDEO_START_OVERRIDE(namcofl_state,namcofl)
611611
612612   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
613   MCFG_C352_ADD("c352", 48384000/2, C352_DIVIDER_288)
613   MCFG_C352_ADD("c352", 48384000/2, 288)
614614   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
615615   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
616616   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
trunk/src/mame/drivers/namconb1.c
r249045r249046
11261126   MCFG_VIDEO_START_OVERRIDE(namconb1_state,namconb1)
11271127
11281128   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
1129   MCFG_C352_ADD("c352", MASTER_CLOCK/2, C352_DIVIDER_288)
1129   MCFG_C352_ADD("c352", MASTER_CLOCK/2, 288)
11301130   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
11311131   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
11321132   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
r249045r249046
11631163   MCFG_VIDEO_START_OVERRIDE(namconb1_state,namconb2)
11641164
11651165   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
1166   MCFG_C352_ADD("c352", MASTER_CLOCK/2, C352_DIVIDER_288)
1166   MCFG_C352_ADD("c352", MASTER_CLOCK/2, 288)
11671167   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
11681168   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
11691169   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
trunk/src/mame/drivers/namcond1.c
r249045r249046
307307   /* sound hardware */
308308   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
309309
310   MCFG_C352_ADD("c352", XTAL_49_152MHz/2, C352_DIVIDER_288)
310   MCFG_C352_ADD("c352", XTAL_49_152MHz/2, 288)
311311   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
312312   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
313313   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
trunk/src/mame/drivers/namcos11.c
r249045r249046
571571
572572   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
573573
574   MCFG_C352_ADD("c352", 20013200, C352_DIVIDER_228)
574   MCFG_C352_ADD("c352", 20013200, 228)
575575   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
576576   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
577577   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
trunk/src/mame/drivers/namcos12.c
r249045r249046
16221622   /* sound hardware */
16231623   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
16241624
1625   MCFG_C352_ADD("c352", 29168000, C352_DIVIDER_332)
1625   MCFG_C352_ADD("c352", 29168000, 332)
16261626   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
16271627   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
16281628   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
trunk/src/mame/drivers/namcos22.c
r249045r249046
37813781   /* sound hardware */
37823782   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
37833783
3784   MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, C352_DIVIDER_288)
3784   MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, 288)
37853785   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
37863786   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
37873787   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
r249045r249046
38303830   /* sound hardware */
38313831   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
38323832
3833   MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, C352_DIVIDER_288)
3833   MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, 288)
38343834   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
38353835   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
38363836   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
trunk/src/mame/drivers/namcos23.c
r249045r249046
12471247#define JVSCLOCK    (XTAL_14_7456MHz)
12481248#define H8CLOCK     (16737350)      /* from 2061 */
12491249#define BUSCLOCK    (16737350*2)    /* 33MHz CPU bus clock / input */
1250#define C352CLOCK   (25992000)  /* measured at 25.992MHz from 2061 pin 9 (System 12 uses a divider of 332) */
1250#define C352CLOCK   (25992000)  /* measured at 25.992MHz from 2061 pin 9  */
1251#define C352DIV      (296)
12511252#define VSYNC1      (59.8824)
12521253#define VSYNC2      (59.915)
12531254#define HSYNC       (16666150)
r249045r249046
33203321   /* sound hardware */
33213322   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
33223323
3323   MCFG_C352_ADD("c352", C352CLOCK, C352_DIVIDER_332)
3324   MCFG_C352_ADD("c352", C352CLOCK, C352DIV)
33243325   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
33253326   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
33263327   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
r249045r249046
33893390   /* sound hardware */
33903391   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
33913392
3392   MCFG_C352_ADD("c352", C352CLOCK, C352_DIVIDER_332)
3393   MCFG_C352_ADD("c352", C352CLOCK, C352DIV)
33933394   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
33943395   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
33953396   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
r249045r249046
34693470   /* sound hardware */
34703471   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
34713472
3472   MCFG_C352_ADD("c352", C352CLOCK, C352_DIVIDER_332)
3473   MCFG_C352_ADD("c352", C352CLOCK, C352DIV)
34733474   MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
34743475   MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
34753476   MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
trunk/src/mess/drivers/mc1000.c
r249045r249046
378378  +---------*---*---o V+
379379  |         |   |
380380 +-+        |   |
381 | |309K    |   |
381 | |390K    |   |
382382 | |R17     |8  |4
383383 +-+      +-------+
384384  |      7|       |3
r249045r249046
390390 | |   |  |  555  |
391391 +-+   |  |       |
392392  |    | 6|       |5
393  *----*?-|       |---+
393  *----*--|       |---+
394394  |       |       |   |
395395 ---C30   +-------+  ---C29
396 ---103       |1     ---103
396 ---10n       |1     ---10n
397397 _|_         _|_     _|_
398398 ///         ///     ///
399399
400400 Calculated properties:
401401
402402 * 99.74489795918367 Duty Cycle Percentage
403 * 368.1126130105722 Frequency in Hertz
403 * 367.3469387755102 Frequency in Hertz
404404 * 0.00000693 Seconds Low
405 * 0.0027096299999999998 Seconds High
405 * 0.00270963 Seconds High
406406
407407 */
408408
409#define MC1000_NE555_FREQ       (368) /* Hz */
409#define MC1000_NE555_FREQ       (367) /* Hz */
410410#define MC1000_NE555_DUTY_CYCLE (99.745) /* % */
411411
412412TIMER_DEVICE_CALLBACK_MEMBER(mc1000_state::ne555_tick)
trunk/src/osd/modules/debugger/win/debugviewinfo.c
r249045r249046
1515
1616#include "strconv.h"
1717
18#include "winutil.h"
1819
20
1921// debugger view styles
2022#define DEBUG_VIEW_STYLE    WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN
2123#define DEBUG_VIEW_STYLE_EX 0
r249045r249046
4850
4951   // create the child view
5052   m_wnd = CreateWindowEx(DEBUG_VIEW_STYLE_EX, TEXT("MAMEDebugView"), NULL, DEBUG_VIEW_STYLE,
51         0, 0, 100, 100, parent, NULL, GetModuleHandle(NULL), this);
53          0, 0, 100, 100, parent, NULL, GetModuleHandleUni(), this);
5254   if (m_wnd == NULL)
5355      goto cleanup;
5456
5557   // create the scroll bars
5658   m_hscroll = CreateWindowEx(HSCROLL_STYLE_EX, TEXT("SCROLLBAR"), NULL, HSCROLL_STYLE,
57         0, 0, 100, CW_USEDEFAULT, m_wnd, NULL, GetModuleHandle(NULL), this);
59         0, 0, 100, CW_USEDEFAULT, m_wnd, NULL, GetModuleHandleUni(), this);
5860   m_vscroll = CreateWindowEx(VSCROLL_STYLE_EX, TEXT("SCROLLBAR"), NULL, VSCROLL_STYLE,
59         0, 0, CW_USEDEFAULT, 100, m_wnd, NULL, GetModuleHandle(NULL), this);
61         0, 0, CW_USEDEFAULT, 100, m_wnd, NULL, GetModuleHandleUni(), this);
6062   if ((m_hscroll == NULL) || (m_vscroll == NULL))
6163      goto cleanup;
6264
r249045r249046
254256{
255257   // create a combo box
256258   HWND const result = CreateWindowEx(COMBO_BOX_STYLE_EX, TEXT("COMBOBOX"), NULL, COMBO_BOX_STYLE,
257         0, 0, 100, 1000, parent, NULL, GetModuleHandle(NULL), NULL);
259         0, 0, 100, 1000, parent, NULL, GetModuleHandleUni(), NULL);
258260   SetWindowLongPtr(result, GWLP_USERDATA, userdata);
259261   SendMessage(result, WM_SETFONT, (WPARAM)metrics().debug_font(), (LPARAM)FALSE);
260262
r249045r249046
789791
790792      // initialize the description of the window class
791793      wc.lpszClassName    = TEXT("MAMEDebugView");
792      wc.hInstance        = GetModuleHandle(NULL);
794      wc.hInstance        = GetModuleHandleUni();
793795      wc.lpfnWndProc      = &debugview_info::static_view_proc;
794796      wc.hCursor          = LoadCursor(NULL, IDC_ARROW);
795797      wc.hIcon            = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2));
r249045r249046
798800      wc.style            = 0;
799801      wc.cbClsExtra       = 0;
800802      wc.cbWndExtra       = 0;
803     
804      UnregisterClass(wc.lpszClassName, wc.hInstance);
801805
802806      // register the class; fail if we can't
803807      if (!RegisterClass(&wc))
trunk/src/osd/modules/debugger/win/debugwininfo.c
r249045r249046
1717#include "window.h"
1818#include "winutf8.h"
1919
20#include "winutil.h"
2021
22
2123bool debugwin_info::s_window_class_registered = false;
2224
2325
r249045r249046
3638   register_window_class();
3739
3840   m_wnd = win_create_window_ex_utf8(DEBUG_WINDOW_STYLE_EX, "MAMEDebugWindow", title, DEBUG_WINDOW_STYLE,
39         0, 0, 100, 100, win_window_list->m_hwnd, create_standard_menubar(), GetModuleHandle(NULL), this);
41         0, 0, 100, 100, win_window_list->m_hwnd, create_standard_menubar(), GetModuleHandleUni(), this);
4042   if (m_wnd == NULL)
4143      return;
4244
r249045r249046
580582
581583      // initialize the description of the window class
582584      wc.lpszClassName    = TEXT("MAMEDebugWindow");
583      wc.hInstance        = GetModuleHandle(NULL);
585      wc.hInstance        = GetModuleHandleUni();
584586      wc.lpfnWndProc      = &debugwin_info::static_window_proc;
585587      wc.hCursor          = LoadCursor(NULL, IDC_ARROW);
586588      wc.hIcon            = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2));
r249045r249046
589591      wc.style            = 0;
590592      wc.cbClsExtra       = 0;
591593      wc.cbWndExtra       = 0;
594     
595      UnregisterClass(wc.lpszClassName, wc.hInstance);
592596
593597      // register the class; fail if we can't
594598      if (!RegisterClass(&wc))
trunk/src/osd/modules/debugger/win/editwininfo.c
r249045r249046
1313
1414#include "strconv.h"
1515
16#include "winutil.h"
1617
18
1719// edit box styles
1820#define EDIT_BOX_STYLE      WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL
1921#define EDIT_BOX_STYLE_EX   0
r249045r249046
3234
3335   // create an edit box and override its key handling
3436   m_editwnd = CreateWindowEx(EDIT_BOX_STYLE_EX, TEXT("EDIT"), NULL, EDIT_BOX_STYLE,
35         0, 0, 100, 100, window(), NULL, GetModuleHandle(NULL), NULL);
37         0, 0, 100, 100, window(), NULL, GetModuleHandleUni(), NULL);
3638   m_original_editproc = (WNDPROC)(FPTR)GetWindowLongPtr(m_editwnd, GWLP_WNDPROC);
3739   SetWindowLongPtr(m_editwnd, GWLP_USERDATA, (LONG_PTR)this);
3840   SetWindowLongPtr(m_editwnd, GWLP_WNDPROC, (LONG_PTR)&editwin_info::static_edit_proc);
trunk/src/osd/windows/input.c
r249045r249046
3838#include "strconv.h"
3939#include "config.h"
4040
41#include "winutil.h"
42
4143//============================================================
4244//  PARAMETERS
4345//============================================================
r249045r249046
11171119   int didevtype_joystick = DI8DEVCLASS_GAMECTRL;
11181120
11191121   dinput_version = DIRECTINPUT_VERSION;
1120   result = DirectInput8Create(GetModuleHandle(NULL), dinput_version, IID_IDirectInput8, (void **)&dinput, NULL);
1122   result = DirectInput8Create(GetModuleHandleUni(), dinput_version, IID_IDirectInput8, (void **)&dinput, NULL);
11211123   if (result != DI_OK)
11221124   {
11231125      dinput_version = 0;
r249045r249046
11301132
11311133   // first attempt to initialize DirectInput at the current version
11321134   dinput_version = DIRECTINPUT_VERSION;
1133   result = DirectInputCreate(GetModuleHandle(NULL), dinput_version, &dinput, NULL);
1135   result = DirectInputCreate(GetModuleHandleUni(), dinput_version, &dinput, NULL);
11341136   if (result != DI_OK)
11351137   {
11361138      // if that fails, try version 5
11371139      dinput_version = 0x0500;
1138      result = DirectInputCreate(GetModuleHandle(NULL), dinput_version, &dinput, NULL);
1140      result = DirectInputCreate(GetModuleHandleUni(), dinput_version, &dinput, NULL);
11391141      if (result != DI_OK)
11401142      {
11411143         // if that fails, try version 3
11421144         dinput_version = 0x0300;
1143         result = DirectInputCreate(GetModuleHandle(NULL), dinput_version, &dinput, NULL);
1145         result = DirectInputCreate(GetModuleHandleUni(), dinput_version, &dinput, NULL);
11441146         if (result != DI_OK)
11451147         {
11461148            dinput_version = 0;
trunk/src/osd/windows/output.c
r249045r249046
1717// MAMEOS headers
1818#include "output.h"
1919
20#include "winutil.h"
2021
2122
23
2224//============================================================
2325//  CONSTANTS
2426//============================================================
r249045r249046
101103                  1, 1,
102104                  NULL,
103105                  NULL,
104                  GetModuleHandle(NULL),
106                  GetModuleHandleUni(),
105107                  NULL);
106108   assert(output_hwnd != NULL);
107109
r249045r249046
167169
168170      // initialize the description of the window class
169171      wc.lpszClassName    = OUTPUT_WINDOW_CLASS;
170      wc.hInstance        = GetModuleHandle(NULL);
172      wc.hInstance        = GetModuleHandleUni();
171173      wc.lpfnWndProc      = output_window_proc;
174     
175      UnregisterClass(wc.lpszClassName, wc.hInstance);
172176
173177      // register the class; fail if we can't
174178      if (!RegisterClass(&wc))
trunk/src/osd/windows/window.c
r249045r249046
3535#include "config.h"
3636#include "winutf8.h"
3737
38#include "winutil.h"
39
3840extern int drawnone_init(running_machine &machine, osd_draw_callbacks *callbacks);
3941extern int drawgdi_init(running_machine &machine, osd_draw_callbacks *callbacks);
4042extern int drawdd_init(running_machine &machine, osd_draw_callbacks *callbacks);
r249045r249046
885887
886888      // initialize the description of the window class
887889      wc.lpszClassName    = TEXT("MAME");
888      wc.hInstance        = GetModuleHandle(NULL);
890      wc.hInstance        = GetModuleHandleUni();
889891      wc.lpfnWndProc      = winwindow_video_window_proc_ui;
890892      wc.hCursor          = LoadCursor(NULL, IDC_ARROW);
891893      wc.hIcon            = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2));
894     
895      UnregisterClass(wc.lpszClassName, wc.hInstance);
892896
893897      // register the class; fail if we can't
894898      if (!RegisterClass(&wc))
r249045r249046
11911195                  monitorbounds.left() + 100, monitorbounds.top() + 100,
11921196                  NULL,//(win_window_list != NULL) ? win_window_list->m_hwnd : NULL,
11931197                  menu,
1194                  GetModuleHandle(NULL),
1198                  GetModuleHandleUni(),
11951199                  NULL);
11961200   if (m_hwnd == NULL)
11971201      return 1;
trunk/src/osd/windows/winmain.c
r249045r249046
13211321   dynamic_bind<PIMAGE_NT_HEADERS (WINAPI *)(PVOID)> image_nt_header(TEXT("dbghelp.dll"), "ImageNtHeader");
13221322
13231323   // start with the image base
1324   PVOID base = reinterpret_cast<PVOID>(GetModuleHandle(NULL));
1324   PVOID base = reinterpret_cast<PVOID>(GetModuleHandleUni());
13251325   assert(base != NULL);
13261326
13271327   // make sure we have the functions we need
trunk/src/osd/windows/winutil.c
r249045r249046
9292      is_first_time = FALSE;
9393
9494      // get the current module
95      module = GetModuleHandle(NULL);
95      module = GetModuleHandleUni();
9696      if (!module)
9797         return FALSE;
9898      image_ptr = (BYTE*) module;
r249045r249046
122122   }
123123   return is_gui_frontend;
124124}
125
126//-------------------------------------------------
127//  Universal way to get module handle
128//-------------------------------------------------
129
130HMODULE WINAPI GetModuleHandleUni()
131{
132   MEMORY_BASIC_INFORMATION mbi;
133   VirtualQuery((LPCVOID)GetModuleHandleUni, &mbi, sizeof(mbi));
134   return (HMODULE)mbi.AllocationBase;
135}
trunk/src/osd/windows/winutil.h
r249045r249046
1515file_error win_error_to_file_error(DWORD error);
1616osd_dir_entry_type win_attributes_to_entry_type(DWORD attributes);
1717BOOL win_is_gui_application(void);
18HMODULE WINAPI GetModuleHandleUni();
1819
1920#endif // __WINUTIL__


Previous 199869 Revisions Next


© 1997-2024 The MAME Team