diff --git a/AdvancedSessions/AdvancedSessions.uplugin b/AdvancedSessions/AdvancedSessions.uplugin index 079213e..c6fec4c 100644 --- a/AdvancedSessions/AdvancedSessions.uplugin +++ b/AdvancedSessions/AdvancedSessions.uplugin @@ -1,22 +1,19 @@ { - "FileVersion" : 3, - - "FriendlyName" : "Advanced Sessions", - "Version" : 4.27, - "VersionName": "4.27", - "Description" : "Adds new blueprint functions to handle more advanced session operations.", - "Category" : "Advanced Sessions Plugin", - "CreatedBy" : "Joshua Statzer", - "CreatedByURL" : "N/A", - - "Modules" : - [ - { - "Name" : "AdvancedSessions", - "Type" : "RunTime", - "LoadingPhase" : "PreDefault" - } - ], + "FileVersion": 3, + "FriendlyName": "Advanced Sessions", + "Version": 4, + "VersionName": "5.0", + "Description": "Adds new blueprint functions to handle more advanced session operations.", + "Category": "Advanced Sessions Plugin", + "CreatedBy": "Joshua Statzer", + "CreatedByURL": "N/A", + "Modules": [ + { + "Name": "AdvancedSessions", + "Type": "Runtime", + "LoadingPhase": "PreDefault" + } + ], "Plugins": [ { "Name": "OnlineSubsystem", @@ -26,5 +23,12 @@ "Name": "OnlineSubsystemUtils", "Enabled": true } - ] + ], + "DocsURL": "", + "MarketplaceURL": "", + "SupportURL": "", + "CanContainContent": false, + "IsBetaVersion": false, + "IsExperimentalVersion": false, + "Installed": false } \ No newline at end of file diff --git a/AdvancedSessions/Config/FilterPlugin.ini b/AdvancedSessions/Config/FilterPlugin.ini new file mode 100644 index 0000000..ccebca2 --- /dev/null +++ b/AdvancedSessions/Config/FilterPlugin.ini @@ -0,0 +1,8 @@ +[FilterPlugin] +; This section lists additional files which will be packaged along with your plugin. Paths should be listed relative to the root plugin directory, and +; may include "...", "*", and "?" wildcards to match directories, files, and individual characters respectively. +; +; Examples: +; /README.txt +; /Extras/... +; /Binaries/ThirdParty/*.dll diff --git a/AdvancedSteamSessions/AdvancedSteamSessions.uplugin b/AdvancedSteamSessions/AdvancedSteamSessions.uplugin index 8cab794..0fa87dd 100644 --- a/AdvancedSteamSessions/AdvancedSteamSessions.uplugin +++ b/AdvancedSteamSessions/AdvancedSteamSessions.uplugin @@ -2,8 +2,8 @@ "FileVersion" : 3, "FriendlyName" : "Advanced Steam Sessions", - "Version" : 4.27, - "VersionName": "4.27", + "Version" : 5.0, + "VersionName": "5.0", "Description" : "Adds new blueprint functions to handle more advanced session operations in Steam. REQUIRES ADVANCED SESSIONS", "Category" : "Advanced Sessions Plugin", "CreatedBy" : "Joshua Statzer", diff --git a/AdvancedSteamSessions/Config/FilterPlugin.ini b/AdvancedSteamSessions/Config/FilterPlugin.ini new file mode 100644 index 0000000..ccebca2 --- /dev/null +++ b/AdvancedSteamSessions/Config/FilterPlugin.ini @@ -0,0 +1,8 @@ +[FilterPlugin] +; This section lists additional files which will be packaged along with your plugin. Paths should be listed relative to the root plugin directory, and +; may include "...", "*", and "?" wildcards to match directories, files, and individual characters respectively. +; +; Examples: +; /README.txt +; /Extras/... +; /Binaries/ThirdParty/*.dll diff --git a/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp b/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp index bd31497..d04daaf 100644 --- a/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp +++ b/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp @@ -332,18 +332,22 @@ UTexture2D * UAdvancedSteamFriendsLibrary::GetSteamFriendAvatar(const FBPUniqueN UTexture2D* Avatar = UTexture2D::CreateTransient(Width, Height, PF_R8G8B8A8); // Switched to a Memcpy instead of byte by byte transer - uint8* MipData = (uint8*)Avatar->PlatformData->Mips[0].BulkData.Lock(LOCK_READ_WRITE); - FMemory::Memcpy(MipData, (void*)oAvatarRGBA, Height * Width * 4); - Avatar->PlatformData->Mips[0].BulkData.Unlock(); - // Original implementation was missing this!! - // the hell man...... - delete[] oAvatarRGBA; + if (FTexturePlatformData* PlatformData = Avatar->GetPlatformData()) + { + uint8* MipData = (uint8*)PlatformData->Mips[0].BulkData.Lock(LOCK_READ_WRITE); + FMemory::Memcpy(MipData, (void*)oAvatarRGBA, Height * Width * 4); + PlatformData->Mips[0].BulkData.Unlock(); - //Setting some Parameters for the Texture and finally returning it - Avatar->PlatformData->SetNumSlices(1); - Avatar->NeverStream = true; - //Avatar->CompressionSettings = TC_EditorIcon; + // Original implementation was missing this!! + // the hell man...... + delete[] oAvatarRGBA; + + //Setting some Parameters for the Texture and finally returning it + PlatformData->SetNumSlices(1); + Avatar->NeverStream = true; + //Avatar->CompressionSettings = TC_EditorIcon; + } Avatar->UpdateResource();