Untangle saving TTI files into new file
The saving code is an attempt to be page function and page coding agnostic so the same code can save (G)POP, (G)DRCS and MOT pages in the future. loadsave will be the home of page loading, URL exporting and also for importing and exporting of other teletext file formats.
This commit is contained in:
@@ -26,13 +26,13 @@ PageBase::PageBase()
|
||||
// We use nullptrs to keep track of allocated packets, so initialise them this way
|
||||
for (int i=0; i<90; i++)
|
||||
m_packets[i] = nullptr;
|
||||
for (int i=PageBase::C4ErasePage; i<=PageBase::C11SerialMagazine; i++)
|
||||
for (int i=PageBase::C4ErasePage; i<=PageBase::C14NOS; i++)
|
||||
m_controlBits[i] = false;
|
||||
}
|
||||
|
||||
PageBase::PageBase(const PageBase &other)
|
||||
{
|
||||
for (int i=PageBase::C4ErasePage; i<=PageBase::C11SerialMagazine; i++)
|
||||
for (int i=PageBase::C4ErasePage; i<=PageBase::C14NOS; i++)
|
||||
setControlBit(i, other.controlBit(i));
|
||||
for (int i=0; i<90; i++)
|
||||
if (other.packetNeededArrayIndex(i))
|
||||
|
||||
Reference in New Issue
Block a user