Refactor ROM saving process to utilize SaveSettings struct
- Updated yaze_save_rom and Backup command to use the new SaveSettings struct for improved clarity and maintainability. - Adjusted SaveToFile calls in Tile16Transfer to align with the new structured settings approach. - Enhanced parameter management for ROM saving operations across multiple components.
This commit is contained in:
@@ -72,8 +72,8 @@ absl::Status Tile16Transfer::Run(const std::vector<std::string>& arg_vec) {
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_IF_ERROR(
|
||||
dest_rom.SaveToFile(/*backup=*/true, /*save_new=*/false, arg_vec[1]))
|
||||
RETURN_IF_ERROR(dest_rom.SaveToFile(yaze::Rom::SaveSettings{
|
||||
.backup = true, .save_new = false, .filename = arg_vec[1]}))
|
||||
|
||||
std::cout << "Successfully transferred tile16" << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user