mirror of
https://github.com/ppy/osu
synced 2024-12-23 15:22:37 +00:00
Remove missed leftover usages
This commit is contained in:
parent
2c6887e610
commit
7a9ed78527
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user