Commit graph

113 commits

Author SHA1 Message Date
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
Chris Marsh a7eb65355e missed a format 2017-08-02 10:44:08 -07:00
Chris Marsh 2311a26eb0 Fix my dll making, also other cmake variable use 2017-08-01 13:32:56 -07:00
Chris Marsh 1e971e1161 Start on dllification 2017-07-31 15:58:39 -07:00
Chris Marsh 120fe1b069 Make these use my helper functions 2017-07-31 15:40:31 -07:00
Chris Marsh d5e6c4c11a track open/close state in connection, disconnect on read error, clarify error codes a little 2017-07-31 15:38:12 -07:00
Chris Marsh 059ab337c8 Seed random number generator 2017-07-28 13:52:34 -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 e69f9fbf71 Just keep a single queued presence message. 2017-07-28 10:59:32 -07:00
Chris Marsh a6a9b6259f missed a format I guess 2017-07-28 10:57:22 -07:00
Chris Marsh ef60ec40c3 Do/wrap error checking around json reading 2017-07-28 10:03:05 -07:00