Skip to content

Commit

Permalink
Fix Switch compilation on latest libnx
Browse files Browse the repository at this point in the history
  • Loading branch information
piepie62 committed Jun 20, 2020
1 parent c46b4de commit ae1e2f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sharkive
Submodule sharkive updated 885 files
1 change: 1 addition & 0 deletions switch/source/pksmbridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ std::tuple<bool, Result, std::string> recvFromPKSMBridge(size_t index, AccountUi
}
else {
filename = "DEFAULT";
// WHAT DO WE DO ABOUT SIZE?
}
std::string srcPath = title.fullPath(cellIndex) + filename;
FILE* save = fopen(srcPath.c_str(), "wb");
Expand Down
2 changes: 1 addition & 1 deletion switch/source/title.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void loadTitles(void)

// load play statistics
PdmPlayStatistics stats;
res = pdmqryQueryPlayStatisticsByApplicationIdAndUserAccountId(tid, uid, &stats);
res = pdmqryQueryPlayStatisticsByApplicationIdAndUserAccountId(tid, uid, false, &stats);
if (R_SUCCEEDED(res)) {
title.playTimeMinutes(stats.playtimeMinutes);
title.lastPlayedTimestamp(stats.last_timestampUser);
Expand Down
4 changes: 2 additions & 2 deletions switch/source/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Result servicesInit(void)

romfsInit();

if (R_FAILED(res = plInitialize())) {
if (R_FAILED(res = plInitialize(PlServiceType_User))) {
Logger::getInstance().log(Logger::ERROR, "plInitialize failed. Result code 0x%08lX.", res);
return res;
}
Expand Down Expand Up @@ -187,4 +187,4 @@ void blinkLed(u8 times)
}
}
}
}
}

0 comments on commit ae1e2f3

Please sign in to comment.