mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 13:59:58 +00:00
Add APP_VERSION_AT_LEAST() macro for cleaner GFE version checks
This commit is contained in:
1 parent
b528867466
commit
a51cc972d3
3 files changed
+10
-9
No files matched your search
@@ -39,6 +39,11 @@ extern int AudioPacketDuration;
|
||||
#define isBefore24(x, y) (U24((x) - (y)) > (UINT24_MAX/2))
|
||||
#define isBefore32(x, y) (U32((x) - (y)) > (UINT32_MAX/2))
|
||||
|
||||
#define APP_VERSION_AT_LEAST(a, b, c, d) \
|
||||
((AppVersionQuad[0] > (a)) || \
|
||||
(AppVersionQuad[0] == (a) && AppVersionQuad[1] > (b)) || \
|
||||
(AppVersionQuad[0] == (a) && AppVersionQuad[1] == (b) && AppVersionQuad[2] >= (c)))
|
||||
|
||||
#define UDP_RECV_POLL_TIMEOUT_MS 100
|
||||
|
||||
// At this value or above, we will request high quality audio unless CAPABILITY_SLOW_OPUS_DECODER
|
||||
|
||||
Reference in new issue
Block a user