diff options
| author | 2014-12-20 16:47:47 -0500 | |
|---|---|---|
| committer | 2014-12-21 16:39:17 -0500 | |
| commit | a7cc7972de3401ed2ccc5002272695f098b4955f (patch) | |
| tree | 29c895a4cc3369a6491e98b9d74affc0df4af749 /src | |
| parent | CFG:U: Implemented some more blocks (diff) | |
| download | yuzu-a7cc7972de3401ed2ccc5002272695f098b4955f.tar.gz yuzu-a7cc7972de3401ed2ccc5002272695f098b4955f.tar.xz yuzu-a7cc7972de3401ed2ccc5002272695f098b4955f.zip | |
CFG_U: Use Common::make_unique instead of the std version
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/cfg_u.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/cfg_u.cpp b/src/core/hle/service/cfg_u.cpp index 0e56f1245..5d21fcae8 100644 --- a/src/core/hle/service/cfg_u.cpp +++ b/src/core/hle/service/cfg_u.cpp | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include "common/file_util.h" | 5 | #include "common/file_util.h" |
| 6 | #include "common/log.h" | 6 | #include "common/log.h" |
| 7 | #include "common/make_unique.h" | ||
| 7 | #include "common/string_util.h" | 8 | #include "common/string_util.h" |
| 8 | #include "core/file_sys/archive_systemsavedata.h" | 9 | #include "core/file_sys/archive_systemsavedata.h" |
| 9 | #include "core/hle/hle.h" | 10 | #include "core/hle/hle.h" |
| @@ -399,7 +400,7 @@ Interface::Interface() { | |||
| 399 | // TODO(Subv): In the future we should use the FS service to query this archive, | 400 | // TODO(Subv): In the future we should use the FS service to query this archive, |
| 400 | // currently it is not possible because you can only have one open archive of the same type at any time | 401 | // currently it is not possible because you can only have one open archive of the same type at any time |
| 401 | std::string syssavedata_directory = FileUtil::GetUserPath(D_SYSSAVEDATA_IDX); | 402 | std::string syssavedata_directory = FileUtil::GetUserPath(D_SYSSAVEDATA_IDX); |
| 402 | cfg_system_save_data = std::make_unique<FileSys::Archive_SystemSaveData>(syssavedata_directory, | 403 | cfg_system_save_data = Common::make_unique<FileSys::Archive_SystemSaveData>(syssavedata_directory, |
| 403 | CFG_SAVE_ID); | 404 | CFG_SAVE_ID); |
| 404 | if (!cfg_system_save_data->Initialize()) { | 405 | if (!cfg_system_save_data->Initialize()) { |
| 405 | LOG_CRITICAL(Service_CFG, "Could not initialize SystemSaveData archive for the CFG:U service"); | 406 | LOG_CRITICAL(Service_CFG, "Could not initialize SystemSaveData archive for the CFG:U service"); |