mirror of
https://github.com/KrisKennaway/pyapple2disk.git
synced 2024-11-26 10:49:19 +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
|
@classmethod
|
||||||
def Taste(cls, disk):
|
def Taste(cls, disk):
|
||||||
# TODO: return a defined exception here
|
# 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):
|
def SetSectorOwner(self, track, sector, owner):
|
||||||
self.sectors[(track, sector)] = owner
|
self.sectors[(track, sector)] = owner
|
||||||
|
Loading…
Reference in New Issue
Block a user