Commit graph

290 commits

Author SHA1 Message Date
Vamsi Krishna 20cc99aeff
Disable clang-format 2022-07-28 01:49:29 +05:30
Mason Sciotti 963aa9f3e5
[Maintenance PR for Legacy Gamedevs] Add party privacy enum (#306)
* Add party privacy enum

* Add party privacy enum

* Possible unreal working

* Cast to int
2020-09-21 14:51:48 -07:00
msciotti e4c0c569ec
Clarify deprecation 2019-11-27 11:26:13 -08:00
IceNinjaman b6d0a9cdbd wchar.h instead cwchar when compiler is MinGW to prevent weird behavior with vsnwprintf (#277) 2019-11-27 11:24:32 -08:00
msciotti eff23a770a
add deprecation note to readme 2019-07-10 14:39:38 -07:00
Kenny McCormick 34ce3ac803 fix "destopFileFormat" typo (#283)
resolution for #282
2019-04-30 11:39:14 -07:00
msciotti c59fd6df20
Revert "Choose pipe number on initialize (#250)"
This reverts commit 4824b20f28.
2019-01-24 13:23:35 -08:00
Mason Sciotti 4824b20f28
Choose pipe number on initialize (#250)
* Choose pipe number on initialize

* Get pipe from base connection instance

* UE4 support

* Warnings as errors yelling

* Fix windows connection

* Oops all variables

* maybe this fixes it

* This one actually works!!!!

* Fix double function declaration
2019-01-14 00:16:22 -08:00
Mason Sciotti 4e53fa0392
Fix code signing for macOS 10.10 (#260)
* Fix code signing for macOS 10.10
- Fixes #259

* Maybe this works
2018-12-19 08:40:51 -08:00
Joshua Harrington d478ed5608 Moved UE setup to be with unity setup (#254) 2018-12-14 16:04:31 -08:00
Jan Bubenik 8db649ba5f Static EventHandler for IL2CPP support (#258)
* Added staticEventHandler which forward the invoke to the actual eventHandler set though Initialize

* Code Formatting - Replaced abs with 4 white spaces
2018-12-14 16:00:47 -08:00
Mason Sciotti e6390c8c41
Unity il2cpp support (#249)
* Initial il2cpp support attempts

* Fix crashes

* Different variable name

* Fix indenting

* Change back unneeded stuff
- callbackCalls didnt seem to do anything
2018-11-27 09:19:14 -08:00
Mason Sciotti 2fec0b6dec
Wrong name for macOS DLL file for Unity 2018-11-26 09:03:44 -08:00
Florian Spieß dd47c7c66d Improve handling of disconnects and reconnects (#228)
* Check response 0 on disconnect

From recv(): The return value will be 0 when the peer has performed an orderly shutdown

* Add persistent presence and handlers

* Use buffer instead of raw struct

* Clear presence data on shutdown

* Remove CurrentPresence and add boolean instead

This removes the need for having 2 big buffers in favor of using a small boolean
2018-11-16 10:41:49 -08:00
Michał Janiszewski 98855b4d84 Fix #210: WARNINGS_AS_ERRORS doesn't work (#211)
#210 was created under assumption `build.py` is actually used, but upon
inspecting `.travis.yml` it turns out it is not.
2018-11-06 14:55:10 -08:00
Michał Janiszewski ac2d064cb0 Flatten the condition to get rid of empty branch (#247) 2018-11-06 14:48:59 -08:00
Oliver Boudet d63ed30966 Fix typo in readme. (#245)
* fix typo in readme

* revert accidental quote change
2018-10-23 15:13:36 -07:00
Elias Batek 7716eadca3 Update D binding link (#234)
DerelictDiscordRPC has been abandoned
and superseded by Discord RPC D.
2018-09-17 17:26:28 -07:00
msciotti e32d001809
readme nits 2018-08-17 05:19:17 -07:00
msciotti 2cb9813eb6
Unity specific DLL setup 2018-08-17 05:17:57 -07:00
Mason Sciotti af380116a0
Check C# strings against UTF8 bytes instead of clamping (#221) 2018-08-16 11:23:28 -07:00
Michał Janiszewski 3d3ae7129d Fix mismatched signs in comparison after b44defe (#209)
```
../src/discord_register_linux.cpp: In function ‘void Discord_Register(const char*, const char*)’:
../src/discord_register_linux.cpp:37:31: warning: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
         if (size <= 0 || size >= sizeof(exePath)) {
                          ~~~~~^~~~~~~~~~~~~~~~~~
```
2018-07-30 12:50:49 -07:00
Sander in 't Veld b44defe60a [Linux] Null-terminate output from readlink in Discord_Register. (#208)
* Explicitly null-terminate the output from readlink in discord_register_linux.cpp.

* The return value of readlink is a signed size_t.
2018-07-27 10:04:04 -07:00
gamingexpx12 dfad394be0 Added enum for response codes (#207)
Makes it easier to respond to a join request via Blueprints, without having to look it up in the docs.
Optional and fully backwards compatible.
2018-07-25 13:23:34 -07:00
Lachee a3ad6afee2 Added Discord RPC C# implementation to list. (#205)
Added my library to the list which is a implementation written entirely in C#
2018-07-09 12:04:59 -07:00
Sleepy Flower Girl 7c41a8ec19 Fixed issue with Discord RPC not updating presence during shutdown (#189) 2018-06-07 16:10:40 -07:00
msciotti 5df1c5ae6d
copy the whole folder UE4 2018-05-30 09:40:39 -07:00
Joshua Harrington c05c7148dd Updated README with UE plugin instructions (#183)
* Updated README with UE plugin instructions

Hopefully this will save some time when others want to implement this into their own UE Projects.

* Update README.md

* cleanup UE4 plugin help
2018-05-29 13:51:39 -07:00
Ted John ba9fe00c4d Dynamically create IoThread... (#179)
So that it doesn't get deleted before Discord is destroyed.
2018-05-16 13:21:16 -07:00
Ben Morse cac0362377 don't rely on unset env vars 2018-05-14 10:05:21 -07:00
Michał Janiszewski 7e0480e2ef Apply formatting (#178) 2018-05-14 09:25:17 -07:00
Ben Morse 566076e3d8
add WARNINGS_AS_ERRORS cmake option (#176) 2018-05-10 17:46:11 -07:00
Mason Sciotti aa02012c14 alphabetize libs 2018-05-04 15:13:16 -07:00
Isaac f80bd72d22 Include pypresence library (#167) 2018-05-04 15:12:24 -07:00
Joel Schumacher acf7d6a054 Add link to lua-discordRPC (LuaJIT bindings) (#171) 2018-05-03 15:33:49 -07:00
Elias Batek 1129c2ce4f Add link to DerelictDiscordRPC (D binding) (#169)
* Add link to DerelictDiscordRPC (D binding)

* Fix alphabetic order of community-wrappers
2018-04-23 11:20:47 -07:00
Mason Sciotti 64027b336f
Adding user object to READY event (#159)
* Pass the READY event data down in onConnect

* Changes made for UE4 and Unity wrappers

* Changing object name from joinRequest to DiscordUser
2018-04-16 10:25:44 -07:00
Codecat 2ce9fe068b Syntax change to avoid gcc 4.8 segfaulting (#162) 2018-04-04 10:00:24 -07:00
Mason Sciotti be8a8e9380 ACTUALLY register the handlers on init 2018-03-29 14:33:46 -07:00
Mason Sciotti c70acbe7d1 Fix Unity buildhelper for linux
- Fixes #157
2018-03-26 10:56:05 -07:00
Mason Sciotti d97e6b48ed Note to install cmake
- Fixes #149
2018-03-26 10:37:03 -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
Kodie Goodwin 7e5d57e6fd Update cert to use new name (#158) 2018-03-23 10:18:46 -07:00
Mason Sciotti f3bd411b99
Update README.md 2018-03-19 10:29:11 -07:00
Lachee 8e0c7848a6 Added more hard mode documentation (#148)
* ACTIVITY_JOIN_REQUEST does not have a secret

There is no secret passed to a Join Request

* Added how to respond

* Update hard-mode.md

* Added some tips

Added some helpful tips. Plan to add more as I go along.
2018-03-19 10:27:29 -07:00
Felix Yan e7f9396807 Fix a typo in send-presence.c (#144) 2018-03-13 16:58:14 -07:00
Cynthia ad0b844672 Changed CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR (#143)
Helps with submodule implementations
2018-03-13 13:13:38 -07:00
Michał Janiszewski d279c24c6a Add advapi32 to linked libraries (#140)
Required by `RegCreateKeyExW` and others.
2018-03-13 13:00:47 -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