Fix a couple things

This commit is contained in:
J-D-K 2021-05-27 17:56:04 -04:00
parent 6c95ffc0f7
commit a02b3e82c3
4 changed files with 7 additions and 6 deletions

View File

@ -38,7 +38,7 @@ INCLUDES := inc
EXEFS_SRC := exefs_src
APP_TITLE := JKSV
APP_AUTHOR := JK
APP_VERSION := 05.05.2021
APP_VERSION := 05.27.2021
ROMFS := romfs
ICON := romfs/icon.jpg

View File

@ -13,13 +13,11 @@
#define curData users[data::selUser].titles[data::selData]
#define BLD_MON 05
#define BLD_DAY 05
#define BLD_DAY 27
#define BLD_YEAR 2021
namespace data
{
extern bool forceMount;
//Loads user + title info
void init();
void exit();

View File

@ -503,7 +503,7 @@ void copyFileToZip_t(void *a)
{
if(zipWriteInFileInZip(*args->z, inBuff, readIn) != 0)
{
fs::logWrite("Failed", "zipWriteInFileInZip -> \"%s\"\n", args->from.c_str());
fs::logWrite("zipWriteInFileInZip failed -> \"%s\"\n", args->from.c_str());
break;
}
@ -714,6 +714,8 @@ bool fs::dumpAllUserSaves(const data::user& u)
if(fs::mountSave(u, u.titles[i]))
{
u.titles[i].createDir();
std::string filtersPath = u.titles[i].getPath() + "pathFilters.txt";
fs::loadPathFilters(filtersPath);
switch(data::zip)
{
case true:
@ -734,6 +736,7 @@ bool fs::dumpAllUserSaves(const data::user& u)
break;
}
fsdevUnmountDevice("sv");
fs::freePathFilters();
}
}
return true;//?

View File

@ -173,7 +173,7 @@ std::string util::safeString(const std::string& s)
}
//Check for spaces at end
while(ret[ret.length() - 1] == ' ')
while(ret[ret.length() - 1] == ' ' || ret[ret.length() - 1] == '.')
ret.erase(ret.length() - 1, 1);
return ret;