From 13d4d3e8d7b8b3af7223d9e1fcfc4020c8e00a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=8D=9A=7ENex?= <87421482+NexIsDumb@users.noreply.github.com> Date: Tue, 26 Mar 2024 02:37:01 +0100 Subject: [PATCH] fix compiling with discord off --- source/funkin/backend/utils/DiscordUtil.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/funkin/backend/utils/DiscordUtil.hx b/source/funkin/backend/utils/DiscordUtil.hx index 9df88b3e..c485bbe2 100644 --- a/source/funkin/backend/utils/DiscordUtil.hx +++ b/source/funkin/backend/utils/DiscordUtil.hx @@ -31,11 +31,13 @@ class DiscordUtil public static var script:Script; // Constants + #if DISCORD_RPC public static var REPLY_NO:Int = Discord.REPLY_NO; public static var REPLY_YES:Int = Discord.REPLY_YES; public static var REPLY_IGNORE:Int = Discord.REPLY_IGNORE; public static var PARTY_PRIVATE:Int = Discord.PARTY_PRIVATE; public static var PARTY_PUBLIC:Int = Discord.PARTY_PUBLIC; + #end public static function init() { @@ -408,6 +410,7 @@ final class DUser { } + #if DISCORD_RPC public static function initRaw(req:cpp.RawConstPointer) { return init(cpp.ConstPointer.fromRaw(req).ptr); @@ -431,6 +434,7 @@ final class DUser d.handle = '${d.username}'; return d; } + #end /** * Calling this function gets the BitmapData of the user