From 9eadb8d393d700f3bcc142cb768708f0b4b08d70 Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Sun, 25 Apr 2021 13:25:21 -0500 Subject: [PATCH] remove unused code --- src/core/kernel/exports/EmuKrnlHal.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/core/kernel/exports/EmuKrnlHal.cpp b/src/core/kernel/exports/EmuKrnlHal.cpp index 0606b8971..6380e232a 100644 --- a/src/core/kernel/exports/EmuKrnlHal.cpp +++ b/src/core/kernel/exports/EmuKrnlHal.cpp @@ -539,7 +539,6 @@ XBSYSAPI EXPORTNUM(49) xbox::void_xt DECLSPEC_NORETURN NTAPI xbox::HalReturnToFi std::string TitlePath = xbox::LaunchDataPage->Header.szLaunchPath; - char szWorkingDirectoy[xbox::max_path]; // If the title path starts with a semicolon, remove it if (TitlePath.length() > 0 && TitlePath[0] == ';') { @@ -553,12 +552,6 @@ XBSYSAPI EXPORTNUM(49) xbox::void_xt DECLSPEC_NORETURN NTAPI xbox::HalReturnToFi std::string& XbePath = CxbxConvertXboxToHostPath(TitlePath); - // Determine Working Directory - { - strncpy_s(szWorkingDirectoy, XbePath.c_str(), MAX_PATH); - PathRemoveFileSpec(szWorkingDirectoy); - } - // Relaunch Cxbx, to load another Xbe { int QuickReboot;