IT WORKS BUT ITS SCUFFED AS HELL
This commit is contained in:
		| @@ -43,7 +43,7 @@ elif env['platform'] == "windows": | |||||||
|  |  | ||||||
| # make sure our binding library is properly includes | # make sure our binding library is properly includes | ||||||
| env.Append(LIBPATH=[discord_lib_path]) | env.Append(LIBPATH=[discord_lib_path]) | ||||||
| env.Append(CPPPATH=['src\discord-game-sdk-cpp']) | env.Append(CPPPATH=['src/discord-game-sdk-cpp']) | ||||||
| env.Append(LIBS=[ | env.Append(LIBS=[ | ||||||
|     discord_library.replace(".dll", "") |     discord_library.replace(".dll", "") | ||||||
| ]) | ]) | ||||||
| @@ -52,8 +52,8 @@ env.Append(LIBS=[ | |||||||
| env.Append(CPPPATH=['src/']) | env.Append(CPPPATH=['src/']) | ||||||
| sources = Glob('src/*.cpp') | sources = Glob('src/*.cpp') | ||||||
|  |  | ||||||
| library = env.SharedLibrary(target=env['target_path'] + env['target_name'] + env["suffix"] + env["SHLIBSUFFIX"], source=sources) | library = env.SharedLibrary(target="project/addons/discord-rpc-gd/bin/libgd-discordrpc" + env["suffix"] + env["SHLIBSUFFIX"], source=sources) | ||||||
| env.Depends(library, Command("project/addons/discord-rpc-gd/bin" + discord_library, discord_lib_path + "/" + discord_library, Copy("$TARGET", "$SOURCE"))) | #env.Depends(library, Command("project/addons/discord-rpc-gd/bin/" + discord_library, discord_lib_path + "/" + discord_library, Copy("$TARGET", "$SOURCE"))) | ||||||
|  |  | ||||||
| Default(library) | Default(library) | ||||||
|  |  | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/achievement_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/achievement_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/activity_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/activity_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/application_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/application_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/core.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/core.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/image_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/image_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/lobby_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/lobby_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										10
									
								
								src/main.cpp
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/main.cpp
									
									
									
									
									
								
							| @@ -1,11 +1,11 @@ | |||||||
| #include "main.h" | #include "main.h" | ||||||
| #include <godot_cpp/core/class_db.hpp> | #include <godot_cpp/core/class_db.hpp> | ||||||
| #include <godot_cpp/variant/utility_functions.hpp> | #include <godot_cpp/variant/utility_functions.hpp> | ||||||
| #include "./discord-game-sdk-cpp/discord.h" | #include "discord.h" | ||||||
|  |  | ||||||
| using namespace godot; | using namespace godot; | ||||||
|  |  | ||||||
| // discord::Core *core{}; | discord::Core *core{}; | ||||||
|  |  | ||||||
| void DiscordRPC::_bind_methods() | void DiscordRPC::_bind_methods() | ||||||
| { | { | ||||||
| @@ -24,16 +24,16 @@ DiscordRPC::~DiscordRPC() | |||||||
|  |  | ||||||
| void DiscordRPC::_ready() | void DiscordRPC::_ready() | ||||||
| { | { | ||||||
|     /*auto result = discord::Core::Create(461618159171141643, DiscordCreateFlags_Default, &core); |     auto result = discord::Core::Create(461618159171141643, DiscordCreateFlags_Default, &core); | ||||||
|     discord::Activity activity{}; |     discord::Activity activity{}; | ||||||
|     activity.SetState("Testing"); |     activity.SetState("Testing"); | ||||||
|     activity.SetDetails("Fruit Loops"); |     activity.SetDetails("Fruit Loops"); | ||||||
|     core->ActivityManager().UpdateActivity(activity, [](discord::Result result) { |     core->ActivityManager().UpdateActivity(activity, [](discord::Result result) { | ||||||
|  |  | ||||||
|     });*/ |     }); | ||||||
| } | } | ||||||
|  |  | ||||||
| void DiscordRPC::_process(float delta) | void DiscordRPC::_process(float delta) | ||||||
| { | { | ||||||
|     //::core->RunCallbacks(); |     ::core->RunCallbacks(); | ||||||
| } | } | ||||||
| @@ -2,11 +2,10 @@ | |||||||
| #define DISCORDRPC_H | #define DISCORDRPC_H | ||||||
|  |  | ||||||
| #include <godot_cpp/classes/node.hpp> | #include <godot_cpp/classes/node.hpp> | ||||||
| #include "./discord-game-sdk-cpp/discord.h" | #include "discord.h" | ||||||
|  |  | ||||||
| namespace godot | namespace godot | ||||||
| { | { | ||||||
|  |  | ||||||
|     class DiscordRPC : public Node |     class DiscordRPC : public Node | ||||||
|     { |     { | ||||||
|         GDCLASS(DiscordRPC, Node) |         GDCLASS(DiscordRPC, Node) | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/network_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/network_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/overlay_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/overlay_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/relationship_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/relationship_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/storage_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/storage_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/store_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/store_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/types.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/types.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/user_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/user_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/voice_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/voice_manager.windows.template_debug.x86_64.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user