Drag drop Texture

This commit is contained in:
Simon Lübeß
2022-08-13 13:47:58 +02:00
parent 8495c6db28
commit bc1f466d18
3 changed files with 30 additions and 3 deletions
+3 -1
View File
@@ -47,12 +47,14 @@ namespace GlitchyEngine.Content
{
Path.InternalCombine(outFilename, _contentRoot, filename);
}
public Stream GetFile(String filename)
{
String fullpath = scope .(_contentRoot.Length + 1 + filename.Length);
GetFilePath(fullpath, filename);
Log.EngineLogger.AssertDebug(File.Exists(fullpath), "File doesn't exist!");
FileStream stream = new FileStream();
var result = stream.Open(fullpath, .Read, .Read);