Skip to content

Commit

Permalink
fix : fixed pokémon games
Browse files Browse the repository at this point in the history
  • Loading branch information
PoloNX committed Jun 4, 2024
1 parent eb37ad6 commit 6e8be36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/views/download_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ void DownloadView::downloadFile() {

//Prevent incorrect chars in the path
std::regex badChars("[:/\\<>|*]");
extract::extractEntry(this->file.getPath(), fmt::format("sdmc:/{}/{}/{}", utils::getModInstallPath(), std::regex_replace(this->file.getGame().getTitle(), badChars, "-"), std::regex_replace(this->file.getModName(), badChars, "-")), this->file.getGame().getTid());
std::regex accent("é");
extract::extractEntry(this->file.getPath(), fmt::format("sdmc:/{}/{}/{}", utils::getModInstallPath(), std::regex_replace(std::regex_replace(this->file.getGame().getTitle(), badChars, "-"), accent, "e"), std::regex_replace(this->file.getModName(), badChars, "-")), this->file.getGame().getTid());

this->extractFinished = true;
}

Expand Down

0 comments on commit 6e8be36

Please sign in to comment.