More work on AndroidStorageFileSystem.cpp. Fix current directory getting reset.

This commit is contained in:
Henrik Rydgård 2021-04-24 18:36:25 +02:00
parent ef607a5fe2
commit beb0b4e9f3
8 changed files with 102 additions and 82 deletions

View file

@ -787,7 +787,7 @@ static void tmFromFiletime(tm &dest, FILETIME &src) {
//
// Note: PSP-created files would stay lowercase, but this uppercases them too.
// Hopefully no PSP games read directories after they create files in them...
static std::string SimulateVFATBug(std::string filename) {
std::string SimulateVFATBug(std::string filename) {
// These are the characters allowed in DOS filenames.
static const char *FAT_UPPER_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&'(){}-_`~";
static const char *FAT_LOWER_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&'(){}-_`~";