Skip to content

Commit

Permalink
ToLower only on letter
Browse files Browse the repository at this point in the history
  • Loading branch information
enzofrnt committed Dec 1, 2024
1 parent 6ebe19a commit 6f5d927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Security/BeamNG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ std::map<char, std::string> GetDriveMappings(const std::string& bottlePath) {
if (std::filesystem::exists(dosDevicesPath)) {
for (const auto& entry : std::filesystem::directory_iterator(dosDevicesPath)) {
if (entry.is_symlink()) {
std::string driveName = Utils::ToLower(entry.path().filename().string());
char driveLetter = driveName[0];
char driveLetter = entry.path().filename().string()[0];
driveLetter = Utils::ToLower(driveLetter);
std::string macPath = std::filesystem::read_symlink(entry.path()).string();
if (!std::filesystem::path(macPath).is_absolute()) {
macPath = dosDevicesPath + macPath;
Expand Down

0 comments on commit 6f5d927

Please sign in to comment.