diff --git a/libs/discordRPC.lua b/libs/discordRPC.lua index 0d2af4d..6a21b8c 100644 --- a/libs/discordRPC.lua +++ b/libs/discordRPC.lua @@ -19,8 +19,12 @@ if string.sub(source, -5) == ".love" or love.filesystem.isFused() then source = love.filesystem.getSourceBaseDirectory() end -if osname == "Linux" or osname == "OS X" or osname == "Windows" then - discordRPClib = ffi.load(source.."/libs/discord-rpc") +if osname == "Linux" then + discordRPClib = ffi.load(source.."/libs/discord-rpc.so") +elseif osname == "OS X" then + discordRPClib = ffi.load(source.."/libs/discord-rpc.dylib") +elseif osname == "Windows" then + discordRPClib = ffi.load(source.."/libs/discord-rpc.dll") else -- Else it crashes later on error(string.format("Discord rpc not supported on platform (%s)", osname))