mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 07:03:33 +02:00
Discord cleanup
This commit is contained in:
@@ -146,6 +146,7 @@ void Discord::SetPresenceMenu() {
|
||||
discordPresence.startTimestamp = time(0);
|
||||
discordPresence.largeImageText = "PPSSPP is the best PlayStation Portable emulator around!";
|
||||
discordPresence.largeImageKey = System_GetPropertyBool(SYSPROP_APP_GOLD) ? "icon_gold_png" : "icon_regular_png";
|
||||
Discord_UpdatePresence(&discordPresence);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -16,15 +16,12 @@ set(ALL_SOURCE_FILES
|
||||
${SRC_DIR}/serialization.cpp
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES}
|
||||
${SRC_DIR}/discord_register_osx.m
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/connection_win.cpp)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/discord_register_win.cpp)
|
||||
elseif(APPLE)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/connection_unix.cpp)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/discord_register_osx.m)
|
||||
else()
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/connection_unix.cpp)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/discord_register_linux.cpp)
|
||||
@@ -33,3 +30,11 @@ endif()
|
||||
add_library(discord-rpc STATIC ${ALL_SOURCE_FILES})
|
||||
|
||||
target_include_directories(discord-rpc PUBLIC ../discord-rpc/src ../discord-rpc/include ../rapidjson/include)
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(discord-rpc PUBLIC pthread)
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
target_link_libraries(discord-rpc PRIVATE "-framework AppKit")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user