Add support for other media formats besides ogg.

This commit is contained in:
2022-11-17 12:05:16 +08:00
parent a7e6522a57
commit 5240408f00
2 changed files with 4 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ namespace Cryville.Crtr.Browsing {
var tres = (SongResource)res;
var dir = new DirectoryInfo(_rootPath + "/songs/" + res.Name);
if (!dir.Exists) dir.Create();
var dest = new FileInfo(_rootPath + "/songs/" + res.Name + "/.ogg");
var dest = new FileInfo(_rootPath + "/songs/" + res.Name + "/" + tres.Source.Extension);
if (!dest.Exists) tres.Source.CopyTo(dest.FullName);
}
}