File:  [Isaki's NoNo m68k/m88k emulator] / nono / host / driver.cpp
Revision 1.1.1.6 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:06:02 2026 UTC (2 months, 3 weeks ago) by root
Branches: MAIN, Isaki
CVS tags: v027, HEAD
nono 1.7.0

//
// nono
// Copyright (C) 2022 nono project
// Licensed under nono-license.txt
//

//
// ホストドライバ (基本クラス)
//

#include "driver.h"
#include "hostdevice.h"

// コンストラクタ
Driver::Driver(HostDevice *hostdev_, const std::string& drivername_)
	: inherited(OBJ_NONE)
{
	hostdev = hostdev_;
	drivername = drivername_;

	SetName(hostdev->GetName() + "." + drivername);

	// ドライバのログレベルは常にホストデバイス(親)のログレベルに従属なので
	// ドライバオブジェクトにログエイリアスは不要。
	ClearAlias();

	// コンストラクト後ただちにログ出力できるようここで一度追従しておく。
	// 以降はホストデバイスの SetLogLevel() で変更する。
	loglevel = hostdev->loglevel;
}

// デストラクタ
Driver::~Driver()
{
}

// ドライバ初期化
bool
Driver::InitDriver(bool startup)
{
	putmsg(1, "created");
	return true;
}

// Driver の Dispatch() は udata を返す。
int
Driver::Dispatch(int udata)
{
	return udata;
}

// モニタ (ドライバ依存情報のみ)
void
Driver::MonitorScreenMD(TextScreen& screen, int y)
{
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.