mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-11 21:30:05 +00:00
ResultVal: Remove MoveFrom()
Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
This commit is contained in:
parent
4cb47b0278
commit
723dc644fa
24 changed files with 53 additions and 57 deletions
|
@ -406,7 +406,7 @@ ResultCode UpdateConfigNANDSavegame() {
|
|||
auto config_result = Service::FS::OpenFileFromArchive(cfg_system_save_data_archive, path, mode);
|
||||
ASSERT_MSG(config_result.Succeeded(), "could not open file");
|
||||
|
||||
auto config = config_result.MoveFrom();
|
||||
auto config = std::move(config_result).Unwrap();
|
||||
config->backend->Write(0, CONFIG_SAVEFILE_SIZE, 1, cfg_config_file_buffer.data());
|
||||
|
||||
return RESULT_SUCCESS;
|
||||
|
@ -560,7 +560,7 @@ ResultCode LoadConfigNANDSaveFile() {
|
|||
|
||||
// Read the file if it already exists
|
||||
if (config_result.Succeeded()) {
|
||||
auto config = config_result.MoveFrom();
|
||||
auto config = std::move(config_result).Unwrap();
|
||||
config->backend->Read(0, CONFIG_SAVEFILE_SIZE, cfg_config_file_buffer.data());
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue