mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 09:47:43 +00:00
YAML read/write refactor
This commit is contained in:
@@ -43,10 +43,13 @@ class SplashScreen : public Specter::ModalWindow
|
||||
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
||||
m_splash, m_splash.m_newString,
|
||||
Specter::FileBrowser::Type::SaveDirectory,
|
||||
[](bool ok, const HECL::SystemString& path)
|
||||
[&](bool ok, const HECL::SystemString& path)
|
||||
{
|
||||
if (ok)
|
||||
{
|
||||
Log.report(LogVisor::Info, _S("Making project '%s'"), path.c_str());
|
||||
m_splash.m_vm.projectManager().newProject(path);
|
||||
}
|
||||
}));
|
||||
m_splash.updateSize();
|
||||
m_splash.m_newButt.mouseLeave(coord);
|
||||
@@ -65,10 +68,13 @@ class SplashScreen : public Specter::ModalWindow
|
||||
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
||||
m_splash, m_splash.m_openString,
|
||||
Specter::FileBrowser::Type::OpenHECLProject,
|
||||
[](bool ok, const HECL::SystemString& path)
|
||||
[&](bool ok, const HECL::SystemString& path)
|
||||
{
|
||||
if (ok)
|
||||
{
|
||||
Log.report(LogVisor::Info, _S("Opening project '%s'"), path.c_str());
|
||||
m_splash.m_vm.projectManager().openProject(path);
|
||||
}
|
||||
}));
|
||||
m_splash.updateSize();
|
||||
m_splash.m_openButt.mouseLeave(coord);
|
||||
@@ -87,10 +93,13 @@ class SplashScreen : public Specter::ModalWindow
|
||||
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
||||
m_splash, m_splash.m_extractString,
|
||||
Specter::FileBrowser::Type::OpenFile,
|
||||
[](bool ok, const HECL::SystemString& path)
|
||||
[&](bool ok, const HECL::SystemString& path)
|
||||
{
|
||||
if (ok)
|
||||
{
|
||||
Log.report(LogVisor::Info, _S("Extracting game '%s'"), path.c_str());
|
||||
m_splash.m_vm.projectManager().extractGame(path);
|
||||
}
|
||||
}));
|
||||
m_splash.updateSize();
|
||||
m_splash.m_extractButt.mouseLeave(coord);
|
||||
|
||||
Reference in New Issue
Block a user