yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::Project Struct Reference

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 = ""
 

Detailed Description

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.

Definition at line 26 of file project.h.

Member Function Documentation

◆ Create()

absl::Status yaze::Project::Create ( const std::string & project_name)
inline

Definition at line 27 of file project.h.

References name, and project_opened_.

◆ CheckForEmptyFields()

absl::Status yaze::Project::CheckForEmptyFields ( )
inline

Definition at line 32 of file project.h.

References code_folder_, filepath, labels_filename_, name, and rom_filename_.

Referenced by Save().

◆ Open()

absl::Status yaze::Project::Open ( const std::string & project_path)

◆ Save()

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_.

Here is the call graph for this function:

Member Data Documentation

◆ project_opened_

bool yaze::Project::project_opened_ = false

Definition at line 45 of file project.h.

Referenced by Create().

◆ name

std::string yaze::Project::name

Definition at line 46 of file project.h.

Referenced by CheckForEmptyFields(), Create(), Open(), and Save().

◆ flags

std::string yaze::Project::flags = ""

Definition at line 47 of file project.h.

◆ filepath

std::string yaze::Project::filepath

Definition at line 48 of file project.h.

Referenced by CheckForEmptyFields(), Open(), and Save().

◆ rom_filename_

std::string yaze::Project::rom_filename_ = ""

Definition at line 49 of file project.h.

Referenced by CheckForEmptyFields(), Open(), and Save().

◆ code_folder_

std::string yaze::Project::code_folder_ = ""

Definition at line 50 of file project.h.

Referenced by CheckForEmptyFields(), Open(), and Save().

◆ labels_filename_

std::string yaze::Project::labels_filename_ = ""

Definition at line 51 of file project.h.

Referenced by CheckForEmptyFields(), Open(), and Save().

◆ keybindings_file

std::string yaze::Project::keybindings_file = ""

Definition at line 52 of file project.h.

Referenced by Open(), and Save().


The documentation for this struct was generated from the following files: