mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Utilities] More helpers
This commit is contained in:
@@ -113,29 +113,7 @@ namespace SabreTools.Library.DatFiles
|
||||
}
|
||||
|
||||
// Create the proper DatItem based on the type
|
||||
DatItem item;
|
||||
switch (temptype)
|
||||
{
|
||||
case ItemType.Archive:
|
||||
item = new Archive();
|
||||
break;
|
||||
case ItemType.BiosSet:
|
||||
item = new BiosSet();
|
||||
break;
|
||||
case ItemType.Disk:
|
||||
item = new Disk();
|
||||
break;
|
||||
case ItemType.Release:
|
||||
item = new Release();
|
||||
break;
|
||||
case ItemType.Sample:
|
||||
item = new Sample();
|
||||
break;
|
||||
case ItemType.Rom:
|
||||
default:
|
||||
item = new Rom();
|
||||
break;
|
||||
}
|
||||
DatItem item = Utilities.GetDatItem(temptype);
|
||||
|
||||
// Then populate it with information
|
||||
item.MachineName = tempgamename;
|
||||
|
||||
Reference in New Issue
Block a user