mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-08 19:32:39 +08:00
commit
c25eee850b
@ -344,7 +344,7 @@ template <class MT> bool String_DBCS_TO_HOST_UTF8(char *d/*CROSS_LEN*/,const cha
|
||||
|
||||
// TODO: This is SLOW. Optimize.
|
||||
template <class MT> int SBCS_From_Host_Find(int c,const MT *map,const size_t map_max) {
|
||||
if (morelen && (MT)c<0x20 && map[c] == cp437_to_unicode[c]) return c;
|
||||
if (morelen && (MT)c<0x20 && c >= 0 && c < 256 && map[c] == cp437_to_unicode[c]) return c;
|
||||
for (size_t i=0;i < map_max;i++) {
|
||||
if ((MT)c == map[i])
|
||||
return (int)i;
|
||||
|
@ -500,7 +500,7 @@ struct fatFromDOSDrive
|
||||
ffddFile f;
|
||||
memcpy(f.path, dir, dirlen);
|
||||
memcpy(f.path + dirlen, dta_name, fend - dta_name + 1);
|
||||
if (filter && filter->Get(f.path)) continue;
|
||||
if (filter && filter->Get(f.path, sizeof(f.path))) continue;
|
||||
|
||||
const bool isLongFileName = (!dot && !dotdot && !(dta_attr & DOS_ATTR_VOLUME));
|
||||
if (isLongFileName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user