From e8091f5137495a3b7691878a3be12b38540f1cfb Mon Sep 17 00:00:00 2001 From: Mason Sciotti Date: Tue, 27 Feb 2018 13:33:00 -0800 Subject: [PATCH] Changing kebab case filenames in source to snake case for consistency --- build.py | 2 +- examples/send-presence/send-presence.c | 2 +- .../Source/DiscordRpc/Private/DiscordRpcBlueprint.cpp | 2 +- include/{discord-rpc.h => discord_rpc.h} | 0 src/CMakeLists.txt | 6 +++--- src/discord_register_linux.cpp | 2 +- src/discord_register_win.cpp | 2 +- src/{discord-rpc.cpp => discord_rpc.cpp} | 2 +- src/serialization.cpp | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) rename include/{discord-rpc.h => discord_rpc.h} (100%) rename src/{discord-rpc.cpp => discord_rpc.cpp} (99%) diff --git a/build.py b/build.py index ce177a7..b607fcc 100755 --- a/build.py +++ b/build.py @@ -136,7 +136,7 @@ def unreal(ctx): UNREAL_PROJECT_PATH = os.path.join(SCRIPT_PATH, 'examples', 'unrealstatus', 'Plugins', 'discordrpc') UNREAL_INCLUDE_PATH = os.path.join(UNREAL_PROJECT_PATH, 'Source', 'ThirdParty', 'DiscordRpcLibrary', 'Include') mkdir_p(UNREAL_INCLUDE_PATH) - shutil.copy(os.path.join(SCRIPT_PATH, 'include', 'discord-rpc.h'), UNREAL_INCLUDE_PATH) + shutil.copy(os.path.join(SCRIPT_PATH, 'include', 'discord_rpc.h'), UNREAL_INCLUDE_PATH) if sys.platform.startswith('win'): LIBRARY_NAME = 'discord-rpc.lib' diff --git a/examples/send-presence/send-presence.c b/examples/send-presence/send-presence.c index fcc8c41..8eef032 100644 --- a/examples/send-presence/send-presence.c +++ b/examples/send-presence/send-presence.c @@ -9,7 +9,7 @@ #include #include -#include "discord-rpc.h" +#include "discord_rpc.h" static const char* APPLICATION_ID = "345229890980937739"; static int FrustrationLevel = 0; diff --git a/examples/unrealstatus/Plugins/discordrpc/Source/DiscordRpc/Private/DiscordRpcBlueprint.cpp b/examples/unrealstatus/Plugins/discordrpc/Source/DiscordRpc/Private/DiscordRpcBlueprint.cpp index 697dba6..fb5fd5b 100644 --- a/examples/unrealstatus/Plugins/discordrpc/Source/DiscordRpc/Private/DiscordRpcBlueprint.cpp +++ b/examples/unrealstatus/Plugins/discordrpc/Source/DiscordRpc/Private/DiscordRpcBlueprint.cpp @@ -1,6 +1,6 @@ #include "DiscordRpcPrivatePCH.h" #include "DiscordRpcBlueprint.h" -#include "discord-rpc.h" +#include "discord_rpc.h" DEFINE_LOG_CATEGORY(Discord) diff --git a/include/discord-rpc.h b/include/discord_rpc.h similarity index 100% rename from include/discord-rpc.h rename to include/discord_rpc.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c83b394..b33bf68 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,8 +6,8 @@ option(USE_STATIC_CRT "Use /MT[d] for dynamic library" OFF) set(CMAKE_CXX_STANDARD 14) set(BASE_RPC_SRC - ${PROJECT_SOURCE_DIR}/include/discord-rpc.h - discord-rpc.cpp + ${PROJECT_SOURCE_DIR}/include/discord_rpc.h + discord_rpc.cpp ${PROJECT_SOURCE_DIR}/include/discord_register.h rpc_connection.h rpc_connection.cpp @@ -129,7 +129,7 @@ install( install( FILES - "../include/discord-rpc.h" + "../include/discord_rpc.h" "../include/discord_register.h" DESTINATION "include" ) diff --git a/src/discord_register_linux.cpp b/src/discord_register_linux.cpp index 8bd334c..02a6c16 100644 --- a/src/discord_register_linux.cpp +++ b/src/discord_register_linux.cpp @@ -1,4 +1,4 @@ -#include "discord-rpc.h" +#include "discord_rpc.h" #include "discord_register.h" #include diff --git a/src/discord_register_win.cpp b/src/discord_register_win.cpp index 1cb3741..fdd3b01 100644 --- a/src/discord_register_win.cpp +++ b/src/discord_register_win.cpp @@ -1,4 +1,4 @@ -#include "discord-rpc.h" +#include "discord_rpc.h" #include "discord_register.h" #define WIN32_LEAN_AND_MEAN diff --git a/src/discord-rpc.cpp b/src/discord_rpc.cpp similarity index 99% rename from src/discord-rpc.cpp rename to src/discord_rpc.cpp index 55829c8..5e68c0f 100644 --- a/src/discord-rpc.cpp +++ b/src/discord_rpc.cpp @@ -1,4 +1,4 @@ -#include "discord-rpc.h" +#include "discord_rpc.h" #include "backoff.h" #include "discord_register.h" diff --git a/src/serialization.cpp b/src/serialization.cpp index c8a7364..8a3215f 100644 --- a/src/serialization.cpp +++ b/src/serialization.cpp @@ -1,6 +1,6 @@ #include "serialization.h" #include "connection.h" -#include "discord-rpc.h" +#include "discord_rpc.h" template void NumberToString(char* dest, T number)