summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ptm/ptm.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-04-28 04:01:48 +0200
committerbunnei <bunneidev@gmail.com>2015-05-02 00:27:02 +0200
commite0cb85691a99fb06dbce5e802ae756a944b1a66c (patch)
treed82acb9b470acec2f5faf5b2c6d9ea7cd6982018 /src/core/hle/service/ptm/ptm.cpp
parentMemory: Properly cleanup & shutdown. (diff)
downloadyuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.gz
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.bz2
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.lz
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.xz
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.zst
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.zip
Diffstat (limited to 'src/core/hle/service/ptm/ptm.cpp')
-rw-r--r--src/core/hle/service/ptm/ptm.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp
index 57a301bec..d44510c1b 100644
--- a/src/core/hle/service/ptm/ptm.cpp
+++ b/src/core/hle/service/ptm/ptm.cpp
@@ -18,9 +18,9 @@ static const GameCoin default_game_coin = { 0x4F00, 42, 0, 0, 0, 2014, 12, 29 };
/// Id of the SharedExtData archive used by the PTM process
static const std::vector<u8> ptm_shared_extdata_id = {0, 0, 0, 0, 0x0B, 0, 0, 0xF0, 0, 0, 0, 0};
-static bool shell_open = true;
+static bool shell_open;
-static bool battery_is_charging = true;
+static bool battery_is_charging;
u32 GetAdapterState() {
// TODO(purpasmart96): This function is only a stub,
@@ -43,6 +43,9 @@ void Init() {
AddService(new PTM_Sysm_Interface);
AddService(new PTM_U_Interface);
+ shell_open = true;
+ battery_is_charging = true;
+
// Open the SharedExtSaveData archive 0xF000000B and create the gamecoin.dat file if it doesn't exist
FileSys::Path archive_path(ptm_shared_extdata_id);
auto archive_result = Service::FS::OpenArchive(Service::FS::ArchiveIdCode::SharedExtSaveData, archive_path);