Previous 15994 Revisions Next

r7141 Saturday 23rd January, 2010 at 09:10:29 UTC by Miodrag Milanović
MAMEUI compiles and work fine now.
[src/osd/winui]directories.c history.c mameui.rc winui.c winui.mak

src/osd/winui/history.c
r7140r7141
3737// Load indexes from history.dat if found
3838char * GetGameHistory(int driver_index)
3939{
40   static char buffer[32768];
40   static char buffer[1024 * 1024];
4141   buffer[0] = '\0';
4242
4343   if (load_driver_history(drivers[driver_index],buffer,sizeof(buffer)) != 0)
src/osd/winui/directories.c
r7140r7141
1818***************************************************************************/
1919
2020// standard windows headers
21#define CINTERFACE
2122#define COBJMACROS
2223#define WIN32_LEAN_AND_MEAN
2324#include <windows.h>
2425#include <windowsx.h>
2526#include <shlobj.h>
27#undef CINTERFACE
2628
2729// standard C headers
2830#include <sys/stat.h>
r7140r7141
758760         _sntprintf(pResult, MAX_PATH, TEXT("%s"), buf);
759761         bResult = TRUE;
760762      }
761//      IMalloc_Free(piMalloc, pItemIDList);
763      IMalloc_Free(piMalloc, pItemIDList);
762764   }
763765   else
764766   {
765767      bResult = FALSE;
766768   }
767769
768   //IMalloc_Release(piMalloc);
770   IMalloc_Release(piMalloc);
769771   return bResult;
770772}
771773
src/osd/winui/mameui.rc
r7140r7141
1616//
1717// Generated from the TEXTINCLUDE 2 resource.
1818//
19#define NOWINRES
2019#include "windows.h"
2120#include "commctrl.h"
2221
src/osd/winui/winui.mak
r7140r7141
3232# WIN95_MULTIMON = 1
3333
3434# uncomment next line to enable a Unicode build
35# UNICODE = 1
35UNICODE = 1
3636
3737# set this to the minimum Direct3D version to support (8 or 9)
3838ifndef DIRECT3D
r7140r7141
5656#-------------------------------------------------
5757
5858ifdef PTR64
59EMULATOR = $(FULLNAME)ui64$(EXE)
59EMULATOR = $(NAME)ui64$(EXE)
6060else
61EMULATOR = $(FULLNAME)ui32$(EXE)
61EMULATOR = $(NAME)ui32$(EXE)
6262endif
6363
6464
r7140r7141
191191DEFS += -DUNICODE -D_UNICODE
192192endif
193193
194# ensure we statically link the gcc runtime lib
195LDFLAGS += -static-libgcc
194196
197# add unicode flag to emulator linking only
198LDFLAGSEMULATOR += -municode
195199
196200#-------------------------------------------------
197201# Windows-specific flags and libraries
r7140r7141
234238   -lcomdlg32 \
235239
236240
237ifdef PTR64
238LIBS += -lbufferoverflowu
239endif
240
241
242
243241#-------------------------------------------------
244242# OSD core library
245243#-------------------------------------------------
r7140r7141
362360#-------------------------------------------------
363361
364362$(UISRC)/helpids.c : $(UIOBJ)/mkhelp$(EXE) $(UISRC)/resource.h $(UISRC)/resource.hm $(UISRC)/mameui.rc
365   $(UIOBJ)/mkhelp$(EXE) $(UISRC)/mameui.rc >$@
363   @"$(UIOBJ)/mkhelp$(EXE)" $(UISRC)/mameui.rc >$@
366364
367365# rule to build the generator
368366$(UIOBJ)/mkhelp$(EXE): $(UIOBJ)/mkhelp.o $(LIBOCORE)
r7140r7141
412410
413411$(UIOBJ)/mamevers.rc: $(OBJ)/build/verinfo$(EXE) $(SRC)/version.c
414412   @echo Emitting $@...
415   @$(OBJ)/build/verinfo$(EXE) -b winui $(SRC)/version.c > $@
413   @"$(OBJ)/build/verinfo$(EXE)" -b winui $(SRC)/version.c > $@
416414
417415
418416
src/osd/winui/winui.c
r7140r7141
4747
4848
4949// MAME/MAMEUI headers
50//#include "emu.h"
50#include "emu.h"
5151#include "emuopts.h"
5252#include "osdepend.h"
5353#include "unzip.h"

Previous 15994 Revisions Next


© 1998-2018 The MESS Team