Windows: MSVC fixes

This commit is contained in:
Vicki Pfau 2022-02-07 00:57:46 -08:00
parent 0ff2d67317
commit 4d648c4f7c
3 changed files with 2 additions and 5 deletions

View File

@ -453,7 +453,7 @@ static void _GBCoreUnloadROM(struct mCore* core) {
mCheatDeviceDestroy(gbcore->cheatDevice);
gbcore->cheatDevice = NULL;
}
return GBUnloadROM(core->board);
GBUnloadROM(core->board);
}
static void _GBCoreChecksum(const struct mCore* core, void* data, enum mCoreChecksumType type) {

View File

@ -535,7 +535,7 @@ static void _GBACoreUnloadROM(struct mCore* core) {
mCheatDeviceDestroy(gbacore->cheatDevice);
gbacore->cheatDevice = NULL;
}
return GBAUnloadROM(core->board);
GBAUnloadROM(core->board);
}
static void _GBACoreChecksum(const struct mCore* core, void* data, enum mCoreChecksumType type) {

View File

@ -117,9 +117,6 @@ if(NOT WIN32)
else()
set_target_properties(${BINARY_NAME}-sdl PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
endif()
if (WIN32 AND MSVC)
set_target_properties(${BINARY_NAME}-sdl PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
endif()
install(TARGETS ${BINARY_NAME}-sdl DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${BINARY_NAME}-sdl)
if(UNIX)
install(FILES ${CMAKE_SOURCE_DIR}/doc/mgba.6 DESTINATION ${MANDIR}/man6 COMPONENT ${BINARY_NAME}-sdl)