simplify LuaFileList more
This commit is contained in:
parent
4be160a71f
commit
4b696e64fa
|
@ -98,8 +98,7 @@ namespace BizHawk.Client.Common
|
|||
|
||||
public void SaveSession(string path)
|
||||
{
|
||||
using (var sw = new StreamWriter(path))
|
||||
{
|
||||
using var sw = new StreamWriter(path);
|
||||
var sb = new StringBuilder();
|
||||
foreach (var file in this)
|
||||
{
|
||||
|
@ -118,7 +117,6 @@ namespace BizHawk.Client.Common
|
|||
}
|
||||
|
||||
sw.Write(sb.ToString());
|
||||
}
|
||||
|
||||
Filename = path;
|
||||
Global.Config.RecentLuaSession.Add(path);
|
||||
|
|
Loading…
Reference in New Issue