Skip to content

Commit

Permalink
TGDRV always returns file names all capital.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainys committed Dec 12, 2023
1 parent eccc399 commit 2caefb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/towns/tgdrv/tgdrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
<< LICENSE */
#include <iostream>
#include <cctype>
#include "tgdrv.h"
#include "towns.h"

Expand Down Expand Up @@ -1803,6 +1804,7 @@ std::string TownsTgDrv::GetLastOfFilename(std::string in) const
}
return last;
}

std::string TownsTgDrv::FilenameTo11Bytes(std::string in) const
{
int ptr=0;
Expand Down Expand Up @@ -1833,6 +1835,10 @@ std::string TownsTgDrv::FilenameTo11Bytes(std::string in) const
{
eleven.push_back(' ');
}
for(auto &c : eleven)
{
c=std::toupper(c);
}
return eleven;
}
std::string TownsTgDrv::FullPathToSubDir(std::string fn) const
Expand Down

0 comments on commit 2caefb6

Please sign in to comment.