mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Usable length can differ
This commit is contained in:
@@ -100,7 +100,7 @@ namespace SabreTools
|
||||
}
|
||||
|
||||
// Windows max name length is 260
|
||||
int usableLength = 259 - _path.Length;
|
||||
int usableLength = 260 - rom.Game.Length - _path.Length;
|
||||
if (rom.Name.Length > usableLength)
|
||||
{
|
||||
string ext = Path.GetExtension(rom.Name);
|
||||
|
||||
Reference in New Issue
Block a user