Commit graph

83 commits

Author SHA1 Message Date
Mason Sciotti
087282cd4b
Dynamic Event Handler Registration (#135)
- Discord_RegisterHandlers() exported
- C# wrapper updated
- Dynamically sub/unsub to events
- Better mutex locking, for safety!
2018-03-23 10:25:28 -07:00
Felix Yan
e7f9396807 Fix a typo in send-presence.c (#144) 2018-03-13 16:58:14 -07:00
Mason Sciotti
d9caf72e9a Add missing timestamps in UE4 example
Fixes #137
2018-03-06 09:51:31 -08:00
Mason Sciotti
e8091f5137 Changing kebab case filenames in source to snake case for consistency 2018-02-27 13:33:00 -08:00
sll552
4055565147 Update C# wrapper with visual C# compatible version (#126)
- Custom serializer to fix utf-8 strings in C#
2018-02-22 11:47:18 -08:00
Mason Sciotti
f5f2d69a72
Update Unreal Example to include Ask to Join (#125) 2018-02-12 13:47:38 -08:00
Mason Sciotti
c4201806cf
Update build.py to properly build and copy libraries for Unity and Unreal (#120) 2018-02-12 13:40:41 -08:00
Mason Sciotti
ccf04d21f5
Moving buildhelper to editor folder (#118) 2018-02-02 16:02:11 -08:00
Joe
94ee4e64d9 [Unreal] Fix for Shipping Builds (#112)
* Changes to allow plugin to work in Shipping Builds

* Add files via upload

SourceTree is case-insensitive on Windows, fixin

* Remove duplicated directory

* Platform whitelist, mac support, compilation fix.

* Finalization steps

* Mac fix

* Tabs/Spaces consistency.

* Updated build.py
https://github.com/discordapp/discord-rpc/issues/89

* .gitignore (headers)

* Renamed folder to lowercase

* Removed duplicates

* Revert to lowercase
2018-01-22 10:47:33 -08:00
Ben Morse
b85758ec19 fix decls 2018-01-09 10:41:16 -08:00
Ben Morse
6a59509b7b
add Discord_ClearPresence() (#104)
send-presence example updated - start a line with 'c' to toggle
whether presence information is sent or not.

Added ClearPresence to .cs bindings

Added ClearPresence to UE4 blueprint class.
2018-01-05 15:17:23 -08:00
Mason Sciotti
051a1eeb70 Added ATJ for unity example 2017-12-04 15:16:59 -08:00
Chris Marsh
be7fda7c50 Update build script for a more targeted set of stuff to build for unity 2017-12-01 14:41:20 -08:00
Chris Marsh
50ea4e61c6 Fix unity build for osx 2017-12-01 14:41:20 -08:00
Chris Marsh
82439911c6 wip update unity example 2017-12-01 14:41:20 -08:00
Chris Marsh
0d24fabdf4 Fix param type 2017-12-01 14:41:20 -08:00
Chris Marsh
79eea99d19 Update Unreal example (register more callbacks, still mostly debug prints) 2017-12-01 14:41:20 -08:00
Chris Marsh
c053b72f58 Update Unity example (also, remove dll, need to do that a better way) 2017-12-01 14:41:20 -08:00
Kia
5d5bc82e26 Moved generated.h include to last position as it is required by UE4. 2017-11-19 17:26:33 -08:00
Ivan Molodetskikh
57316cbaee clang-format I suppose 2017-11-10 09:59:51 -08:00
Kia
9d4d145e7f Add entry for include folder where you have to place discord-rpc.h 2017-11-10 08:13:01 -08:00
Chris Marsh
7dc663a170 Static link crt 2017-11-09 14:24:30 -08:00
Chris Marsh
a7808a20ed Fix some sizes on join request strings. 2017-11-03 13:40:30 -07:00
Chris Marsh
3bdb88d918
Unity ajt fix 2017-11-02 11:59:45 -07:00
Chris Marsh
a089aab53e Update unity. 2017-10-17 13:34:03 -07:00
Mason Sciotti
dafd85c39f Rename avatarUrl -> avatar for API consistency 2017-10-17 13:34:03 -07:00
SK83RJOSH
b1d6a7c0fc Normalize white-space 2017-10-17 09:37:56 -07:00
SK83RJOSH
e4b3ef63b7 Added request to join functionality 2017-10-17 09:37:56 -07:00
Chris Marsh
86ca320cb9 These should have been extern C. 2017-10-13 10:02:12 -07:00
Chris Marsh
6cdc830544 Missed a couple wanrings. Build example dll 2017-10-12 16:14:16 -07:00
Chris Marsh
39ff0bf3e4 Ask to join (#4)
This adds a new callback `joinRequest` and a new API function `Discord_Respond` to reply to it.
2017-10-12 13:06:55 -07:00
Josh Wood
25b6f1dcde Miscellaneous Unity Fixes (#3)
* Use simplified attribute names and ensure function calls are made with CallingConvention.Cdecl

* Remove unused imports
2017-09-28 08:15:15 -07:00
Chris Marsh
e7cdfaa64e I knew I shouldn't have checked in this dll 2017-09-21 14:04:46 -07:00
Chris Marsh
a5a56bcf68 Also do registering on OSX and Linux. 2017-09-14 08:59:32 -07:00
Chris Marsh
11e74bca5e update dll 2017-09-07 16:16:58 -07:00
Chris Marsh
fa39179be7 Fix up doing builds script, add packaging up results. 2017-09-07 09:05:41 -07:00
Chris Marsh
592f134d80 format 2017-09-06 14:27:52 -07:00
Chris Marsh
794bbccd51 Register upgrade (#2)
* Update init to take an optional Steam ID. Add register for steam game. Remove url from cmd line params to launched game.

* Start on a build script
2017-08-30 15:17:47 -07:00
Chris Marsh
8bceae0a3a autoformat missed these before? 2017-08-29 12:42:10 -07:00
Chris Marsh
4dcb4afd2e Update presence 2017-08-21 10:12:19 -07:00
Chris Marsh
6dc12b82c6 Actually hook up callbacks 2017-08-21 10:12:19 -07:00
Chris Marsh
432166ef1d Expose all the callback events, hook up connect/disconnect events in example 2017-08-21 10:12:19 -07:00
Chris Marsh
bd995f047d change to a UObject 2017-08-21 10:12:18 -07:00
Chris Marsh
63b467f81d wip make plugin do stuff 2017-08-21 10:12:18 -07:00
Chris Marsh
9c6495ab3e Toggleable connected message 2017-08-21 10:12:18 -07:00
Chris Marsh
21eb1e459b Somehow these settings were lost? 2017-08-21 10:12:18 -07:00
Chris Marsh
ff24776107 More plugin 2017-08-21 10:12:18 -07:00
Chris Marsh
70cd486e13 Start on a Discord rpc unreal plugin 2017-08-21 10:12:18 -07:00
Chris Marsh
7ca912a5ac Adding example ui 2017-08-21 10:12:18 -07:00
Chris Marsh
10383339cc Create unreal template app 2017-08-21 10:12:18 -07:00