Debugger: Lua - Reuse last folder when saving scripts, too
This commit is contained in:
parent
63bf64c3b2
commit
213b67064b
1 changed files with 3 additions and 0 deletions
|
@ -255,6 +255,9 @@ namespace Mesen.GUI.Debugger
|
||||||
{
|
{
|
||||||
using(SaveFileDialog sfd = new SaveFileDialog()) {
|
using(SaveFileDialog sfd = new SaveFileDialog()) {
|
||||||
sfd.FileName = newName;
|
sfd.FileName = newName;
|
||||||
|
if(ConfigManager.Config.DebugInfo.RecentScripts.Count > 0) {
|
||||||
|
sfd.InitialDirectory = Path.GetDirectoryName(ConfigManager.Config.DebugInfo.RecentScripts[0]);
|
||||||
|
}
|
||||||
sfd.SetFilter("Lua scripts (*.lua)|*.lua");
|
sfd.SetFilter("Lua scripts (*.lua)|*.lua");
|
||||||
if(sfd.ShowDialog() == DialogResult.OK) {
|
if(sfd.ShowDialog() == DialogResult.OK) {
|
||||||
SetFilePath(sfd.FileName);
|
SetFilePath(sfd.FileName);
|
||||||
|
|
Loading…
Add table
Reference in a new issue