Skip to content

Commit

Permalink
bump osu verrsion
Browse files Browse the repository at this point in the history
  • Loading branch information
Flutterish committed Aug 10, 2022
1 parent 9981788 commit 5be7536
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion osu.Game.Rulesets.RurusettoAddon/API/RurusettoAPI.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using osu.Framework.Graphics.Rendering;
using osu.Framework.Graphics.Textures;
using osu.Framework.Logging;
using SixLabors.ImageSharp.PixelFormats;
Expand All @@ -13,6 +14,9 @@ public class RurusettoAPI : Component {
public readonly Bindable<string> Address = new( DefaultAPIAddress );
public Uri GetEndpoint ( string endpoint ) => new( new Uri( Address.Value ), endpoint );

[Resolved]
private IRenderer renderer { get; set; } = null!;

public RurusettoAPI () {
Address.ValueChanged += _ => FlushAllCaches();
}
Expand Down Expand Up @@ -214,7 +218,7 @@ public void RequestImage ( string uri, Action<Texture>? success = null, Action<E
var imageStream = await client.GetStreamAsync( GetEndpoint( uri ) );
var image = await Image.LoadAsync<Rgba32>( imageStream );

var texture = new Texture( image.Width, image.Height );
var texture = renderer.CreateTexture( image.Width, image.Height );
texture.SetData( new TextureUpload( image ) );
texture.AssetName = uri;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
<None Remove="Resources\Textures\oh_no.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2022.730.0" />
<PackageReference Include="ppy.osu.Game" Version="2022.810.2" />
</ItemGroup>
</Project>

0 comments on commit 5be7536

Please sign in to comment.