当前位置: 首页>>代码示例>>C++>>正文


C++ PluginLog类代码示例

本文整理汇总了C++中PluginLog的典型用法代码示例。如果您正苦于以下问题:C++ PluginLog类的具体用法?C++ PluginLog怎么用?C++ PluginLog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了PluginLog类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: sizeof

EXPORT_C_(s32) DEV9init()
{
	LoadConfig();
	setLoggingState();
	LogInit();
	Dev9Log.WriteLn("dev9null plugin version %d,%d", revision, build);
	Dev9Log.WriteLn("Initializing dev9null");
	// Initialize anything that needs to be initialized.
	memset(dev9regs, 0, sizeof(dev9regs));
	return 0;
}
开发者ID:Hourousha,项目名称:pcsx2,代码行数:11,代码来源:DEV9.cpp

示例2: switch

USBwrite32(u32 addr, u32 value)
{
    switch (addr) {
        // Handle any appropriate addresses here.
        case 0x1f801600:
            USBLog.WriteLn("(USBnull) 16 bit write at address %lx value %x", addr, value);
            break;

        default:
            //usbRu32(addr) = value;
            USBLog.WriteLn("(USBnull) 32 bit write at address %lx value %x", addr, value);
    }
}
开发者ID:Dyndrilliac,项目名称:pcsx2,代码行数:13,代码来源:USB.cpp

示例3:

EXPORT_C_(void) USBwrite8(u32 addr,  u8 value)
{
	switch(addr)
	{
		// Handle any appropriate addresses here.
		case 0x1f801600:
			USBLog.WriteLn("(USBnull) 8 bit write at address %lx value %x", addr, value);
		break;

		default:
			//usbRu8(addr) = value;
			USBLog.WriteLn("(USBnull) 8 bit write at address %lx value %x", addr, value);
	}
}
开发者ID:tsiru,项目名称:pcsx2,代码行数:14,代码来源:USB.cpp

示例4:

EXPORT_C_(s32) DEV9open(void *pDsp)
{
	Dev9Log.WriteLn("Opening Dev9null.");
	// Get anything ready we need to. Opening and creating hard
	// drive files, for example.
	return 0;
}
开发者ID:Hourousha,项目名称:pcsx2,代码行数:7,代码来源:DEV9.cpp

示例5: USBopen

EXPORT_C_(s32) USBopen(void *pDsp)
{
	USBLog.WriteLn("Opening USBnull.");

	// Take care of anything else we need on opening, other then initialization.
	return 0;
}
开发者ID:tsiru,项目名称:pcsx2,代码行数:7,代码来源:USB.cpp

示例6: switch

EXPORT_C_(u16) DEV9read16(u32 addr)
{
    u16 value = 0;

    switch(addr)
    {
		// Addresses you may want to catch here include:
//			case 0x1F80146E:		// DEV9 hardware type (0x32 for an expansion bay)
//			case 0x10000002:		// The Smart Chip revision. Should be 0x11
//			case 0x10000004:		// More type info: bit 0 - smap; bit 1 - hd; bit 5 - flash
//			case 0x1000000E:		// Similar to the last; bit 1 should be set if a hd is hooked up.
//			case 0x10000028:			// intr_stat
//			case 0x10000038:			// hard drives seem to like reading and writing the max dma size per transfer here.
//			case 0x1000002A:			// intr_mask
//			case 0x10000040:			// pio_data
//			case 0x10000044:			// nsector
//			case 0x10000046:			// sector
//			case 0x10000048:			// lcyl
//			case 0x1000004A:			// hcyl
//			case 0x1000004C:			// select
//			case 0x1000004E:			// status
//			case 0x1000005C:			// status
//			case 0x10000064:			// if_ctrl
        case 0x10000038: /*value = dev9Ru16(addr);*/ break;
        default:
            //value = dev9Ru16(addr);
            Dev9Log.WriteLn("*Unknown 16 bit read at address %lx", addr);
            break;
    }

	return value;
}
开发者ID:Hourousha,项目名称:pcsx2,代码行数:32,代码来源:DEV9.cpp

示例7: FWshutdown

EXPORT_C_(void) FWshutdown()
{
	// Freeing the registers.
	free(fwregs);
	fwregs = NULL;

	FWLog.Close();
}
开发者ID:ACanadianKernel,项目名称:pcsx2,代码行数:8,代码来源:FW.cpp

示例8: FWinit

EXPORT_C_(s32) FWinit()
{
	LoadConfig();
	LogInit();
	FWLog.WriteLn("FWnull plugin version %d,%d", revision, build);
	FWLog.WriteLn("Initializing FWnull");

	memset(phyregs, 0, sizeof(phyregs));
	// Initializing our registers.
	fwregs = (s8*)calloc(0x10000,1);
	if (fwregs == NULL)
	{
		FWLog.Message("Error allocating Memory");
		return -1;
	}
	return 0;
}
开发者ID:ACanadianKernel,项目名称:pcsx2,代码行数:17,代码来源:FW.cpp

示例9: LoadConfig

USBinit()
{
    LoadConfig();
    LogInit();
    USBLog.WriteLn("USBnull plugin version %d,%d", revision, build);
    USBLog.WriteLn("Initializing USBnull");

    // Initialize memory structures here.
    usbregs = (s8 *)calloc(0x10000, 1);

    if (usbregs == NULL) {
        USBLog.Message("Error allocating memory");
        return -1;
    }

    return 0;
}
开发者ID:Dyndrilliac,项目名称:pcsx2,代码行数:17,代码来源:USB.cpp

示例10: USBshutdown

EXPORT_C_(void) USBshutdown()
{
	// Yes, we close things in the Shutdown routine, and
	// don't do anything in the close routine.
	USBLog.Close();
	
	free(usbregs);
	usbregs = NULL;
}
开发者ID:tsiru,项目名称:pcsx2,代码行数:9,代码来源:USB.cpp

示例11: LogInit

USBsetLogDir(const char *dir)
{
    // Get the path to the log directory.
    s_strLogPath = (dir == NULL) ? "logs" : dir;

    // Reload the log file after updated the path
    USBLog.Close();
    LogInit();
}
开发者ID:Dyndrilliac,项目名称:pcsx2,代码行数:9,代码来源:USB.cpp

示例12: SaveConfig

void SaveConfig()
{
    string IniPath = s_strIniPath + "/FWnull.ini";
    if (!Ini.Open(IniPath, WRITE_FILE)) {
        FWLog.WriteLn("Failed to open %s\n", IniPath.c_str());
        return;
    }

    Ini.WriteInt("logging", conf.Log);
    Ini.Close();
}
开发者ID:AdmiralCurtiss,项目名称:pcsx2,代码行数:11,代码来源:Config.cpp

示例13: LoadConfig

void LoadConfig()
{
    string IniPath = s_strIniPath + "/FWnull.ini";
    if (!Ini.Open(IniPath, READ_FILE)) {
        FWLog.WriteLn("Failed to open %s", IniPath.c_str());
        SaveConfig();
        return;
    }

    conf.Log = Ini.ReadInt("logging", 0);
    setLoggingState();
    Ini.Close();
}
开发者ID:AdmiralCurtiss,项目名称:pcsx2,代码行数:13,代码来源:Config.cpp

示例14: USBsetRAM

EXPORT_C_(void) USBsetRAM(void *mem)
{
	ram = (s8*)mem;
	USBLog.WriteLn("*Setting ram.");
}
开发者ID:tsiru,项目名称:pcsx2,代码行数:5,代码来源:USB.cpp

示例15: FWopen

EXPORT_C_(s32) FWopen(void *pDsp)
{
	FWLog.WriteLn("Opening FWnull.");

	return 0;
}
开发者ID:ACanadianKernel,项目名称:pcsx2,代码行数:6,代码来源:FW.cpp


注:本文中的PluginLog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。