Skip to content

Commit 25db0b9

Browse files
committed
fixed GetData()
1 parent dbe6002 commit 25db0b9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

LyricDisplayerPlugin.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<PlatformTarget>AnyCPU</PlatformTarget>
2727
<DebugType>pdbonly</DebugType>
2828
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
29+
<OutputPath>..\Sync\Release\Plugins\</OutputPath>
3030
<DefineConstants>TRACE</DefineConstants>
3131
<ErrorReport>prompt</ErrorReport>
3232
<WarningLevel>4</WarningLevel>

LyricDisplayerPlugins.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
namespace LyricDisplayerPlugin
1616
{
17-
18-
[SyncRequirePlugin(typeof(OsuLiveStatusPanelPlugin),typeof(OsuRTDataProviderPlugin))]
17+
[SyncRequirePlugin(typeof(OsuLiveStatusPanelPlugin), typeof(OsuRTDataProviderPlugin))]
1918
public class LyricDisplayerPlugins : Plugin,IConfigurable
2019
{
2120
public ConfigurationElement LyricsSource { get; set; } = "auto";
@@ -294,8 +293,8 @@ private Lyrics GetLyric()
294293
}
295294

296295
//获取基本数据
297-
string artist = olsp_plugin.GetData("artist_avaliable");
298-
string title = olsp_plugin.GetData("title_avaliable");
296+
string artist = olsp_plugin.GetData("artist_avaliable").ToString();
297+
string title = olsp_plugin.GetData("title_avaliable").ToString();
299298
int time = GetDurationTime(current_osu_file_path);
300299

301300
Utils.Debug($"artist:{artist} title:{title} time:{time}");

0 commit comments

Comments
 (0)