mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
commit
f9d9aaec11
@ -82,8 +82,10 @@ if (UNIX)
|
||||
LINK_LIBRARIES(${GTK3_LIBRARIES})
|
||||
|
||||
ADD_DEFINITIONS(${GTK3_CFLAGS_OTHER})
|
||||
|
||||
LINK_LIBRARIES("dl")
|
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
LINK_LIBRARIES("dl")
|
||||
endif ()
|
||||
endif (UNIX)
|
||||
|
||||
find_package(SDL2 REQUIRED)
|
||||
|
@ -32,6 +32,8 @@
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/socket.h>
|
||||
#define socket_t int
|
||||
#define sockaddr_t struct sockaddr
|
||||
|
@ -579,7 +579,11 @@ int main(int argc, char** argv)
|
||||
// http://stackoverflow.com/questions/14543333/joystick-wont-work-using-sdl
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
||||
|
||||
if (SDL_Init(SDL_INIT_EVERYTHING) < 0)
|
||||
if (SDL_Init(SDL_INIT_HAPTIC) < 0)
|
||||
{
|
||||
printf("SDL couldn't init rumble\n");
|
||||
}
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_JOYSTICK) < 0)
|
||||
{
|
||||
printf("SDL shat itself :(\n");
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user