mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-11 07:37:01 +00:00
Compare commits
2 commits
67de63bed6
...
42ff3ad468
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42ff3ad468 | ||
|
|
2d74bcfbfa |
3 changed files with 3 additions and 4 deletions
|
|
@ -480,8 +480,8 @@ class XMLChildConfig
|
|||
{
|
||||
m_parentConfig = {
|
||||
.lock = [getParentConfig]() { return getParentConfig().Lock(); },
|
||||
.save = [getParentConfig]() { return getParentConfig().Load(); },
|
||||
.load = [getParentConfig]() { return getParentConfig().Save(); },
|
||||
.save = [getParentConfig]() { return getParentConfig().Save(); },
|
||||
.load = [getParentConfig]() { return getParentConfig().Load(); },
|
||||
};
|
||||
|
||||
auto configParser = std::make_pair(
|
||||
|
|
|
|||
|
|
@ -1299,7 +1299,7 @@ void MainWindow::LoadSettings()
|
|||
if (config.window_position != Vector2i{ -1,-1 })
|
||||
this->SetPosition({ config.window_position.x, config.window_position.y });
|
||||
|
||||
if (config.window_size != Vector2i{ -1,-1 })
|
||||
if (config.window_size.x > 0 && config.window_size.y > 0)
|
||||
{
|
||||
this->SetSize({ config.window_size.x, config.window_size.y });
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,6 @@ void wxCemuConfig::Save(XMLConfigParser& config)
|
|||
wpos.set<sint32>("y", window_position.y);
|
||||
auto wsize = config.set("window_size");
|
||||
wsize.set<sint32>("x", window_size.x);
|
||||
cemu_assert_debug(window_size.x != 0);
|
||||
wsize.set<sint32>("y", window_size.y);
|
||||
config.set<bool>("window_maximized", window_maximized);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue