├── TvTestRPC ├── 32 │ ├── lib │ │ └── discord-rpc.lib │ └── include │ │ ├── discord_register.h │ │ └── discord_rpc.h ├── 64 │ ├── lib │ │ ├── icuuc.lib │ │ └── discord-rpc.lib │ └── include │ │ ├── discord_register.h │ │ └── discord_rpc.h ├── resource.h ├── TvTestRPC.rc ├── TVTestPlugin.h ├── Exports.def ├── stdafx.h ├── TvTestRPC.vcxproj.filters ├── strconv.h ├── TvTestRPC.cpp └── TvTestRPC.vcxproj ├── LICENSE ├── TvTestRPC.sln ├── .gitattributes ├── README.md └── .gitignore /TvTestRPC/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noriokun4649/TvTestRPC/HEAD/TvTestRPC/resource.h -------------------------------------------------------------------------------- /TvTestRPC/TvTestRPC.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noriokun4649/TvTestRPC/HEAD/TvTestRPC/TvTestRPC.rc -------------------------------------------------------------------------------- /TvTestRPC/TVTestPlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noriokun4649/TvTestRPC/HEAD/TvTestRPC/TVTestPlugin.h -------------------------------------------------------------------------------- /TvTestRPC/64/lib/icuuc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noriokun4649/TvTestRPC/HEAD/TvTestRPC/64/lib/icuuc.lib -------------------------------------------------------------------------------- /TvTestRPC/Exports.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | TVTGetVersion 3 | TVTGetPluginInfo 4 | TVTInitialize 5 | TVTFinalize 6 | -------------------------------------------------------------------------------- /TvTestRPC/32/lib/discord-rpc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noriokun4649/TvTestRPC/HEAD/TvTestRPC/32/lib/discord-rpc.lib -------------------------------------------------------------------------------- /TvTestRPC/64/lib/discord-rpc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noriokun4649/TvTestRPC/HEAD/TvTestRPC/64/lib/discord-rpc.lib -------------------------------------------------------------------------------- /TvTestRPC/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : 標準のシステム インクルード ファイルのインクルード ファイル、 2 | // または、参照回数が多く、かつあまり変更されない、プロジェクト専用のインクルード ファイル 3 | // を記述します。 4 | // 5 | #pragma once 6 | 7 | #define WIN32_LEAN_AND_MEAN // Windows ヘッダーからほとんど使用されていない部分を除外する 8 | // Windows ヘッダー ファイル 9 | #include 10 | #include 11 | #include 12 | #include 13 | #define TVTEST_PLUGIN_CLASS_IMPLEMENT // プラグインをクラスとして実装 14 | #include "TVTestPlugin.h" 15 | #include "discord_rpc.h" 16 | #include "strconv.h" 17 | 18 | 19 | 20 | // プログラムに必要な追加ヘッダーをここで参照してください 21 | -------------------------------------------------------------------------------- /TvTestRPC/32/include/discord_register.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(DISCORD_DYNAMIC_LIB) 4 | #if defined(_WIN32) 5 | #if defined(DISCORD_BUILDING_SDK) 6 | #define DISCORD_EXPORT __declspec(dllexport) 7 | #else 8 | #define DISCORD_EXPORT __declspec(dllimport) 9 | #endif 10 | #else 11 | #define DISCORD_EXPORT __attribute__((visibility("default"))) 12 | #endif 13 | #else 14 | #define DISCORD_EXPORT 15 | #endif 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | DISCORD_EXPORT void Discord_Register(const char* applicationId, const char* command); 22 | DISCORD_EXPORT void Discord_RegisterSteamGame(const char* applicationId, const char* steamId); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | -------------------------------------------------------------------------------- /TvTestRPC/64/include/discord_register.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(DISCORD_DYNAMIC_LIB) 4 | #if defined(_WIN32) 5 | #if defined(DISCORD_BUILDING_SDK) 6 | #define DISCORD_EXPORT __declspec(dllexport) 7 | #else 8 | #define DISCORD_EXPORT __declspec(dllimport) 9 | #endif 10 | #else 11 | #define DISCORD_EXPORT __attribute__((visibility("default"))) 12 | #endif 13 | #else 14 | #define DISCORD_EXPORT 15 | #endif 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | DISCORD_EXPORT void Discord_Register(const char* applicationId, const char* command); 22 | DISCORD_EXPORT void Discord_RegisterSteamGame(const char* applicationId, const char* steamId); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 noriokun4649 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /TvTestRPC/TvTestRPC.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | ヘッダー ファイル 20 | 21 | 22 | ヘッダー ファイル 23 | 24 | 25 | ヘッダー ファイル 26 | 27 | 28 | 29 | 30 | ソース ファイル 31 | 32 | 33 | 34 | 35 | リソース ファイル 36 | 37 | 38 | -------------------------------------------------------------------------------- /TvTestRPC.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30611.23 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TvTestRPC", "TvTestRPC\TvTestRPC.vcxproj", "{CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}.Debug|x64.ActiveCfg = Debug|x64 17 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}.Debug|x64.Build.0 = Debug|x64 18 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}.Debug|x86.ActiveCfg = Debug|Win32 19 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}.Debug|x86.Build.0 = Debug|Win32 20 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}.Release|x64.ActiveCfg = Release|x64 21 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}.Release|x64.Build.0 = Release|x64 22 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}.Release|x86.ActiveCfg = Release|Win32 23 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {A70FB96E-DC6F-43C1-B3A1-A72EF6F87248} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TvTestRPC 2 | ![GitHub all releases](https://img.shields.io/github/downloads/noriokun4649/TvTestRPC/total) ![GitHub](https://img.shields.io/github/license/noriokun4649/TvTestRPC) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/noriokun4649/TvTestRPC) 3 | TvTestでDiscordのRPCが使えるようになるプラグインです。 4 | 5 | このプログラムで利用されているOSSライセンス 6 | 7 | strconv.h - MIT License 8 | 9 | Copyright (c) 2019 JavaCommons 10 | 11 | Permission is hereby granted, free of charge, to any person obtaining a copy 12 | of this software and associated documentation files (the "Software"), to deal 13 | in the Software without restriction, including without limitation the rights 14 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 | copies of the Software, and to permit persons to whom the Software is 16 | furnished to do so, subject to the following conditions: 17 | 18 | The above copyright notice and this permission notice shall be included in all 19 | copies or substantial portions of the Software. 20 | 21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 27 | SOFTWARE. 28 | 29 | ------------------------------------------------------------------------------- 30 | 31 | discord-rpc - MIT License 32 | 33 | Copyright 2017 Discord, Inc. 34 | 35 | Permission is hereby granted, free of charge, to any person obtaining a copy of 36 | this software and associated documentation files (the "Software"), to deal in 37 | the Software without restriction, including without limitation the rights to 38 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 39 | of the Software, and to permit persons to whom the Software is furnished to do 40 | so, subject to the following conditions: 41 | 42 | The above copyright notice and this permission notice shall be included in all 43 | copies or substantial portions of the Software. 44 | 45 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 46 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 47 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 48 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 49 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 50 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 51 | SOFTWARE. 52 | -------------------------------------------------------------------------------- /TvTestRPC/32/include/discord_rpc.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | // clang-format off 5 | 6 | #if defined(DISCORD_DYNAMIC_LIB) 7 | # if defined(_WIN32) 8 | # if defined(DISCORD_BUILDING_SDK) 9 | # define DISCORD_EXPORT __declspec(dllexport) 10 | # else 11 | # define DISCORD_EXPORT __declspec(dllimport) 12 | # endif 13 | # else 14 | # define DISCORD_EXPORT __attribute__((visibility("default"))) 15 | # endif 16 | #else 17 | # define DISCORD_EXPORT 18 | #endif 19 | 20 | // clang-format on 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | typedef struct DiscordRichPresence { 27 | const char* state; /* max 128 bytes */ 28 | const char* details; /* max 128 bytes */ 29 | int64_t startTimestamp; 30 | int64_t endTimestamp; 31 | const char* largeImageKey; /* max 32 bytes */ 32 | const char* largeImageText; /* max 128 bytes */ 33 | const char* smallImageKey; /* max 32 bytes */ 34 | const char* smallImageText; /* max 128 bytes */ 35 | const char* partyId; /* max 128 bytes */ 36 | int partySize; 37 | int partyMax; 38 | const char* matchSecret; /* max 128 bytes */ 39 | const char* joinSecret; /* max 128 bytes */ 40 | const char* spectateSecret; /* max 128 bytes */ 41 | int8_t instance; 42 | } DiscordRichPresence; 43 | 44 | typedef struct DiscordUser { 45 | const char* userId; 46 | const char* username; 47 | const char* discriminator; 48 | const char* avatar; 49 | } DiscordUser; 50 | 51 | typedef struct DiscordEventHandlers { 52 | void (*ready)(const DiscordUser* request); 53 | void (*disconnected)(int errorCode, const char* message); 54 | void (*errored)(int errorCode, const char* message); 55 | void (*joinGame)(const char* joinSecret); 56 | void (*spectateGame)(const char* spectateSecret); 57 | void (*joinRequest)(const DiscordUser* request); 58 | } DiscordEventHandlers; 59 | 60 | #define DISCORD_REPLY_NO 0 61 | #define DISCORD_REPLY_YES 1 62 | #define DISCORD_REPLY_IGNORE 2 63 | 64 | DISCORD_EXPORT void Discord_Initialize(const char* applicationId, 65 | DiscordEventHandlers* handlers, 66 | int autoRegister, 67 | const char* optionalSteamId); 68 | DISCORD_EXPORT void Discord_Shutdown(void); 69 | 70 | /* checks for incoming messages, dispatches callbacks */ 71 | DISCORD_EXPORT void Discord_RunCallbacks(void); 72 | 73 | /* If you disable the lib starting its own io thread, you'll need to call this from your own */ 74 | #ifdef DISCORD_DISABLE_IO_THREAD 75 | DISCORD_EXPORT void Discord_UpdateConnection(void); 76 | #endif 77 | 78 | DISCORD_EXPORT void Discord_UpdatePresence(const DiscordRichPresence* presence); 79 | DISCORD_EXPORT void Discord_ClearPresence(void); 80 | 81 | DISCORD_EXPORT void Discord_Respond(const char* userid, /* DISCORD_REPLY_ */ int reply); 82 | 83 | DISCORD_EXPORT void Discord_UpdateHandlers(DiscordEventHandlers* handlers); 84 | 85 | #ifdef __cplusplus 86 | } /* extern "C" */ 87 | #endif 88 | -------------------------------------------------------------------------------- /TvTestRPC/64/include/discord_rpc.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | // clang-format off 5 | 6 | #if defined(DISCORD_DYNAMIC_LIB) 7 | # if defined(_WIN32) 8 | # if defined(DISCORD_BUILDING_SDK) 9 | # define DISCORD_EXPORT __declspec(dllexport) 10 | # else 11 | # define DISCORD_EXPORT __declspec(dllimport) 12 | # endif 13 | # else 14 | # define DISCORD_EXPORT __attribute__((visibility("default"))) 15 | # endif 16 | #else 17 | # define DISCORD_EXPORT 18 | #endif 19 | 20 | // clang-format on 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | typedef struct DiscordRichPresence { 27 | const char* state; /* max 128 bytes */ 28 | const char* details; /* max 128 bytes */ 29 | int64_t startTimestamp; 30 | int64_t endTimestamp; 31 | const char* largeImageKey; /* max 32 bytes */ 32 | const char* largeImageText; /* max 128 bytes */ 33 | const char* smallImageKey; /* max 32 bytes */ 34 | const char* smallImageText; /* max 128 bytes */ 35 | const char* partyId; /* max 128 bytes */ 36 | int partySize; 37 | int partyMax; 38 | const char* matchSecret; /* max 128 bytes */ 39 | const char* joinSecret; /* max 128 bytes */ 40 | const char* spectateSecret; /* max 128 bytes */ 41 | int8_t instance; 42 | } DiscordRichPresence; 43 | 44 | typedef struct DiscordUser { 45 | const char* userId; 46 | const char* username; 47 | const char* discriminator; 48 | const char* avatar; 49 | } DiscordUser; 50 | 51 | typedef struct DiscordEventHandlers { 52 | void (*ready)(const DiscordUser* request); 53 | void (*disconnected)(int errorCode, const char* message); 54 | void (*errored)(int errorCode, const char* message); 55 | void (*joinGame)(const char* joinSecret); 56 | void (*spectateGame)(const char* spectateSecret); 57 | void (*joinRequest)(const DiscordUser* request); 58 | } DiscordEventHandlers; 59 | 60 | #define DISCORD_REPLY_NO 0 61 | #define DISCORD_REPLY_YES 1 62 | #define DISCORD_REPLY_IGNORE 2 63 | 64 | DISCORD_EXPORT void Discord_Initialize(const char* applicationId, 65 | DiscordEventHandlers* handlers, 66 | int autoRegister, 67 | const char* optionalSteamId); 68 | DISCORD_EXPORT void Discord_Shutdown(void); 69 | 70 | /* checks for incoming messages, dispatches callbacks */ 71 | DISCORD_EXPORT void Discord_RunCallbacks(void); 72 | 73 | /* If you disable the lib starting its own io thread, you'll need to call this from your own */ 74 | #ifdef DISCORD_DISABLE_IO_THREAD 75 | DISCORD_EXPORT void Discord_UpdateConnection(void); 76 | #endif 77 | 78 | DISCORD_EXPORT void Discord_UpdatePresence(const DiscordRichPresence* presence); 79 | DISCORD_EXPORT void Discord_ClearPresence(void); 80 | 81 | DISCORD_EXPORT void Discord_Respond(const char* userid, /* DISCORD_REPLY_ */ int reply); 82 | 83 | DISCORD_EXPORT void Discord_UpdateHandlers(DiscordEventHandlers* handlers); 84 | 85 | #ifdef __cplusplus 86 | } /* extern "C" */ 87 | #endif 88 | -------------------------------------------------------------------------------- /TvTestRPC/strconv.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | /* Last Modified: 2019/02/27 23:23 */ 3 | #ifndef STRCONV_H 4 | #define STRCONV_H 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | #if __cplusplus >= 201103L 11 | static inline std::wstring cp_to_wide(const std::string &s, UINT codepage) 12 | { 13 | int in_length = (int)s.length(); 14 | int out_length = MultiByteToWideChar(codepage, 0, s.c_str(), in_length, 0, 0); 15 | std::wstring result(out_length, L'\0'); 16 | if (out_length) MultiByteToWideChar(codepage, 0, s.c_str(), in_length, &result[0], out_length); 17 | return result; 18 | } 19 | static inline std::string wide_to_cp(const std::wstring &s, UINT codepage) 20 | { 21 | int in_length = (int)s.length(); 22 | int out_length = WideCharToMultiByte(codepage, 0, s.c_str(), in_length, 0, 0, 0, 0); 23 | std::string result(out_length, '\0'); 24 | if (out_length) WideCharToMultiByte(codepage, 0, s.c_str(), in_length, &result[0], out_length, 0, 0); 25 | return result; 26 | } 27 | #else /* __cplusplus < 201103L */ 28 | static inline std::wstring cp_to_wide(const std::string &s, UINT codepage) 29 | { 30 | int in_length = (int)s.length(); 31 | int out_length = MultiByteToWideChar(codepage, 0, s.c_str(), in_length, 0, 0); 32 | std::vector buffer(out_length); 33 | if (out_length) MultiByteToWideChar(codepage, 0, s.c_str(), in_length, &buffer[0], out_length); 34 | std::wstring result(buffer.begin(), buffer.end()); 35 | return result; 36 | } 37 | static inline std::string wide_to_cp(const std::wstring &s, UINT codepage) 38 | { 39 | int in_length = (int)s.length(); 40 | int out_length = WideCharToMultiByte(codepage, 0, s.c_str(), in_length, 0, 0, 0, 0); 41 | std::vector buffer(out_length); 42 | if (out_length) WideCharToMultiByte(codepage, 0, s.c_str(), in_length, &buffer[0], out_length, 0, 0); 43 | std::string result(buffer.begin(), buffer.end()); 44 | return result; 45 | } 46 | #endif 47 | 48 | static inline std::string cp_to_utf8(const std::string &s, UINT codepage) 49 | { 50 | if (codepage == CP_UTF8) return s; 51 | std::wstring wide = cp_to_wide(s, codepage); 52 | return wide_to_cp(wide, CP_UTF8); 53 | } 54 | static inline std::string utf8_to_cp(const std::string &s, UINT codepage) 55 | { 56 | if (codepage == CP_UTF8) return s; 57 | std::wstring wide = cp_to_wide(s, CP_UTF8); 58 | return wide_to_cp(wide, codepage); 59 | } 60 | 61 | static inline std::wstring ansi_to_wide(const std::string &s) 62 | { 63 | return cp_to_wide(s, CP_ACP); 64 | } 65 | static inline std::string wide_to_ansi(const std::wstring &s) 66 | { 67 | return wide_to_cp(s, CP_ACP); 68 | } 69 | 70 | static inline std::wstring sjis_to_wide(const std::string &s) 71 | { 72 | return cp_to_wide(s, 932); 73 | } 74 | static inline std::string wide_to_sjis(const std::wstring &s) 75 | { 76 | return wide_to_cp(s, 932); 77 | } 78 | 79 | static inline std::wstring utf8_to_wide(const std::string &s) 80 | { 81 | return cp_to_wide(s, CP_UTF8); 82 | } 83 | static inline std::string wide_to_utf8(const std::wstring &s) 84 | { 85 | return wide_to_cp(s, CP_UTF8); 86 | } 87 | 88 | static inline std::string ansi_to_utf8(const std::string &s) 89 | { 90 | return cp_to_utf8(s, CP_ACP); 91 | } 92 | static inline std::string utf8_to_ansi(const std::string &s) 93 | { 94 | return utf8_to_cp(s, CP_ACP); 95 | } 96 | 97 | static inline std::string sjis_to_utf8(const std::string &s) 98 | { 99 | return cp_to_utf8(s, 932); 100 | } 101 | static inline std::string utf8_to_sjis(const std::string &s) 102 | { 103 | return utf8_to_cp(s, 932); 104 | } 105 | 106 | #endif /* STRCONV_H */ -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /TvTestRPC/TvTestRPC.cpp: -------------------------------------------------------------------------------- 1 | // TvTestRPC.cpp : DLL アプリケーション用にエクスポートされる関数を定義します。 2 | // 3 | 4 | #include "stdafx.h" 5 | #include 6 | #include 7 | #include "resource.h" 8 | #include 9 | #pragma comment(lib,"shlwapi.lib") 10 | 11 | class CMyPlugin : public TVTest::CTVTestPlugin 12 | { 13 | DiscordEventHandlers handlers{}; 14 | static LRESULT CALLBACK EventCallback(UINT Event, LPARAM lParam1, LPARAM lParam2, void* pClientData); 15 | static INT_PTR CALLBACK SettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam, void* pClientData); 16 | bool ShowDialog(HWND hwndOwner); 17 | TCHAR m_szIniFileName[MAX_PATH]; 18 | bool conf_ChannelMode = false; 19 | bool conf_TimeMode = false; 20 | bool conf_LogoMode = false; 21 | bool conf_isFinalized = false; 22 | bool InitSettings(); 23 | bool pluginState = false; 24 | void SaveConf(); 25 | void InitDiscord(); 26 | void UpdateState(); 27 | const std::vector knownIds = { 32736, 32737, 32738, 32739, 32740, 32741, 3274, 32742, 32327, 32375, 32391}; 28 | 29 | public: 30 | time_t SystemTime2Timet(const SYSTEMTIME&); 31 | 32 | DWORD GetVersion() override 33 | { 34 | return TVTEST_PLUGIN_VERSION_(0, 0, 1); 35 | } 36 | 37 | bool GetPluginInfo(TVTest::PluginInfo* pInfo) override 38 | { 39 | pInfo->Type = TVTest::PLUGIN_TYPE_NORMAL; 40 | pInfo->Flags = TVTest::PLUGIN_FLAG_HASSETTINGS; 41 | pInfo->pszPluginName = L"TvTest RPC"; 42 | pInfo->pszCopyright = L"(c) 2019-2020 noriokun4649"; 43 | pInfo->pszDescription = L"DiscordRPCをTvTestで実現します。Discordで視聴中のチャンネルなどの情報が通知されます。"; 44 | return true; 45 | } 46 | 47 | bool Initialize() override 48 | { 49 | InitDiscord(); 50 | m_pApp->SetEventCallback(EventCallback, this); 51 | return true; 52 | } 53 | bool Finalize() override 54 | { 55 | Discord_Shutdown(); 56 | SaveConf(); 57 | return true; 58 | } 59 | }; 60 | 61 | bool CMyPlugin::InitSettings() { 62 | ::GetModuleFileName(g_hinstDLL, m_szIniFileName, MAX_PATH); 63 | ::PathRenameExtension(m_szIniFileName, TEXT(".ini")); 64 | conf_ChannelMode = ::GetPrivateProfileInt(TEXT("Settings"), TEXT("Mode"), conf_ChannelMode, m_szIniFileName) != 0; 65 | conf_TimeMode = ::GetPrivateProfileInt(TEXT("Settings"), TEXT("TimeMode"), conf_ChannelMode, m_szIniFileName) != 0; 66 | conf_LogoMode = ::GetPrivateProfileInt(TEXT("Settings"), TEXT("LogoMode"), conf_ChannelMode, m_szIniFileName) != 0; 67 | m_pApp->AddLog(m_szIniFileName); 68 | conf_isFinalized = true; 69 | return true; 70 | } 71 | 72 | void CMyPlugin::InitDiscord() 73 | { 74 | Discord_Initialize("577065126084214816", &handlers, 1, NULL); 75 | } 76 | 77 | void CMyPlugin::UpdateState() 78 | { 79 | DiscordRichPresence discordPresence; 80 | memset(&discordPresence, 0, sizeof(discordPresence)); 81 | TVTest::ProgramInfo Info; 82 | TVTest::ServiceInfo Service; 83 | TVTest::ChannelInfo ChannelInfo; 84 | Info.Size = sizeof(Info); 85 | Service.Size = sizeof(Service); 86 | ChannelInfo.Size = sizeof(ChannelInfo); 87 | wchar_t eventName[128]; 88 | wchar_t eventText[128]; 89 | wchar_t eventExtText[128]; 90 | Info.pszEventName = eventName; 91 | Info.MaxEventName = sizeof(eventName) / sizeof(eventName[0]); 92 | Info.pszEventText = eventText; 93 | Info.MaxEventText = sizeof(eventText) / sizeof(eventText[0]); 94 | Info.pszEventExtText = eventExtText; 95 | Info.MaxEventExtText = sizeof(eventExtText) / sizeof(eventExtText[0]); 96 | std::string channelName; 97 | std::string eventNamed; 98 | 99 | if (m_pApp->GetCurrentProgramInfo(&Info)) { 100 | eventNamed = wide_to_utf8(Info.pszEventName); 101 | auto start = SystemTime2Timet(Info.StartTime); 102 | auto end = SystemTime2Timet(Info.StartTime) + Info.Duration; 103 | discordPresence.startTimestamp = start; 104 | if (!conf_TimeMode) discordPresence.endTimestamp = end; 105 | } 106 | 107 | if (m_pApp->GetServiceInfo(0, &Service) && m_pApp->GetCurrentChannelInfo(&ChannelInfo)) { 108 | if (!conf_ChannelMode) { 109 | channelName = wide_to_utf8(Service.szServiceName); 110 | } 111 | else { 112 | channelName = wide_to_utf8(ChannelInfo.szChannelName); 113 | } 114 | 115 | auto id = ChannelInfo.NetworkID; 116 | auto isId = find(knownIds.begin(), knownIds.end(), id) != knownIds.end(); 117 | 118 | if (isId && conf_LogoMode) { 119 | auto netId = std::to_string(id); 120 | discordPresence.largeImageKey = netId.c_str(); 121 | discordPresence.smallImageKey = "tvtest"; 122 | discordPresence.smallImageText = "TvTest"; 123 | } 124 | else { 125 | discordPresence.largeImageKey = "tvtest"; 126 | discordPresence.smallImageKey = ""; 127 | discordPresence.smallImageText = ""; 128 | } 129 | } 130 | 131 | discordPresence.details = channelName.c_str(); 132 | discordPresence.largeImageText = channelName.c_str(); 133 | discordPresence.state = eventNamed.c_str(); 134 | discordPresence.partyId = ""; 135 | discordPresence.partySize = 0; 136 | discordPresence.partyMax = 0; 137 | discordPresence.matchSecret = ""; 138 | discordPresence.joinSecret = ""; 139 | discordPresence.spectateSecret = ""; 140 | discordPresence.instance = 0; 141 | Discord_UpdatePresence(&discordPresence); 142 | 143 | } 144 | 145 | void CMyPlugin::SaveConf() { 146 | if (conf_isFinalized) { 147 | struct IntString { 148 | IntString(int Value) { ::wsprintf(m_szBuffer, TEXT("%d"), Value); } 149 | operator LPCTSTR() const { return m_szBuffer; } 150 | TCHAR m_szBuffer[16]; 151 | }; 152 | 153 | ::WritePrivateProfileString(TEXT("Settings"), TEXT("Mode"), IntString(conf_ChannelMode), m_szIniFileName); 154 | ::WritePrivateProfileString(TEXT("Settings"), TEXT("TimeMode"), IntString(conf_TimeMode), m_szIniFileName); 155 | ::WritePrivateProfileString(TEXT("Settings"), TEXT("LogoMode"), IntString(conf_LogoMode), m_szIniFileName); 156 | } 157 | } 158 | 159 | time_t CMyPlugin::SystemTime2Timet(const SYSTEMTIME& st) 160 | { 161 | struct tm gm = { st.wSecond, st.wMinute, st.wHour, st.wDay, st.wMonth - 1, st.wYear - 1900, st.wDayOfWeek, 0, 0 }; 162 | return mktime(&gm); 163 | } 164 | 165 | TVTest::CTVTestPlugin* CreatePluginClass() 166 | { 167 | return new CMyPlugin; 168 | } 169 | 170 | bool CMyPlugin::ShowDialog(HWND hwndOwner) { 171 | 172 | TVTest::ShowDialogInfo Info; 173 | Info.Flags = 0; 174 | Info.hinst = g_hinstDLL; 175 | Info.pszTemplate = MAKEINTRESOURCE(IDD_DIALOG1); 176 | Info.pMessageFunc = SettingsDlgProc; 177 | Info.pClientData = this; 178 | Info.hwndOwner = hwndOwner; 179 | 180 | return m_pApp->ShowDialog(&Info) == IDOK; 181 | } 182 | 183 | INT_PTR CALLBACK CMyPlugin::SettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam, void* pClientData) { 184 | CMyPlugin* pThis = static_cast(pClientData); 185 | switch (uMsg) 186 | { 187 | case WM_INITDIALOG: 188 | ::CheckDlgButton(hDlg, IDC_CHECK1, pThis->conf_ChannelMode ? BST_CHECKED : BST_UNCHECKED); 189 | ::CheckDlgButton(hDlg, IDC_CHECK2, pThis->conf_TimeMode ? BST_CHECKED : BST_UNCHECKED); 190 | ::CheckDlgButton(hDlg, IDC_CHECK3, pThis->conf_LogoMode ? BST_CHECKED : BST_UNCHECKED); 191 | return TRUE; 192 | case WM_COMMAND: 193 | switch (LOWORD(wParam)) { 194 | case IDOK: 195 | pThis->conf_ChannelMode = ::IsDlgButtonChecked(hDlg, IDC_CHECK1) == BST_CHECKED; 196 | pThis->conf_TimeMode = ::IsDlgButtonChecked(hDlg, IDC_CHECK2) == BST_CHECKED; 197 | pThis->conf_LogoMode = ::IsDlgButtonChecked(hDlg, IDC_CHECK3) == BST_CHECKED; 198 | pThis->UpdateState(); 199 | case IDCANCEL: 200 | ::EndDialog(hDlg, LOWORD(wParam)); 201 | return TRUE; 202 | } 203 | default: 204 | break; 205 | return FALSE; 206 | } 207 | return FALSE; 208 | } 209 | 210 | LRESULT CALLBACK CMyPlugin::EventCallback(UINT Event, LPARAM lParam1, LPARAM lParam2, void* pClientData) 211 | { 212 | CMyPlugin* pThis = static_cast(pClientData); 213 | bool fEnable = lParam1 != 0; 214 | switch (Event) 215 | { 216 | case TVTest::EVENT_PLUGINENABLE: 217 | if (fEnable) { 218 | pThis->UpdateState(); 219 | pThis->InitSettings(); 220 | } 221 | else 222 | { 223 | pThis->pluginState = false; 224 | Discord_ClearPresence(); 225 | } 226 | return TRUE; 227 | case TVTest::EVENT_SERVICECHANGE: 228 | case TVTest::EVENT_CHANNELCHANGE: 229 | case TVTest::EVENT_SERVICEUPDATE: 230 | pThis->UpdateState(); 231 | return TRUE; 232 | case TVTest::EVENT_PLUGINSETTINGS: 233 | return pThis->ShowDialog(reinterpret_cast(lParam1)); 234 | } 235 | return 0; 236 | } -------------------------------------------------------------------------------- /TvTestRPC/TvTestRPC.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 15.0 23 | {CB9FE81E-CE66-4063-AF5A-6CDC869D0E60} 24 | Win32Proj 25 | TvTestRPC 26 | 10.0 27 | 28 | 29 | 30 | DynamicLibrary 31 | true 32 | v142 33 | Unicode 34 | false 35 | 36 | 37 | DynamicLibrary 38 | false 39 | v142 40 | true 41 | Unicode 42 | false 43 | 44 | 45 | DynamicLibrary 46 | true 47 | v142 48 | Unicode 49 | false 50 | 51 | 52 | DynamicLibrary 53 | false 54 | v142 55 | true 56 | Unicode 57 | false 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | true 79 | .tvtp 80 | 81 | 82 | true 83 | .tvtp 84 | 85 | 86 | false 87 | .tvtp 88 | 89 | 90 | false 91 | .tvtp 92 | 93 | 94 | 95 | Use 96 | Level3 97 | Disabled 98 | true 99 | WIN32;_DEBUG;TVTESTRPC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 100 | true 101 | $(ProjectDir)32\include;%(AdditionalIncludeDirectories) 102 | 103 | 104 | Windows 105 | true 106 | discord-rpc.lib;%(AdditionalDependencies) 107 | $(ProjectDir)32\lib;%(AdditionalLibraryDirectories) 108 | 109 | 110 | 111 | 112 | Use 113 | Level3 114 | Disabled 115 | true 116 | _DEBUG;TVTESTRPC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 117 | true 118 | $(ProjectDir)64\include;%(AdditionalIncludeDirectories) 119 | 120 | 121 | Windows 122 | true 123 | discord-rpc.lib;%(AdditionalDependencies) 124 | $(ProjectDir)64\lib;%(AdditionalLibraryDirectories) 125 | 126 | 127 | 128 | 129 | Use 130 | Level3 131 | MaxSpeed 132 | true 133 | false 134 | 135 | 136 | WIN32;NDEBUG;TVTESTRPC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 137 | true 138 | $(ProjectDir)32\include;%(AdditionalIncludeDirectories) 139 | false 140 | true 141 | 142 | 143 | Windows 144 | true 145 | true 146 | false 147 | discord-rpc.lib;%(AdditionalDependencies) 148 | $(ProjectDir)32\lib;%(AdditionalLibraryDirectories) 149 | Exports.def 150 | 151 | 152 | 153 | 154 | Use 155 | Level3 156 | MaxSpeed 157 | true 158 | true 159 | true 160 | NDEBUG;TVTESTRPC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 161 | true 162 | $(ProjectDir)64\include;%(AdditionalIncludeDirectories) 163 | false 164 | 165 | 166 | Windows 167 | true 168 | true 169 | true 170 | discord-rpc.lib;%(AdditionalDependencies) 171 | $(ProjectDir)64\lib;%(AdditionalLibraryDirectories) 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | Create 182 | Create 183 | Create 184 | Create 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | --------------------------------------------------------------------------------