Commit graph

21 commits

Author SHA1 Message Date
Michał Janiszewski 7e0480e2ef Apply formatting (#178) 2018-05-14 09:25:17 -07:00
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
Dmitry b0e31a9e25 MinGW and WinXP support (issue #102) (#103)
* Add MinGW and WinXP support, remove Win SDK dep when using MinGW

Was meant to add MinGW support only, WinXP support was made by accident.
Changes:
* Remove Win SDK dependency when compiled with MinGW
* Remap the Win SDK-depended functions to string.h substitutes
* Remap missing WinAPI call RegSetKeyValueW to a substitute function

* Remove warnings by pragma when using MinGW
2018-01-05 10:56:55 -08:00
Ivan Molodetskikh 54abef2624 Fix unused parameter warning triggering 2017-11-10 09:59:51 -08:00
Ivan Molodetskikh 57316cbaee clang-format I suppose 2017-11-10 09:59:51 -08:00
Chris Marsh 6fa00223ad Enable all warnings, turn the noisy ones back off, fix the others. 2017-10-12 15:39:31 -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
Chris Marsh 4cf8ca5670 Remove dep on rapidjson/internal 2017-08-28 10:43:36 -07:00
Chris Marsh 98852fba82 Wrap json writer the same way I did reader. More RAII for json writing so I'm less likely to mess it up again. 2017-07-28 13:42:58 -07:00
Chris Marsh ef60ec40c3 Do/wrap error checking around json reading 2017-07-28 10:03:05 -07:00
Chris Marsh bfcfd10baa fix some warnings, format 2017-07-27 16:08:17 -07:00
Chris Marsh 211350604b like using better 2017-07-25 13:56:56 -07:00
Chris Marsh 7a6172a300 Format 2017-07-25 09:27:48 -07:00
Chris Marsh 866e6d1104 Clean up this allocation junk 2017-07-25 09:06:48 -07:00
Chris Marsh 38c0599380 Just use stack allocations in parsing by default. 2017-07-24 14:59:45 -07:00
Chris Marsh 88ab85c81e Rename, move some json stuff to header 2017-07-24 10:54:47 -07:00
Chris Marsh 449584b9c9 Register for events for our three callbacks 2017-07-21 15:42:59 -07:00
Chris Marsh 6ea9c46f77 Rename a thing 2017-07-20 15:59:15 -07:00
Chris Marsh 827c056602 I like this better over here. 2017-07-20 15:08:34 -07:00
Chris Marsh fa437ad897 Fix up sending presence format 2017-07-20 14:59:32 -07:00
Chris Marsh 79d70b8bae Let's use rapidjson instead of roll-your-own json. Added helpers to keep allocations minimized. 2017-07-20 13:24:18 -07:00