refactor: Introduced a SessionCardRegistry and WindowDelegate for better session management in the editor.
Benefits: - Streamlines the build process by allowing for multiple Protobuf targets, enhancing compatibility and maintainability. - Improves session management capabilities within the editor, leading to a more organized and efficient user experience. - Enhance Protobuf target handling in CMake configuration - Updated CMake files to support multiple Protobuf targets, improving flexibility in linking. - Adjusted target link libraries across various components (yaze, yaze_core_lib, yaze_editor, etc.) to utilize the new
This commit is contained in:
@@ -131,6 +131,14 @@ class Editor {
|
||||
}
|
||||
return base_title;
|
||||
}
|
||||
|
||||
// Helper method to create session-aware card IDs for multi-session support
|
||||
std::string MakeCardId(const std::string& base_id) const {
|
||||
if (context_ && context_->session_id > 0) {
|
||||
return absl::StrFormat("s%zu.%s", context_->session_id, base_id);
|
||||
}
|
||||
return base_id;
|
||||
}
|
||||
|
||||
// Helper method for ROM access with safety check
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user