Update hecl

This commit is contained in:
Jack Andersen 2016-04-15 10:58:49 -10:00
parent abff623cf6
commit 3bab36faba
2 changed files with 10 additions and 6 deletions

View File

@ -103,7 +103,7 @@ bool ProjectManager::openProject(const hecl::SystemString& path)
if (!fp) if (!fp)
{ {
needsSave = true; needsSave = true;
goto makeDefault; goto makeProj;
} }
yaml_parser_set_input_file(r.getParser(), fp); yaml_parser_set_input_file(r.getParser(), fp);
@ -111,7 +111,7 @@ bool ProjectManager::openProject(const hecl::SystemString& path)
{ {
needsSave = true; needsSave = true;
fclose(fp); fclose(fp);
goto makeDefault; goto makeProj;
} }
r.reset(); r.reset();
@ -121,12 +121,16 @@ bool ProjectManager::openProject(const hecl::SystemString& path)
{ {
needsSave = true; needsSave = true;
fclose(fp); fclose(fp);
goto makeDefault; goto makeProj;
} }
fclose(fp); fclose(fp);
makeDefault: makeProj:
m_vm.ProjectChanged(*m_proj); m_vm.ProjectChanged(*m_proj);
if (!needsSave)
m_vm.SetupEditorView(r);
else
m_vm.SetupEditorView(); m_vm.SetupEditorView();
m_factoryMP1.IndexMP1Resources(*m_proj); m_factoryMP1.IndexMP1Resources(*m_proj);

2
hecl

@ -1 +1 @@
Subproject commit 7393a88a0d2e79586ae9ae097c9c8fb2b68105da Subproject commit dabc519fe168e6a2db839119eb20f706cd39ddac