mirror of
https://github.com/KrisKennaway/pyapple2disk.git
synced 2024-11-29 14:50:00 +00:00
When successfully tasting a disk add the new disk as a child of the parent
This commit is contained in:
parent
da5afa2a36
commit
67683829e4
@ -37,7 +37,9 @@ class Disk(container.Container):
|
||||
@classmethod
|
||||
def Taste(cls, disk):
|
||||
# TODO: return a defined exception here
|
||||
return cls(disk.name, disk.data)
|
||||
newdisk = cls(disk.name, disk.data)
|
||||
disk.AddChild(newdisk)
|
||||
return newdisk
|
||||
|
||||
def SetSectorOwner(self, track, sector, owner):
|
||||
self.sectors[(track, sector)] = owner
|
||||
|
Loading…
Reference in New Issue
Block a user