mirror of
https://github.com/rvtr/ctr_card_test.git
synced 2025-06-18 14:45:42 -04:00

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_card_test@8 ff8ce827-af98-4349-adb5-4c00699b5328
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
#include "nakayama.h"
|
|
#include "FunctionTest.cpp"
|
|
#include "CommandTest.cpp"
|
|
#include "ReliabilityTestForRom.cpp"
|
|
#include "ReliabilityTestForRWMemory.cpp"
|
|
#include "BackupMemoryTest.cpp"
|
|
|
|
using namespace nn::red::nakayama;
|
|
|
|
class CtrCardTest: public CardTestProgram
|
|
{
|
|
public:
|
|
virtual void Execute()
|
|
{
|
|
Page page;
|
|
|
|
Label title;
|
|
title.X = 20;
|
|
title.Y = 10;
|
|
title.Text = "CTR Card Test";
|
|
page.Add(title);
|
|
|
|
Label date;
|
|
date.X = 250;
|
|
date.Y = 10;
|
|
date.Text = __DATE__;
|
|
page.Add(date);
|
|
|
|
Selector<Program> menu;
|
|
menu.X = 30;
|
|
menu.Y = 40;
|
|
page.Add(menu);
|
|
|
|
menu.Register("Function Test", *(new FunctionTest()));
|
|
menu.Register("Command Test", *(new CommandTest()));
|
|
menu.Register("Reliability Test for ROM",*(new ReliabilityTestForRom()));
|
|
menu.Register("Reliability Test for Writable Memory",*(new ReliabilityTestForRWMemory()));
|
|
menu.Register("Back Up Memory Test", *(new BackupMemoryTest()));
|
|
|
|
while (1)
|
|
{
|
|
page.Show(Display::GetInstance(Display::Upper));
|
|
|
|
if (menu.Selected)
|
|
{
|
|
menu.GetSelectedItem()->Execute();
|
|
menu.Selected = false;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|