From 0f3115a40295f008fcefd2bd2890158cdf2eeb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B3pez=20Guimaraes?= Date: Thu, 21 Nov 2024 20:43:17 +0000 Subject: [PATCH] fix(p2p): Don't apply patches when not using Pretendo --- src/patches/game_peertopeer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/patches/game_peertopeer.cpp b/src/patches/game_peertopeer.cpp index c464117..e0e0fa3 100644 --- a/src/patches/game_peertopeer.cpp +++ b/src/patches/game_peertopeer.cpp @@ -15,6 +15,7 @@ #include #include "game_peertopeer.h" +#include "config.h" #include "sysconfig.h" #include "utils/logger.h" #include "utils/rpl_info.h" @@ -44,6 +45,10 @@ static void minecraft_peertopeer_patch() { } void peertopeer_patch() { + if (!Config::connect_to_network) { + return; + } + uint64_t tid = OSGetTitleID(); if (tid == 0x00050000'101D7500 || // EUR tid == 0x00050000'101D9D00 || // USA