aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Durango/Sentient
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
commit7074f35e4ba831e358117842b99ee35b87f85ae5 (patch)
tree7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.Client/Durango/Sentient
parentd63f79325f85e014361eb8cf1e41eaebedb1ae71 (diff)
shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
Diffstat (limited to 'Minecraft.Client/Durango/Sentient')
-rw-r--r--Minecraft.Client/Durango/Sentient/DurangoTelemetry.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/Minecraft.Client/Durango/Sentient/DurangoTelemetry.cpp b/Minecraft.Client/Durango/Sentient/DurangoTelemetry.cpp
index d51ce966..1b4f5465 100644
--- a/Minecraft.Client/Durango/Sentient/DurangoTelemetry.cpp
+++ b/Minecraft.Client/Durango/Sentient/DurangoTelemetry.cpp
@@ -51,13 +51,13 @@ HRESULT CDurangoTelemetryManager::Flush()
bool CDurangoTelemetryManager::RecordPlayerSessionStart(int iPad)
{
durangoStats()->generatePlayerSession();
-
+
return true;
}
bool CDurangoTelemetryManager::RecordPlayerSessionExit(int iPad, int exitStatus)
{
- PlayerUID puid; shared_ptr<Player> plr;
+ PlayerUID puid; std::shared_ptr<Player> plr;
ProfileManager.GetXUID(iPad, &puid, true);
plr = Minecraft::GetInstance()->localplayers[iPad];
@@ -123,11 +123,11 @@ bool CDurangoTelemetryManager::RecordPlayerSessionExit(int iPad, int exitStatus)
bool CDurangoTelemetryManager::RecordLevelStart(int iPad, ESen_FriendOrMatch friendsOrMatch, ESen_CompeteOrCoop competeOrCoop, int difficulty, int numberOfLocalPlayers, int numberOfOnlinePlayers)
{
CTelemetryManager::RecordLevelStart(iPad, friendsOrMatch, competeOrCoop, difficulty, numberOfLocalPlayers, numberOfOnlinePlayers);
-
+
ULONG hr = 0;
// Grab player info.
- PlayerUID puid; shared_ptr<Player> plr;
+ PlayerUID puid; std::shared_ptr<Player> plr;
ProfileManager.GetXUID(iPad, &puid, true);
plr = Minecraft::GetInstance()->localplayers[iPad];
@@ -191,10 +191,10 @@ bool CDurangoTelemetryManager::RecordLevelStart(int iPad, ESen_FriendOrMatch fri
GetSubLevelId(iPad),
GetLevelInstanceID(),
&ZERO_GUID,
- friendsOrMatch,
- competeOrCoop,
- difficulty,
- numberOfLocalPlayers,
+ friendsOrMatch,
+ competeOrCoop,
+ difficulty,
+ numberOfLocalPlayers,
numberOfOnlinePlayers,
&ZERO_GUID
);
@@ -219,10 +219,10 @@ bool CDurangoTelemetryManager::RecordLevelStart(int iPad, ESen_FriendOrMatch fri
// Durango //
/* GUID */ guid2str(DurangoStats::getPlayerSession()).c_str(),
/* WSTR */ DurangoStats::getMultiplayerCorrelationId(),
- /* int */ friendsOrMatch,
- /* int */ competeOrCoop,
- /* int */ difficulty,
- /* int */ numberOfLocalPlayers,
+ /* int */ friendsOrMatch,
+ /* int */ competeOrCoop,
+ /* int */ difficulty,
+ /* int */ numberOfLocalPlayers,
/* int */ numberOfOnlinePlayers
);
@@ -577,7 +577,7 @@ bool CDurangoTelemetryManager::RecordMediaShareUpload(int iPad, ESen_MediaDestin
mediaDestination,
mediaType
);
-#else
+#else
ULONG hr = -1;
#endif