mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 08:33:55 +09:00
Add ruleset context to sentry error reports
This commit is contained in:
@ -18,6 +18,7 @@ using osu.Game.Database;
|
|||||||
using osu.Game.Models;
|
using osu.Game.Models;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
|
using osu.Game.Rulesets;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
using Sentry;
|
using Sentry;
|
||||||
using Sentry.Protocol;
|
using Sentry.Protocol;
|
||||||
@ -109,6 +110,7 @@ namespace osu.Game.Utils
|
|||||||
}, scope =>
|
}, scope =>
|
||||||
{
|
{
|
||||||
var beatmap = game.Dependencies.Get<IBindable<WorkingBeatmap>>().Value.BeatmapInfo;
|
var beatmap = game.Dependencies.Get<IBindable<WorkingBeatmap>>().Value.BeatmapInfo;
|
||||||
|
var ruleset = game.Dependencies.Get<IBindable<RulesetInfo>>().Value;
|
||||||
|
|
||||||
scope.Contexts[@"config"] = new
|
scope.Contexts[@"config"] = new
|
||||||
{
|
{
|
||||||
@ -137,9 +139,17 @@ namespace osu.Game.Utils
|
|||||||
scope.Contexts[@"beatmap"] = new
|
scope.Contexts[@"beatmap"] = new
|
||||||
{
|
{
|
||||||
Name = beatmap.ToString(),
|
Name = beatmap.ToString(),
|
||||||
|
Ruleset = beatmap.Ruleset.InstantiationInfo,
|
||||||
beatmap.OnlineID,
|
beatmap.OnlineID,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
scope.Contexts[@"ruleset"] = new
|
||||||
|
{
|
||||||
|
ruleset.Name,
|
||||||
|
ruleset.InstantiationInfo,
|
||||||
|
ruleset.OnlineID
|
||||||
|
};
|
||||||
|
|
||||||
scope.Contexts[@"clocks"] = new
|
scope.Contexts[@"clocks"] = new
|
||||||
{
|
{
|
||||||
Audio = game.Dependencies.Get<MusicController>().CurrentTrack.CurrentTime,
|
Audio = game.Dependencies.Get<MusicController>().CurrentTrack.CurrentTime,
|
||||||
|
Reference in New Issue
Block a user