diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-02-06 14:53:14 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-02-10 16:43:44 +0100 |
commit | 3f1a3952d707bce7851652ce54701ca14334f314 (patch) | |
tree | 04c79ff9887f0074813276cdf989e6814901e943 /src/core/hle/service/ptm_u.cpp | |
parent | FS: Get rid of completely useless Archive class (diff) | |
download | yuzu-3f1a3952d707bce7851652ce54701ca14334f314.tar yuzu-3f1a3952d707bce7851652ce54701ca14334f314.tar.gz yuzu-3f1a3952d707bce7851652ce54701ca14334f314.tar.bz2 yuzu-3f1a3952d707bce7851652ce54701ca14334f314.tar.lz yuzu-3f1a3952d707bce7851652ce54701ca14334f314.tar.xz yuzu-3f1a3952d707bce7851652ce54701ca14334f314.tar.zst yuzu-3f1a3952d707bce7851652ce54701ca14334f314.zip |
Diffstat (limited to 'src/core/hle/service/ptm_u.cpp')
-rw-r--r-- | src/core/hle/service/ptm_u.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/hle/service/ptm_u.cpp b/src/core/hle/service/ptm_u.cpp index 7b465a348..561849f32 100644 --- a/src/core/hle/service/ptm_u.cpp +++ b/src/core/hle/service/ptm_u.cpp @@ -4,8 +4,9 @@ #include "common/log.h" #include "common/make_unique.h" -#include "core/file_sys/archive_extsavedata.h" + #include "core/hle/hle.h" +#include "core/hle/service/fs/archive.h" #include "core/hle/service/ptm_u.h" //////////////////////////////////////////////////////////////////////////////////////////////////// @@ -28,7 +29,6 @@ struct GameCoin { u8 day; }; static const GameCoin default_game_coin = { 0x4F00, 42, 0, 0, 0, 2014, 12, 29 }; -static std::unique_ptr<FileSys::Archive_ExtSaveData> ptm_shared_extsavedata; static const std::vector<u8> ptm_shared_extdata_id = {0, 0, 0, 0, 0x0B, 0, 0, 0xF0, 0, 0, 0, 0}; /// Charge levels used by PTM functions @@ -138,6 +138,10 @@ const Interface::FunctionInfo FunctionTable[] = { Interface::Interface() { Register(FunctionTable); + + // TODO(Subv): This code needs to be updated to not directly create archives and use the + // standard archive.h interfaces. +#if 0 // Create the SharedExtSaveData archive 0xF000000B and the gamecoin.dat file // TODO(Subv): In the future we should use the FS service to query this archive std::string nand_directory = FileUtil::GetUserPath(D_NAND_IDX); @@ -165,6 +169,7 @@ Interface::Interface() { gamecoin->Close(); } } +#endif } } // namespace |