open code path in asm editor from project file
This commit is contained in:
@@ -93,6 +93,10 @@ core::FolderItem LoadFolder(const std::string& folder) {
|
||||
|
||||
} // namespace
|
||||
|
||||
void AssemblyEditor::OpenFolder(const std::string& folder_path) {
|
||||
current_folder_ = LoadFolder(folder_path);
|
||||
}
|
||||
|
||||
void AssemblyEditor::Update(bool& is_loaded) {
|
||||
ImGui::Begin("Assembly Editor", &is_loaded);
|
||||
MENU_BAR()
|
||||
|
||||
@@ -47,6 +47,8 @@ class AssemblyEditor : public Editor {
|
||||
|
||||
absl::Status Update() override;
|
||||
|
||||
void OpenFolder(const std::string &folder_path);
|
||||
|
||||
private:
|
||||
void DrawFileMenu();
|
||||
void DrawEditMenu();
|
||||
|
||||
@@ -922,6 +922,10 @@ absl::Status MasterEditor::OpenProject() {
|
||||
".yaze");
|
||||
manager.Save();
|
||||
|
||||
assembly_editor_.OpenFolder(current_project_.code_folder_);
|
||||
|
||||
current_project_.project_opened_ = true;
|
||||
|
||||
return absl::OkStatus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user