Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dos/drive_virtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void VFILE_Register(const char* name, uint8_t* data, uint32_t size, const char*
static unsigned int last_resolved_onpos = 0;

std::string current_normalized_dir = dir_str;
if(current_normalized_dir.front() == '/' || current_normalized_dir.front() == '\\') current_normalized_dir.erase(0, 1);
if(!current_normalized_dir.empty() && (current_normalized_dir.front() == '/' || current_normalized_dir.front() == '\\')) current_normalized_dir.erase(0, 1);
if(!current_normalized_dir.empty() && (current_normalized_dir.back() == '/' || current_normalized_dir.back() == '\\')) current_normalized_dir.pop_back();

// Improvement: To avoid catching its own name during the search, the global arrays (vfnames/vfsnames)
Expand Down
Loading