Skip to content

Commit

Permalink
add init result notification
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Jan 2, 2018
1 parent b0c5263 commit 075fd87
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion OsuLiveStatusPanel/OsuLiveStatusPanelPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,18 @@ private void OsuLiveStatusPanelPlugin_onLoadComplete(PluginEvents.LoadCompleteEv
}
catch (Exception e)
{
IO.CurrentIO.WriteColor($"Load dependency plugin failed:{e.Message}", ConsoleColor.Red);
IO.CurrentIO.WriteColor($"[OsuLiveStatusPanelPlugin]Load dependency plugin failed:{e.Message}", ConsoleColor.Red);
source = UsingSource.None;
}

if (source==UsingSource.None)
{
IO.CurrentIO.WriteColor($"[OsuLiveStatusPanelPlugin]Init plugin failed,Please check if NowPlayin/OsuRTDataProvider have been exsited your loaded plugins or your config file", ConsoleColor.Red);
}
else
{
IO.CurrentIO.WriteColor("[OsuLiveStatusPanelPlugin]Init OsuLiveStatusPanelPlugin successfully!", ConsoleColor.Green);
}
}

public void TryRegisterSourceFromMemoryReader(SyncHost host)
Expand Down

0 comments on commit 075fd87

Please sign in to comment.