Skip to content

Commit

Permalink
Restore comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Dec 15, 2023
1 parent 08f7ee1 commit 5d09835
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/iop/Iop_McServ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,10 @@ void CMcServ::ChDir(uint32* args, uint32 argsSize, uint32* ret, uint32 retSize,
newCurrentDirectory = currentDirectory + SEPARATOR_CHAR + requestedDirectory;
}

//Some games (EA games) will try to ChDir('..') from the MC's root
//Kim Possible: What's the Switch will also attempt this and rely on the result
//to consider other MC operations to be successes.

newCurrentDirectory = MakeAbsolutePath(newCurrentDirectory);

auto mcPath = CAppConfig::GetInstance().GetPreferencePath(m_mcPathPreference[cmd->port]);
Expand Down

0 comments on commit 5d09835

Please sign in to comment.