Save Main window position
This commit is contained in:
parent
9addfbd743
commit
9d6d190ad5
|
@ -8,6 +8,8 @@
|
||||||
public bool AutoLoadMostRecentRom = false; //TODO: eventually make a class or struct for all the auto-loads, which will include recent roms, movies, etc, as well as autoloading any modeless dialog
|
public bool AutoLoadMostRecentRom = false; //TODO: eventually make a class or struct for all the auto-loads, which will include recent roms, movies, etc, as well as autoloading any modeless dialog
|
||||||
public RecentFiles RecentRoms = new RecentFiles(8);
|
public RecentFiles RecentRoms = new RecentFiles(8);
|
||||||
public bool PauseWhenMenuActivated = true;
|
public bool PauseWhenMenuActivated = true;
|
||||||
|
public int MainWndx = -1; //Negative numbers will be ignored
|
||||||
|
public int MainWndy = -1;
|
||||||
|
|
||||||
// Display options
|
// Display options
|
||||||
public bool DisplayFPS = false;
|
public bool DisplayFPS = false;
|
||||||
|
|
|
@ -963,6 +963,7 @@
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.Name = "MainForm";
|
this.Name = "MainForm";
|
||||||
this.Text = "BizHawk";
|
this.Text = "BizHawk";
|
||||||
|
this.Load += new System.EventHandler(this.MainForm_Load);
|
||||||
this.menuStrip1.ResumeLayout(false);
|
this.menuStrip1.ResumeLayout(false);
|
||||||
this.menuStrip1.PerformLayout();
|
this.menuStrip1.PerformLayout();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
|
@ -60,6 +60,8 @@ namespace BizHawk.MultiClient
|
||||||
Closing += (o, e) =>
|
Closing += (o, e) =>
|
||||||
{
|
{
|
||||||
CloseGame();
|
CloseGame();
|
||||||
|
Global.Config.MainWndx = this.Location.X;
|
||||||
|
Global.Config.MainWndy = this.Location.Y;
|
||||||
ConfigService.Save("config.ini", Global.Config);
|
ConfigService.Save("config.ini", Global.Config);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -105,6 +107,9 @@ namespace BizHawk.MultiClient
|
||||||
LoadRamWatch();
|
LoadRamWatch();
|
||||||
if (Global.Config.AutoLoadRamSearch)
|
if (Global.Config.AutoLoadRamSearch)
|
||||||
LoadRamSearch();
|
LoadRamSearch();
|
||||||
|
|
||||||
|
if (Global.Config.MainWndx >= 0 && Global.Config.MainWndy >= 0)
|
||||||
|
this.Location = new Point(Global.Config.MainWndx, Global.Config.MainWndy);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PauseEmulator()
|
private void PauseEmulator()
|
||||||
|
@ -1207,5 +1212,10 @@ namespace BizHawk.MultiClient
|
||||||
SoundConfig s = new SoundConfig();
|
SoundConfig s = new SoundConfig();
|
||||||
s.ShowDialog();
|
s.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void MainForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue