Represents a project in the application. More...
#include <project.h>
Public Member Functions | |
absl::Status | Create (const std::string &project_name) |
absl::Status | CheckForEmptyFields () |
absl::Status | Open (const std::string &project_path) |
absl::Status | Save () |
Public Attributes | |
bool | project_opened_ = false |
std::string | name |
std::string | flags = "" |
std::string | filepath |
std::string | rom_filename_ = "" |
std::string | code_folder_ = "" |
std::string | labels_filename_ = "" |
std::string | keybindings_file = "" |
Represents a project in the application.
A project is a collection of files and resources that are used in the creation of a Zelda3 hack that can be saved and loaded. This makes it so the user can have different rom file names for a single project and keep track of backups.
|
inline |
Definition at line 27 of file project.h.
References name, and project_opened_.
|
inline |
Definition at line 32 of file project.h.
References code_folder_, filepath, labels_filename_, name, and rom_filename_.
Referenced by Save().
absl::Status yaze::Project::Open | ( | const std::string & | project_path | ) |
Definition at line 13 of file project.cc.
References code_folder_, filepath, yaze::kEndOfProjectFile, keybindings_file, labels_filename_, name, and rom_filename_.
absl::Status yaze::Project::Save | ( | ) |
Definition at line 42 of file project.cc.
References CheckForEmptyFields(), code_folder_, filepath, yaze::kEndOfProjectFile, keybindings_file, labels_filename_, name, RETURN_IF_ERROR, and rom_filename_.
bool yaze::Project::project_opened_ = false |
std::string yaze::Project::name |
std::string yaze::Project::filepath |
Definition at line 48 of file project.h.
Referenced by CheckForEmptyFields(), Open(), and Save().
std::string yaze::Project::rom_filename_ = "" |
Definition at line 49 of file project.h.
Referenced by CheckForEmptyFields(), Open(), and Save().
std::string yaze::Project::code_folder_ = "" |
Definition at line 50 of file project.h.
Referenced by CheckForEmptyFields(), Open(), and Save().
std::string yaze::Project::labels_filename_ = "" |
Definition at line 51 of file project.h.
Referenced by CheckForEmptyFields(), Open(), and Save().
std::string yaze::Project::keybindings_file = "" |