TheAshenWolf / WakaTimeForUE

As all the other versions of Wakatime plugins for Unreal Engine lead to blank repos, I decided to make a plugin that actually has some code in it. I am no longer working on this plugin, but the community is, so feel free to contribute!
MIT License
44 stars 11 forks source link

BugFixed #31

Closed Violet-VE closed 1 year ago

Violet-VE commented 1 year ago

In UE5_Latest(Github::ue5-main)

WakaTimeForUE.cpp#L145: FEditorDelegates::PostSaveWorld.Remove(PostSaveWorldHandle); -> FEditorDelegates::PostSaveWorldWithContext.Remove(PostSaveWorldHandle);

WakaTimeForUE.h: Add #include "EditorStyleSet.h"

And

WakaTimeForUE.Build.cs: Add "EditorStyle" Module

Because: WakaTimeForUE.h#L145: FEditorStyle::GetStyleSetName() // Error

Violet-VE commented 1 year ago

But:函数 'GetStyleSetName' 已被弃用,原因: 'FEditorStyle::GetStyleSetName() is deprecated, use FAppStyle::GetAppStyleSetName() instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.'

TheAshenWolf commented 1 year ago

Thank you for your report! Replaced the deprecated methods; everything should be back to green now.