[Trainers] cleanup: remove duplicate code from utils

This commit is contained in:
antonic901
2025-08-08 04:12:46 +02:00
parent 0f2ace45ed
commit 5d47789631
3 changed files with 1 additions and 488 deletions
+1 -1
View File
@@ -1046,7 +1046,7 @@ HRESULT CApplication::Create(HWND hWnd)
F_VIDEO ForceVideo = VIDEO_NULL;
F_COUNTRY ForceCountry = COUNTRY_NULL;
if (CUtil::RemoveTrainer())
if (CTrainer::RemoveTrainer())
bNeedReboot = true;
// now check if we are switching video modes. if, are we in the wrong mode according to eeprom?
-484
View File
File diff suppressed because it is too large Load Diff
-3
View File
@@ -43,7 +43,6 @@ namespace XFILE
class CFileItem;
class CFileItemList;
class CURL;
class CTrainer;
// for 'cherry' patching
typedef enum
@@ -81,8 +80,6 @@ public:
static CStdString GetTitleFromPath(const CURL& url, bool bIsFolder = false);
static CStdString GetTitleFromPath(const CStdString& strFileNameAndPath, bool bIsFolder = false);
static void GetQualifiedFilename(const std::string &strBasePath, std::string &strFilename);
static bool InstallTrainer(CTrainer& trainer);
static bool RemoveTrainer();
static bool PatchCountryVideo(F_COUNTRY Country, F_VIDEO Video);
static void RunShortcut(const char* szPath);
static void RunXBE(const char* szPath, char* szParameters = NULL, F_VIDEO ForceVideo=VIDEO_NULL, F_COUNTRY ForceCountry=COUNTRY_NULL, CUSTOM_LAUNCH_DATA* pData=NULL);