mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Merge branch 'logo-path-fix' of https://github.com/nerdspice/lgogdownloader
This commit is contained in:
commit
326785c934
@ -128,8 +128,8 @@ void gameDetails::makeFilepaths(const DirectoryConfig& config)
|
|||||||
{
|
{
|
||||||
subdir = config.bSubDirectories ? config.sDLCSubdir + "/" + config.sInstallersSubdir : "";
|
subdir = config.bSubDirectories ? config.sDLCSubdir + "/" + config.sInstallersSubdir : "";
|
||||||
this->dlcs[i].serialsFilepath = Util::makeFilepath(directory, "serials.txt", this->gamename, subdir, 0);
|
this->dlcs[i].serialsFilepath = Util::makeFilepath(directory, "serials.txt", this->gamename, subdir, 0);
|
||||||
this->dlcs[i].logoFilepath = Util::makeFilepath(directory, "logo" + logo_ext, this->gamename, subdir, 0);
|
this->dlcs[i].logoFilepath = Util::makeFilepath(directory, "logo" + logo_ext, this->gamename, subdir, 0, this->dlcs[i].gamename);
|
||||||
this->dlcs[i].iconFilepath = Util::makeFilepath(directory, "icon" + icon_ext, this->gamename, subdir, 0);
|
this->dlcs[i].iconFilepath = Util::makeFilepath(directory, "icon" + icon_ext, this->gamename, subdir, 0, this->dlcs[i].gamename);
|
||||||
this->dlcs[i].changelogFilepath = Util::makeFilepath(directory, "changelog_" + this->dlcs[i].gamename + ".html", this->gamename, subdir, 0);
|
this->dlcs[i].changelogFilepath = Util::makeFilepath(directory, "changelog_" + this->dlcs[i].gamename + ".html", this->gamename, subdir, 0);
|
||||||
for (unsigned int j = 0; j < this->dlcs[i].installers.size(); ++j)
|
for (unsigned int j = 0; j < this->dlcs[i].installers.size(); ++j)
|
||||||
{
|
{
|
||||||
|
@ -439,6 +439,12 @@ void Util::filepathReplaceReservedStrings(std::string& str, const std::string& g
|
|||||||
platform = "no_platform";
|
platform = "no_platform";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't save artwork in "no_platform" folder
|
||||||
|
if (str.rfind("/icon.png") != std::string::npos || str.rfind("/logo.jpg") != std::string::npos)
|
||||||
|
{
|
||||||
|
platform = "";
|
||||||
|
}
|
||||||
|
|
||||||
std::string gamename_firstletter;
|
std::string gamename_firstletter;
|
||||||
if (!gamename.empty())
|
if (!gamename.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user