/* 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 sceUsbstor_internal implements HLEModule {
@Override
public String getName() { return "sceUsbstor_internal"; }
@Override
public void installModule(HLEModuleManager mm, int version) {
if (version >= 150) {
mm.addFunction(sceUsbstorSendDataFunction, 0xDC1A5833);
mm.addFunction(sceUsbstorRecvDataFunction, 0xFC4D0080);
mm.addFunction(sceUsbstor_internal_489E6BF1Function, 0x489E6BF1);
mm.addFunction(sceUsbstor_internal_2CAFEFF1Function, 0x2CAFEFF1);
mm.addFunction(sceUsbstorGetStringFunction, 0x50F99EAD);
}
}
@Override
public void uninstallModule(HLEModuleManager mm, int version) {
if (version >= 150) {
mm.removeFunction(sceUsbstorSendDataFunction);
mm.removeFunction(sceUsbstorRecvDataFunction);
mm.removeFunction(sceUsbstor_internal_489E6BF1Function);
mm.removeFunction(sceUsbstor_internal_2CAFEFF1Function);
mm.removeFunction(sceUsbstorGetStringFunction);
}
}
public void sceUsbstorSendData(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceUsbstorSendData [0xDC1A5833]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceUsbstorRecvData(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceUsbstorRecvData [0xFC4D0080]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceUsbstor_internal_489E6BF1(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceUsbstor_internal_489E6BF1 [0x489E6BF1]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceUsbstor_internal_2CAFEFF1(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceUsbstor_internal_2CAFEFF1 [0x2CAFEFF1]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceUsbstorGetString(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceUsbstorGetString [0x50F99EAD]");
cpu.gpr[2] = 0xDEADC0DE;
}
public final HLEModuleFunction sceUsbstorSendDataFunction = new HLEModuleFunction("sceUsbstor_internal", "sceUsbstorSendData") {
@Override
public final void execute(Processor processor) {
sceUsbstorSendData(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceUsbstor_internalModule.sceUsbstorSendData(processor);";
}
};
public final HLEModuleFunction sceUsbstorRecvDataFunction = new HLEModuleFunction("sceUsbstor_internal", "sceUsbstorRecvData") {
@Override
public final void execute(Processor processor) {
sceUsbstorRecvData(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceUsbstor_internalModule.sceUsbstorRecvData(processor);";
}
};
public final HLEModuleFunction sceUsbstor_internal_489E6BF1Function = new HLEModuleFunction("sceUsbstor_internal", "sceUsbstor_internal_489E6BF1") {
@Override
public final void execute(Processor processor) {
sceUsbstor_internal_489E6BF1(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceUsbstor_internalModule.sceUsbstor_internal_489E6BF1(processor);";
}
};
public final HLEModuleFunction sceUsbstor_internal_2CAFEFF1Function = new HLEModuleFunction("sceUsbstor_internal", "sceUsbstor_internal_2CAFEFF1") {
@Override
public final void execute(Processor processor) {
sceUsbstor_internal_2CAFEFF1(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceUsbstor_internalModule.sceUsbstor_internal_2CAFEFF1(processor);";
}
};
public final HLEModuleFunction sceUsbstorGetStringFunction = new HLEModuleFunction("sceUsbstor_internal", "sceUsbstorGetString") {
@Override
public final void execute(Processor processor) {
sceUsbstorGetString(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceUsbstor_internalModule.sceUsbstorGetString(processor);";
}
};
};