mirror of
https://github.com/libretro/beetle-pce-libretro.git
synced 2024-11-27 10:20:48 +00:00
commit
1e9f1e6a29
4
.gitignore
vendored
4
.gitignore
vendored
@ -2,5 +2,9 @@
|
|||||||
*.so
|
*.so
|
||||||
*.dll
|
*.dll
|
||||||
*.dylib
|
*.dylib
|
||||||
|
*.lib
|
||||||
|
*.pdb
|
||||||
|
*.exp
|
||||||
|
*.manifest
|
||||||
/old
|
/old
|
||||||
|
|
||||||
|
4
Makefile
4
Makefile
@ -240,8 +240,6 @@ else ifneq (,$(findstring windows_msvc2017,$(platform)))
|
|||||||
MSVC2017CompileFlags = -DWINAPI_FAMILY=WINAPI_FAMILY_APP -DWINDLL -D_UNICODE -DUNICODE -DWRL_NO_DEFAULT_LIB -FS
|
MSVC2017CompileFlags = -DWINAPI_FAMILY=WINAPI_FAMILY_APP -DWINDLL -D_UNICODE -DUNICODE -DWRL_NO_DEFAULT_LIB -FS
|
||||||
LDFLAGS += -APPCONTAINER -NXCOMPAT -DYNAMICBASE -MANIFEST:NO -LTCG -OPT:REF -SUBSYSTEM:CONSOLE -MANIFESTUAC:NO -OPT:ICF -ERRORREPORT:PROMPT -NOLOGO -TLBID:1 -DEBUG:FULL -WINMD:NO
|
LDFLAGS += -APPCONTAINER -NXCOMPAT -DYNAMICBASE -MANIFEST:NO -LTCG -OPT:REF -SUBSYSTEM:CONSOLE -MANIFESTUAC:NO -OPT:ICF -ERRORREPORT:PROMPT -NOLOGO -TLBID:1 -DEBUG:FULL -WINMD:NO
|
||||||
LIBS += WindowsApp.lib
|
LIBS += WindowsApp.lib
|
||||||
|
|
||||||
HAVE_CHD = 0
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += $(MSVC2017CompileFlags)
|
CFLAGS += $(MSVC2017CompileFlags)
|
||||||
@ -496,7 +494,7 @@ $(TARGET): $(OBJECTS)
|
|||||||
ifeq ($(STATIC_LINKING), 1)
|
ifeq ($(STATIC_LINKING), 1)
|
||||||
$(AR) rcs $@ $(OBJECTS)
|
$(AR) rcs $@ $(OBJECTS)
|
||||||
else
|
else
|
||||||
$(LD) $(LINKOUT)$@ $^ $(LDFLAGS)
|
$(LD) $(LINKOUT)$@ $^ $(LDFLAGS) $(LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
|
@ -185,6 +185,16 @@ int flac_internal_rename_utf8(const char *oldname, const char *newname)
|
|||||||
|
|
||||||
HANDLE WINAPI flac_internal_CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
|
HANDLE WINAPI flac_internal_CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
|
||||||
{
|
{
|
||||||
|
#if _MSC_VER > 1900 && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
||||||
|
wchar_t *wname;
|
||||||
|
HANDLE handle = INVALID_HANDLE_VALUE;
|
||||||
|
|
||||||
|
if ((wname = wchar_from_utf8(lpFileName)) != NULL) {
|
||||||
|
|
||||||
|
handle = CreateFile2(wname, dwDesiredAccess, dwShareMode, CREATE_ALWAYS, NULL);
|
||||||
|
free(wname);
|
||||||
|
}
|
||||||
|
#else
|
||||||
if (!utf8_filenames) {
|
if (!utf8_filenames) {
|
||||||
return CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
return CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
||||||
} else {
|
} else {
|
||||||
@ -198,4 +208,5 @@ HANDLE WINAPI flac_internal_CreateFile_utf8(const char *lpFileName, DWORD dwDesi
|
|||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
4
deps/libchdr/coretypes.h
vendored
4
deps/libchdr/coretypes.h
vendored
@ -4,6 +4,10 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifdef __LIBRETRO__
|
||||||
|
#include <streams/file_stream_transforms.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0]))
|
#define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0]))
|
||||||
|
|
||||||
typedef uint64_t UINT64;
|
typedef uint64_t UINT64;
|
||||||
|
4
deps/lzma-16.04/C/CpuArch.c
vendored
4
deps/lzma-16.04/C/CpuArch.c
vendored
@ -177,11 +177,15 @@ Bool CPU_Is_InOrder()
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
static Bool CPU_Sys_Is_SSE_Supported()
|
static Bool CPU_Sys_Is_SSE_Supported()
|
||||||
{
|
{
|
||||||
|
#if _MSC_VER >= 1900 && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
||||||
|
return True;
|
||||||
|
#else
|
||||||
OSVERSIONINFO vi;
|
OSVERSIONINFO vi;
|
||||||
vi.dwOSVersionInfoSize = sizeof(vi);
|
vi.dwOSVersionInfoSize = sizeof(vi);
|
||||||
if (!GetVersionEx(&vi))
|
if (!GetVersionEx(&vi))
|
||||||
return False;
|
return False;
|
||||||
return (vi.dwMajorVersion >= 5);
|
return (vi.dwMajorVersion >= 5);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#define CHECK_SYS_SSE_SUPPORT if (!CPU_Sys_Is_SSE_Supported()) return False;
|
#define CHECK_SYS_SSE_SUPPORT if (!CPU_Sys_Is_SSE_Supported()) return False;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user