Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Game packaging issue fix attempt for UE5
Browse files Browse the repository at this point in the history
- This is fix attempt for adjusting change which was made to fix library path on Unreal 4
- I am not sure if packaging used to work in with previous plugin versions and just stopped with newest one
  -> If yes then this could fix it
  • Loading branch information
djova-dolby committed Oct 4, 2023
1 parent 89aed11 commit b1ca81f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions DolbyIO/Source/Private/DolbyIOModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "Utils/DolbyIOCppSdk.h"
#include "Utils/DolbyIOLogging.h"

#include "Runtime/Launch/Resources/Version.h"
#include "HAL/PlatformProcess.h"
#include "Interfaces/IPluginManager.h"
#include "Misc/Paths.h"
Expand All @@ -24,7 +25,11 @@ class FDolbyIOModule final : public IModuleInterface
[](std::size_t Count, std::size_t Al) { return ::operator new(Count, static_cast<std::align_val_t>(Al)); },
::operator delete,
[](void* Ptr, std::size_t Al) { ::operator delete(Ptr, static_cast<std::align_val_t>(Al)); }};
#if ENGINE_MAJOR_VERSION == 5
BaseDir = FPaths::Combine(BaseDir, "bin");
#else
BaseDir = FPaths::Combine(BaseDir, TEXT("bin"));
#endif
LoadDll(BaseDir, "avutil-57.dll");
LoadDll(BaseDir, "avcodec-59.dll");
LoadDll(BaseDir, "dvclient.dll");
Expand All @@ -39,13 +44,21 @@ class FDolbyIOModule final : public IModuleInterface
LoadDll(BaseDir, "video_processor.dll");
dolbyio::comms::plugin::video_processor::set_app_allocator(Allocator);
#elif PLATFORM_MAC
#if ENGINE_MAJOR_VERSION == 5
BaseDir = FPaths::Combine(BaseDir, "lib");
#else
BaseDir = FPaths::Combine(BaseDir, TEXT("lib"));
#endif
LoadDll(BaseDir, "libdolbyio_comms_media.dylib");
LoadDll(BaseDir, "libdolbyio_comms_sdk.dylib");
LoadDll(BaseDir, "libvideo_processor.dylib");
#elif PLATFORM_LINUX
BaseDir += "-ubuntu-20.04-clang10-libc++10";
#if ENGINE_MAJOR_VERSION == 5
BaseDir = FPaths::Combine(BaseDir, "lib");
#else
BaseDir = FPaths::Combine(BaseDir, TEXT("lib"));
#endif
LoadDll(BaseDir, "libavutil.so.57");
LoadDll(BaseDir, "libavcodec.so.59");
LoadDll(BaseDir, "libavformat.so.59");
Expand Down

0 comments on commit b1ca81f

Please sign in to comment.