mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
WX: Don't create data dir if it is missing
This is unsafe, because the NAND should not be accessed and messed with while it is being used. In fact, this kind of inappropriate behaviour will not be possible when we get NAND image support. And even if there were no safety issue, there is still no reason a *getter* function should *do* something that has lasting effects on user data. GetWiiFSPath() should *just* return a path!
This commit is contained in:
@ -366,9 +366,6 @@ const std::string GameListItem::GetWiiFSPath() const
|
||||
|
||||
const std::string path = Common::GetTitleDataPath(m_title_id, Common::FROM_CONFIGURED_ROOT);
|
||||
|
||||
if (!File::Exists(path))
|
||||
File::CreateFullPath(path);
|
||||
|
||||
if (path[0] == '.')
|
||||
return WxStrToStr(wxGetCwd()) + path.substr(strlen(ROOT_DIR));
|
||||
|
||||
|
Reference in New Issue
Block a user