src/osd/winui/directories.c
| r7140 | r7141 | |
| 18 | 18 | ***************************************************************************/ |
| 19 | 19 | |
| 20 | 20 | // standard windows headers |
| 21 | #define CINTERFACE |
| 21 | 22 | #define COBJMACROS |
| 22 | 23 | #define WIN32_LEAN_AND_MEAN |
| 23 | 24 | #include <windows.h> |
| 24 | 25 | #include <windowsx.h> |
| 25 | 26 | #include <shlobj.h> |
| 27 | #undef CINTERFACE |
| 26 | 28 | |
| 27 | 29 | // standard C headers |
| 28 | 30 | #include <sys/stat.h> |
| r7140 | r7141 | |
| 758 | 760 | _sntprintf(pResult, MAX_PATH, TEXT("%s"), buf); |
| 759 | 761 | bResult = TRUE; |
| 760 | 762 | } |
| 761 | | // IMalloc_Free(piMalloc, pItemIDList); |
| 763 | IMalloc_Free(piMalloc, pItemIDList); |
| 762 | 764 | } |
| 763 | 765 | else |
| 764 | 766 | { |
| 765 | 767 | bResult = FALSE; |
| 766 | 768 | } |
| 767 | 769 | |
| 768 | | //IMalloc_Release(piMalloc); |
| 770 | IMalloc_Release(piMalloc); |
| 769 | 771 | return bResult; |
| 770 | 772 | } |
| 771 | 773 | |
src/osd/winui/winui.mak
| r7140 | r7141 | |
| 32 | 32 | # WIN95_MULTIMON = 1 |
| 33 | 33 | |
| 34 | 34 | # uncomment next line to enable a Unicode build |
| 35 | | # UNICODE = 1 |
| 35 | UNICODE = 1 |
| 36 | 36 | |
| 37 | 37 | # set this to the minimum Direct3D version to support (8 or 9) |
| 38 | 38 | ifndef DIRECT3D |
| r7140 | r7141 | |
| 56 | 56 | #------------------------------------------------- |
| 57 | 57 | |
| 58 | 58 | ifdef PTR64 |
| 59 | | EMULATOR = $(FULLNAME)ui64$(EXE) |
| 59 | EMULATOR = $(NAME)ui64$(EXE) |
| 60 | 60 | else |
| 61 | | EMULATOR = $(FULLNAME)ui32$(EXE) |
| 61 | EMULATOR = $(NAME)ui32$(EXE) |
| 62 | 62 | endif |
| 63 | 63 | |
| 64 | 64 | |
| r7140 | r7141 | |
| 191 | 191 | DEFS += -DUNICODE -D_UNICODE |
| 192 | 192 | endif |
| 193 | 193 | |
| 194 | # ensure we statically link the gcc runtime lib |
| 195 | LDFLAGS += -static-libgcc |
| 194 | 196 | |
| 197 | # add unicode flag to emulator linking only |
| 198 | LDFLAGSEMULATOR += -municode |
| 195 | 199 | |
| 196 | 200 | #------------------------------------------------- |
| 197 | 201 | # Windows-specific flags and libraries |
| r7140 | r7141 | |
| 234 | 238 | -lcomdlg32 \ |
| 235 | 239 | |
| 236 | 240 | |
| 237 | | ifdef PTR64 |
| 238 | | LIBS += -lbufferoverflowu |
| 239 | | endif |
| 240 | | |
| 241 | | |
| 242 | | |
| 243 | 241 | #------------------------------------------------- |
| 244 | 242 | # OSD core library |
| 245 | 243 | #------------------------------------------------- |
| r7140 | r7141 | |
| 362 | 360 | #------------------------------------------------- |
| 363 | 361 | |
| 364 | 362 | $(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 >$@ |
| 366 | 364 | |
| 367 | 365 | # rule to build the generator |
| 368 | 366 | $(UIOBJ)/mkhelp$(EXE): $(UIOBJ)/mkhelp.o $(LIBOCORE) |
| r7140 | r7141 | |
| 412 | 410 | |
| 413 | 411 | $(UIOBJ)/mamevers.rc: $(OBJ)/build/verinfo$(EXE) $(SRC)/version.c |
| 414 | 412 | @echo Emitting $@... |
| 415 | | @$(OBJ)/build/verinfo$(EXE) -b winui $(SRC)/version.c > $@ |
| 413 | @"$(OBJ)/build/verinfo$(EXE)" -b winui $(SRC)/version.c > $@ |
| 416 | 414 | |
| 417 | 415 | |
| 418 | 416 | |