Hello guys,
I'm still struggling with Discord SDK. I still have the unresolved symbol but I don"t understand why. I am sure the paths are fine
Below is what I have on the build.cs :
public class SquadLeader : ModuleRules
{
public SquadLeader(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
CppStandard = CppStandardVersion.Cpp17;
PublicIncludePaths.Add(DiscordDir);
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AIModule", "UMG", "GameplayTasks", "GameplayAbilities", "GameplayTags", "NavigationSystem" });
PrivateDependencyModuleNames.AddRange(new string[] { });
PublicAdditionalLibraries.Add(DiscordLibFile);
RuntimeDependencies.Add(DiscordDllFile);
PublicDelayLoadDLLs.Add("discord_game_sdk.dll");
}
private string DiscordDir
{
get { return Path.GetFullPath( Path.Combine(ModuleDirectory, "..\\ThirdParty\\discord_game_sdk")); }
}
private string DiscordLibFile
{
get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "..\\..\\Binaries/Win64\\discord_game_sdk.dll.lib")); }
}
private string DiscordDllFile
{
get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "..\\..\\Binaries/Win64\\discord_game_sdk.dll")); }
}
}
Is anybody able to tell me at least if I only need those 4 lines (assuming the paths are good)?
PublicIncludePaths.Add(DiscordDir);
PublicAdditionalLibraries.Add(DiscordLibFile);
RuntimeDependencies.Add(DiscordDllFile);
PublicDelayLoadDLLs.Add("discord_game_sdk.dll");