Adjustments to wildcard engine
Fixed incorrect logic when checking at the end of the string - some of the names had an added null character Removed case sensitivity
This commit is contained in:
@@ -213,7 +213,6 @@ STFS::Error STFS::ReadAllEntries(const uint8_t* map_ptr) {
|
||||
|
||||
auto entry = std::make_unique<STFSEntry>();
|
||||
entry->name = std::string((char*)filename, filename_length_flags & 0x3F);
|
||||
entry->name.append(1, '\0');
|
||||
// bit 0x40 = consecutive blocks (not fragmented?)
|
||||
if (filename_length_flags & 0x80) {
|
||||
entry->attributes = X_FILE_ATTRIBUTE_DIRECTORY;
|
||||
|
||||
Reference in New Issue
Block a user