Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RSDKv5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine,
RSDK::RenderDevice::hPrevInstance = hPrevInstance;
RSDK::RenderDevice::nShowCmd = nShowCmd;

return RSDK_main(1, &lpCmdLine, LinkGameLogic);
return RSDK_main(1, &lpCmdLine, (void*)LinkGameLogic);
}
#else
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nShowCmd)
{
return RSDK_main(1, &lpCmdLine, LinkGameLogic);
return RSDK_main(1, &lpCmdLine, (void*)LinkGameLogic);
}
#endif

Expand Down
2 changes: 2 additions & 0 deletions platforms/Windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ if(USE_MINIAUDIO)
message(FATAL_ERROR "portaudio not supported for DX9 and DX11.")
endif()
target_compile_definitions(RetroEngine PRIVATE RETRO_AUDIODEVICE_MINI=1)
elseif(MINGW AND WIN32)
target_link_libraries(RetroEngine ksuser xaudio2_8)
endif()

target_compile_definitions(RetroEngine PRIVATE _CRT_SECURE_NO_WARNINGS)
Expand Down