cleanup LuaFileList

This commit is contained in:
adelikat 2019-11-29 15:10:58 -06:00
parent d757b8e64f
commit f36d69e6b0
1 changed files with 4 additions and 15 deletions

View File

@ -15,11 +15,7 @@ namespace BizHawk.Client.Common
public bool Changes
{
get
{
return _changes;
}
get => _changes;
set
{
_changes = value;
@ -32,15 +28,8 @@ namespace BizHawk.Client.Common
public string Filename
{
get
{
return _filename;
}
set
{
_filename = value ?? "";
}
get => _filename;
set => _filename = value ?? "";
}
public void StopAllScripts()
@ -100,7 +89,7 @@ namespace BizHawk.Client.Common
if (!Path.IsPathRooted(scriptPath))
{
var directory = Path.GetDirectoryName(path);
scriptPath = Path.GetFullPath(Path.Combine(directory, scriptPath));
scriptPath = Path.GetFullPath(Path.Combine(directory ?? "", scriptPath));
}
Add(new LuaFile(scriptPath)