mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add nullable context to SabreTools.DatFiles
This commit is contained in:
@@ -92,8 +92,8 @@ namespace SabreTools.DatFiles.Formats
|
||||
return;
|
||||
|
||||
// Create the machine for copying information
|
||||
string machineName = game.Name.Trim('"');
|
||||
if (machineName.EndsWith(".zip"))
|
||||
string? machineName = game.Name?.Trim('"');
|
||||
if (machineName?.EndsWith(".zip") == true)
|
||||
machineName = System.IO.Path.GetFileNameWithoutExtension(machineName);
|
||||
|
||||
var machine = new Machine { Name = machineName };
|
||||
|
||||
Reference in New Issue
Block a user