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
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
Ben Morse
2d0661c906
fix debug build with static crt
...
CMAKE_BUILD_TYPE is not set at configuration time, so we can't test
against it. So, we string-replace /MD with /MT in the c[xx] flags for
the different targets. CF:
https://stackoverflow.com/questions/14172856/cmake-compile-with-mt-instead-of-md
2018-01-05 10:42:44 -08:00
Chris Marsh
1a278528a2
Add discriminator to join request
2017-12-01 14:41:20 -08:00
Chris Marsh
b01d0a8af3
Move the signing stuff out of cmake
2017-11-29 14:00:37 -08:00
Chris Marsh
8af28e46be
Disable code formatting on CI builds.
2017-11-29 09:50:30 -08:00
Michał Janiszewski
2af5adca3d
Use simpler version of GetModuleFileNameW
...
As per
https://msdn.microsoft.com/en-us/library/windows/desktop/ms683198(v=vs.85).aspx ,
the advised use for getting the file name of a module from `<current
process>` is to use the simplified version. Additionally, this clears
the confusion introduced in Win7's PSAPI which moved
`GetModuleFileNameExW` into the kernel, changing its signature to
`K32GetModuleFileNameExW`, effectively breaking pre-Win7 uses unless
actively mitigated with `#define PSAPI_VERSION 1`
2017-11-29 08:08:47 -08:00
Chris Marsh
7c3e28870e
wip more build script, add signing
2017-11-28 10:27:40 -08:00
Chris Marsh
9130707086
Wrap std::thread in a holder that joins it on destruction.
2017-11-28 09:16:00 -08:00
Michał Janiszewski
95be02d4ce
Add Travis CI support
2017-11-17 10:53:59 -08:00
Chris Marsh
c834a2e6d9
Thanks, paranoia
2017-11-17 09:15:24 -08:00
Chris Marsh
6a963456ed
Thanks, Danny.
2017-11-17 09:13:22 -08:00
Michał Janiszewski
2b248a6cef
Don't use hardcoded paths for installation targets
2017-11-16 09:03:17 -08:00
Ted John
c9cf6b3f41
Move /MT directive to MSVC only
2017-11-16 09:03:17 -08:00
Ted John
704c56d13f
Add option for building with /MT
2017-11-16 09:03:17 -08:00
Ted John
5085d23dd1
Improve cmakelists for vcpkg building
...
- Remove forced /MT directive.
- Allow building for debug.
- Add option to prevent building of example apps.
2017-11-16 09:03:17 -08:00
Michał Janiszewski
b206dd44f0
Use -fPIC option when building shared libs
2017-11-15 09:22:07 -08:00
Michał Janiszewski
d121bbe709
Use cmake-standard flag BUILD_SHARED_LIBS
...
This removes custom `BUILD_DYNAMIC_LIB` option and replaces it with a
standard BUILD_SHARED_LIBS:
https://cmake.org/cmake/help/v3.7/variable/BUILD_SHARED_LIBS.html
Although not mentioned in the documentation there, this flag is
implicitly available.
2017-11-15 09:22:07 -08:00
Michał Janiszewski
cfd6470946
Add a comment explaining WINVER macros for MinGW
2017-11-15 08:20:48 -08:00
Michał Janiszewski
f22f299330
Fix mingw builds
2017-11-15 08:20:48 -08:00
Michał Janiszewski
a1ab6c96f2
Fix unused result
2017-11-13 10:38:18 -08:00
Max Kamps
0ea7ddbd5a
Fix CMake issue when ENABLE_IO_THREAD=OFF ( #28 )
...
This was probably just a typo.
2017-11-13 08:01:58 -08:00
Chris Marsh
2f54e62c23
fix include order
2017-11-10 13:14:00 -08:00
Ivan Molodetskikh
54abef2624
Fix unused parameter warning triggering
2017-11-10 09:59:51 -08:00
Ivan Molodetskikh
c5d70514ac
Use steam://rungameid/
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
7dc663a170
Static link crt
2017-11-09 14:24:30 -08:00
ArsenArsen
ca5d70a5f9
Add more -Wflags
2017-11-09 13:08:05 -08:00
ArsenArsen
ee9c504d1c
Change -Weverything to -Wall for more compilers
2017-11-09 13:08:05 -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
Mason Sciotti
dafd85c39f
Rename avatarUrl
-> avatar
for API consistency
2017-10-17 13:34:03 -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
990c8d4be6
Enable warnings, clang edition.
2017-10-12 16:08:08 -07: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
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
fb87e7c193
ReadFile and WriteFile really want to report how many bytes were read/written.
2017-09-07 16:16:34 -07:00
Chris Marsh
19abe80449
Add a few more null checks.
2017-09-07 09:23:35 -07:00
Chris Marsh
fa39179be7
Fix up doing builds script, add packaging up results.
2017-09-07 09:05:41 -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
4cf8ca5670
Remove dep on rapidjson/internal
2017-08-28 10:43:36 -07:00
Chris Marsh
e07806424b
copy-n-paste bug
2017-08-28 10:02:37 -07:00
Chris Marsh
5882823830
OSX build fix
2017-08-21 12:51:38 -07:00
Chris Marsh
0271889b2e
Allow for disconnect/reconnect.
2017-08-03 10:47:27 -07:00
Chris Marsh
ee11358d7f
null or empty strings should be omitted
2017-08-02 14:57:02 -07:00
Chris Marsh
7324ae890c
squelch warnings in 64bit compile
2017-08-02 14:56:39 -07:00
Chris Marsh
60ad70adc2
Fix ordering of ready/disconnect callbacks.
2017-08-02 10:44:55 -07:00