mirror of
https://github.com/Ratstail91/Mementos.git
synced 2025-11-29 10:34:27 +11:00
Committed everything
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System.IO;
|
||||
|
||||
namespace Ink
|
||||
{
|
||||
public interface IFileHandler
|
||||
{
|
||||
string ResolveInkFilename (string includeName);
|
||||
string LoadInkFileContents (string fullFilename);
|
||||
}
|
||||
|
||||
public class DefaultFileHandler : Ink.IFileHandler {
|
||||
public string ResolveInkFilename (string includeName)
|
||||
{
|
||||
var workingDir = Directory.GetCurrentDirectory ();
|
||||
var fullRootInkPath = Path.Combine (workingDir, includeName);
|
||||
return fullRootInkPath;
|
||||
}
|
||||
|
||||
public string LoadInkFileContents (string fullFilename)
|
||||
{
|
||||
return File.ReadAllText (fullFilename);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user