本文整理汇总了C++中Slot1Comp_Protocol类的典型用法代码示例。如果您正苦于以下问题:C++ Slot1Comp_Protocol类的具体用法?C++ Slot1Comp_Protocol怎么用?C++ Slot1Comp_Protocol使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Slot1Comp_Protocol类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: connect
virtual void connect()
{
protocol.reset(this);
protocol.chipId = gameInfo.chipID;
protocol.gameCode = T1ReadLong((u8*)gameInfo.header.gameCode,0);
g_Slot1Comp_MC.connect();
}
示例2: connect
virtual void connect()
{
protocol.reset(this);
protocol.chipId = gameInfo.chipID;
protocol.gameCode = T1ReadLong((u8*)gameInfo.header.gameCode,0);
save_adr = 0;
handle_save = 0;
mode = 0;
subAdr = T1ReadWord(gameInfo.header.reserved2, 0x6) << 17;
}
示例3: savestate
virtual void savestate(EMUFILE* os)
{
s32 version = 0;
protocol.savestate(os);
rom.savestate(os);
os->write32le(version);
os->write32le(mode);
os->write32le(handle_save);
os->write32le(save_adr);
os->write32le(save_start);
os->write32le(subAdr);
}
示例4: loadstate
virtual void loadstate(EMUFILE* is)
{
s32 version = 0;
protocol.loadstate(is);
rom.loadstate(is);
is->read32le(&version);
// version 0
if (version >= 0)
{
is->read32le(&mode);
is->read32le(&handle_save);
is->read32le(&save_adr);
is->read32le(&save_start);
is->read32le(&subAdr);
}
}
示例5: connect
virtual void connect()
{
protocol.reset(this);
protocol.chipId = gameInfo.chipID;
protocol.gameCode = T1ReadLong((u8*)gameInfo.header.gameCode,0);
curr_file_id = 0xFFFF;
fpROM = NULL;
fs = NULL;
if (!CommonSettings.loadToMemory)
{
printf("NitroFS: change load type to \"Load to RAM\"\n");
return;
}
pathData = path.getpath(path.SLOT1D) + path.GetRomNameWithoutExtension();
printf("Path to Slot1 data: %s\n", pathData.c_str());
fs = new FS_NITRO(gameInfo.romdata);
fs->rebuildFAT(pathData);
}
示例6: loadstate
virtual void loadstate(EMUFILE &is)
{
protocol.loadstate(is);
rom.loadstate(is);
}
示例7: savestate
virtual void savestate(EMUFILE &os)
{
protocol.savestate(os);
rom.savestate(os);
}
示例8:
virtual u32 read_GCDATAIN(u8 PROCNUM)
{
return protocol.read_GCDATAIN(PROCNUM);
}
示例9: write_GCDATAIN
virtual void write_GCDATAIN(u8 PROCNUM, u32 val)
{
protocol.write_GCDATAIN(PROCNUM, val);
}
示例10: write_command
virtual void write_command(u8 PROCNUM, GC_Command command)
{
protocol.write_command(command);
}