Provided support for changing the location of the projects save data root.
This commit is contained in:
parent
f5cf0c1f6a
commit
11b2e73f35
5 changed files with 62 additions and 11 deletions
|
@ -51,6 +51,8 @@ namespace MudEngine.Scripting
|
|||
//Instance a reference to the C# code provider, this is what will perform the compiling.
|
||||
CSharpCodeProvider provider = new CSharpCodeProvider(CompilerOptions);
|
||||
//Create an array of script files found within the ScriptRepository matching the ScriptExtension properties.
|
||||
if (!Directory.Exists(scriptRepository))
|
||||
Directory.CreateDirectory(scriptRepository);
|
||||
String[] scripts = Directory.GetFiles(scriptRepository, "*" + this.ScriptExtension, SearchOption.AllDirectories);
|
||||
|
||||
if (scripts.Length > 0)
|
||||
|
@ -64,7 +66,10 @@ namespace MudEngine.Scripting
|
|||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Results = new CompilerResults(new TempFileCollection());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue