diff options
| author | 2016-04-05 13:29:55 +0100 | |
|---|---|---|
| committer | 2016-04-05 13:31:17 +0100 | |
| commit | a06dcfeb61d6769c562d6d50cfa3c0024176ae82 (patch) | |
| tree | e1f81e5faebce62810ac079b8a6e616182c34959 /src/core/hle | |
| parent | Merge pull request #1302 from Subv/save_fix (diff) | |
| download | yuzu-a06dcfeb61d6769c562d6d50cfa3c0024176ae82.tar.gz yuzu-a06dcfeb61d6769c562d6d50cfa3c0024176ae82.tar.xz yuzu-a06dcfeb61d6769c562d6d50cfa3c0024176ae82.zip | |
Common: Remove Common::make_unique, use std::make_unique
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 3 | ||||
| -rw-r--r-- | src/core/hle/service/fs/archive.cpp | 13 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 24b266eae..0546f6e16 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -2,10 +2,11 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <memory> | ||
| 6 | |||
| 5 | #include "common/assert.h" | 7 | #include "common/assert.h" |
| 6 | #include "common/common_funcs.h" | 8 | #include "common/common_funcs.h" |
| 7 | #include "common/logging/log.h" | 9 | #include "common/logging/log.h" |
| 8 | #include "common/make_unique.h" | ||
| 9 | 10 | ||
| 10 | #include "core/hle/kernel/memory.h" | 11 | #include "core/hle/kernel/memory.h" |
| 11 | #include "core/hle/kernel/process.h" | 12 | #include "core/hle/kernel/process.h" |
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index 590697e76..e9588cb72 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | #include "common/common_types.h" | 15 | #include "common/common_types.h" |
| 16 | #include "common/file_util.h" | 16 | #include "common/file_util.h" |
| 17 | #include "common/logging/log.h" | 17 | #include "common/logging/log.h" |
| 18 | #include "common/make_unique.h" | ||
| 19 | 18 | ||
| 20 | #include "core/file_sys/archive_backend.h" | 19 | #include "core/file_sys/archive_backend.h" |
| 21 | #include "core/file_sys/archive_extsavedata.h" | 20 | #include "core/file_sys/archive_extsavedata.h" |
| @@ -521,23 +520,23 @@ void ArchiveInit() { | |||
| 521 | 520 | ||
| 522 | std::string sdmc_directory = FileUtil::GetUserPath(D_SDMC_IDX); | 521 | std::string sdmc_directory = FileUtil::GetUserPath(D_SDMC_IDX); |
| 523 | std::string nand_directory = FileUtil::GetUserPath(D_NAND_IDX); | 522 | std::string nand_directory = FileUtil::GetUserPath(D_NAND_IDX); |
| 524 | auto sdmc_factory = Common::make_unique<FileSys::ArchiveFactory_SDMC>(sdmc_directory); | 523 | auto sdmc_factory = std::make_unique<FileSys::ArchiveFactory_SDMC>(sdmc_directory); |
| 525 | if (sdmc_factory->Initialize()) | 524 | if (sdmc_factory->Initialize()) |
| 526 | RegisterArchiveType(std::move(sdmc_factory), ArchiveIdCode::SDMC); | 525 | RegisterArchiveType(std::move(sdmc_factory), ArchiveIdCode::SDMC); |
| 527 | else | 526 | else |
| 528 | LOG_ERROR(Service_FS, "Can't instantiate SDMC archive with path %s", sdmc_directory.c_str()); | 527 | LOG_ERROR(Service_FS, "Can't instantiate SDMC archive with path %s", sdmc_directory.c_str()); |
| 529 | 528 | ||
| 530 | // Create the SaveData archive | 529 | // Create the SaveData archive |
| 531 | auto savedata_factory = Common::make_unique<FileSys::ArchiveFactory_SaveData>(sdmc_directory); | 530 | auto savedata_factory = std::make_unique<FileSys::ArchiveFactory_SaveData>(sdmc_directory); |
| 532 | RegisterArchiveType(std::move(savedata_factory), ArchiveIdCode::SaveData); | 531 | RegisterArchiveType(std::move(savedata_factory), ArchiveIdCode::SaveData); |
| 533 | 532 | ||
| 534 | auto extsavedata_factory = Common::make_unique<FileSys::ArchiveFactory_ExtSaveData>(sdmc_directory, false); | 533 | auto extsavedata_factory = std::make_unique<FileSys::ArchiveFactory_ExtSaveData>(sdmc_directory, false); |
| 535 | if (extsavedata_factory->Initialize()) | 534 | if (extsavedata_factory->Initialize()) |
| 536 | RegisterArchiveType(std::move(extsavedata_factory), ArchiveIdCode::ExtSaveData); | 535 | RegisterArchiveType(std::move(extsavedata_factory), ArchiveIdCode::ExtSaveData); |
| 537 | else | 536 | else |
| 538 | LOG_ERROR(Service_FS, "Can't instantiate ExtSaveData archive with path %s", extsavedata_factory->GetMountPoint().c_str()); | 537 | LOG_ERROR(Service_FS, "Can't instantiate ExtSaveData archive with path %s", extsavedata_factory->GetMountPoint().c_str()); |
| 539 | 538 | ||
| 540 | auto sharedextsavedata_factory = Common::make_unique<FileSys::ArchiveFactory_ExtSaveData>(nand_directory, true); | 539 | auto sharedextsavedata_factory = std::make_unique<FileSys::ArchiveFactory_ExtSaveData>(nand_directory, true); |
| 541 | if (sharedextsavedata_factory->Initialize()) | 540 | if (sharedextsavedata_factory->Initialize()) |
| 542 | RegisterArchiveType(std::move(sharedextsavedata_factory), ArchiveIdCode::SharedExtSaveData); | 541 | RegisterArchiveType(std::move(sharedextsavedata_factory), ArchiveIdCode::SharedExtSaveData); |
| 543 | else | 542 | else |
| @@ -545,10 +544,10 @@ void ArchiveInit() { | |||
| 545 | sharedextsavedata_factory->GetMountPoint().c_str()); | 544 | sharedextsavedata_factory->GetMountPoint().c_str()); |
| 546 | 545 | ||
| 547 | // Create the SaveDataCheck archive, basically a small variation of the RomFS archive | 546 | // Create the SaveDataCheck archive, basically a small variation of the RomFS archive |
| 548 | auto savedatacheck_factory = Common::make_unique<FileSys::ArchiveFactory_SaveDataCheck>(nand_directory); | 547 | auto savedatacheck_factory = std::make_unique<FileSys::ArchiveFactory_SaveDataCheck>(nand_directory); |
| 549 | RegisterArchiveType(std::move(savedatacheck_factory), ArchiveIdCode::SaveDataCheck); | 548 | RegisterArchiveType(std::move(savedatacheck_factory), ArchiveIdCode::SaveDataCheck); |
| 550 | 549 | ||
| 551 | auto systemsavedata_factory = Common::make_unique<FileSys::ArchiveFactory_SystemSaveData>(nand_directory); | 550 | auto systemsavedata_factory = std::make_unique<FileSys::ArchiveFactory_SystemSaveData>(nand_directory); |
| 552 | RegisterArchiveType(std::move(systemsavedata_factory), ArchiveIdCode::SystemSaveData); | 551 | RegisterArchiveType(std::move(systemsavedata_factory), ArchiveIdCode::SystemSaveData); |
| 553 | } | 552 | } |
| 554 | 553 | ||