/* This autogenerated file is part of jpcsp. */ /* This file is part of jpcsp. Jpcsp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Jpcsp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Jpcsp. If not, see <http://www.gnu.org/licenses/>. */ package jpcsp.HLE.modules150; import jpcsp.HLE.Modules; import jpcsp.HLE.modules.HLEModule; import jpcsp.HLE.modules.HLEModuleFunction; import jpcsp.HLE.modules.HLEModuleManager; import jpcsp.Memory; import jpcsp.Processor; import jpcsp.Allegrex.CpuState; // New-Style Processor public class sceSircs_driver implements HLEModule { @Override public String getName() { return "sceSircs_driver"; } @Override public void installModule(HLEModuleManager mm, int version) { if (version >= 150) { mm.addFunction(sceSircsInitFunction, 0x62411801); mm.addFunction(sceSircsEndFunction, 0x19155A2F); mm.addFunction(sceSircsSendFunction, 0x71EEF62D); } } @Override public void uninstallModule(HLEModuleManager mm, int version) { if (version >= 150) { mm.removeFunction(sceSircsInitFunction); mm.removeFunction(sceSircsEndFunction); mm.removeFunction(sceSircsSendFunction); } } public void sceSircsInit(Processor processor) { CpuState cpu = processor.cpu; Modules.log.debug("Unimplemented NID function sceSircsInit [0x62411801]"); cpu.gpr[2] = 0xDEADC0DE; } public void sceSircsEnd(Processor processor) { CpuState cpu = processor.cpu; Modules.log.debug("Unimplemented NID function sceSircsEnd [0x19155A2F]"); cpu.gpr[2] = 0xDEADC0DE; } public void sceSircsSend(Processor processor) { CpuState cpu = processor.cpu; Modules.log.debug("Unimplemented NID function sceSircsSend [0x71EEF62D]"); cpu.gpr[2] = 0xDEADC0DE; } public final HLEModuleFunction sceSircsInitFunction = new HLEModuleFunction("sceSircs_driver", "sceSircsInit") { @Override public final void execute(Processor processor) { sceSircsInit(processor); } @Override public final String compiledString() { return "jpcsp.HLE.Modules.sceSircs_driverModule.sceSircsInit(processor);"; } }; public final HLEModuleFunction sceSircsEndFunction = new HLEModuleFunction("sceSircs_driver", "sceSircsEnd") { @Override public final void execute(Processor processor) { sceSircsEnd(processor); } @Override public final String compiledString() { return "jpcsp.HLE.Modules.sceSircs_driverModule.sceSircsEnd(processor);"; } }; public final HLEModuleFunction sceSircsSendFunction = new HLEModuleFunction("sceSircs_driver", "sceSircsSend") { @Override public final void execute(Processor processor) { sceSircsSend(processor); } @Override public final String compiledString() { return "jpcsp.HLE.Modules.sceSircs_driverModule.sceSircsSend(processor);"; } }; };