|
|
1.1 ! root 1: // ! 2: // nono ! 3: // Copyright (C) 2022 nono project ! 4: // Licensed under nono-license.txt ! 5: // ! 6: ! 7: // ! 8: // ROM 種別を表示するウィンドウ ! 9: // ! 10: ! 11: #include "wxromwindow.h" ! 12: #include "mainapp.h" ! 13: #include "prom.h" ! 14: #include "romimg_x68k.h" ! 15: ! 16: // コンストラクタ ! 17: WXROMWindow::WXROMWindow(wxWindow *parent) ! 18: : inherited(parent, wxID_ANY, _("ROM")) ! 19: { ! 20: int row; ! 21: ! 22: // ROM はアプリケーション起動後に変化しないので、初回実行時に情報収集。 ! 23: if (gMainApp.GetVMType() == VMType::X68030) { ! 24: row = 3; ! 25: } else { ! 26: row = 1; ! 27: } ! 28: ! 29: panel = new WXTextScreen(this, nnSize(52, row)); ! 30: auto& screen = panel->GetScreen(); ! 31: ! 32: if (gMainApp.GetVMType() == VMType::X68030) { ! 33: const char *iplrom1_filename = gIPLROM1->GetFilename(); ! 34: const char *iplrom2_filename = gIPLROM2->GetFilename(); ! 35: const char *cgrom_filename = gCGROM->GetFilename(); ! 36: ! 37: screen.Print(0, 0, "IPLROM1($fe0000-$ffffff,128KB): %s", ! 38: (iplrom1_filename ? "image file" : "Genuine IPLROM30.DAT")); ! 39: screen.Print(0, 1, "IPLROM2($fc0000-$fdffff,128KB): %s", ! 40: (iplrom2_filename ? "image file" : "nono's builtin")); ! 41: screen.Print(0, 2, "CGROM ($f00000-$fbffff,768KB): %s", ! 42: (cgrom_filename ? "image file" : "nono's builtin")); ! 43: } else { ! 44: const char *prom_filename = gPROM->GetFilename(); ! 45: ! 46: screen.Print(0, 0, "PROM($41000000-): %s", ! 47: (prom_filename ? "image file" : "nono's builtin")); ! 48: } ! 49: ! 50: DoSize(); ! 51: } ! 52: ! 53: WXROMWindow::~WXROMWindow() ! 54: { ! 55: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.