1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Remove missed leftover usages

This commit is contained in:
Salman Ahmed 2020-06-01 11:57:32 +03:00
parent 2c6887e610
commit 7a9ed78527
No known key found for this signature in database
GPG Key ID: ED81FD33FD9B58BC

View File

@ -18,14 +18,14 @@ namespace osu.Game.Tests.Resources
public static string GetTestBeatmapForImport(bool virtualTrack = false)
{
var temp = Path.GetTempFileName() + ".osz";
var tempPath = Path.Combine(RuntimeInfo.StartupDirectory, Path.GetTempFileName() + ".osz");
using (var stream = GetTestBeatmapStream(virtualTrack))
using (var newFile = RuntimeInfo.StartupStorage.GetStream(temp, FileAccess.Write))
using (var newFile = File.Create(tempPath))
stream.CopyTo(newFile);
Assert.IsTrue(RuntimeInfo.StartupStorage.Exists(temp));
return temp;
Assert.IsTrue(File.Exists(tempPath));
return tempPath;
}
}
}