cleanup LuaFileList
This commit is contained in:
parent
d757b8e64f
commit
f36d69e6b0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue