(08-24-2012, 06:17 PM)serio Wrote:Quote:arent they supposed to be "a secret"?not him, but why would it be a secret? jpcsp's an open source emulator, not some secret club.
well emulators takes alot of work.. and i didnt see any .java/main() code files in the jpcsp folder or even any classes/subclasses... (I found some files that end with the .jar extension, but they look like theyre encrypted or protected or something. I tried openning them with Netbeans ide and Notepad ++ but no luck, all of the codes where just jiberish, i wish they were written in Lua or C++, then jpcsp would be more stable)
EDIT: Scratch that reply... i managed to find and open the main jpcsp.jar file with netbeans ide

here is a this memory class i found (*sigh* i wish i knew what does all this mean)
Code:
package jpcsp;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import jpcsp.settings.AbstractBoolSettingsListener;
public abstract class Memory {
private class IgnoreInvalidMemoryAccessSettingsListerner extends AbstractBoolSettingsListener {
private IgnoreInvalidMemoryAccessSettingsListerner() {
//compiled code
throw new RuntimeException("Compiled Code");
}
protected void settingsValueChanged(boolean value) {
//compiled code
throw new RuntimeException("Compiled Code");
}
}
public static org.apache.log4j.Logger log;
private static Memory instance;
public static boolean useDirectBufferMemory;
public static boolean useSafeMemory;
public static boolean useDebuggerMemory;
public static final int addressMask = 1073741823;
private boolean ignoreInvalidMemoryAccess;
protected static final int MEMORY_PAGE_SHIFT = 12;
protected static boolean[] validMemoryPage;
public static Memory getInstance() {
//compiled code
throw new RuntimeException("Compiled Code");
}
protected Memory() {
//compiled code
throw new RuntimeException("Compiled Code");
}
public static void setInstance(Memory mem) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public void invalidMemoryAddress(int address, String prefix, int status) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public boolean read32AllowedInvalidAddress(int address) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public abstract void Initialise();
public abstract int read8(int i);
public abstract int read16(int i);
public abstract int read32(int i);
public abstract void write8(int i, byte b);
public abstract void write16(int i, short s);
public abstract void write32(int i, int i1);
public abstract void memset(int i, byte b, int i1);
public abstract Buffer getMainMemoryByteBuffer();
public abstract Buffer getBuffer(int i, int i1);
public abstract void copyToMemory(int i, ByteBuffer bb, int i1);
protected abstract void memcpy(int i, int i1, int i2, boolean bln);
public int strlen(int i) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public static final boolean isAddressGood(int i) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public static final boolean isAddressAlignedTo(int i, int i1) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public static final boolean isRawAddressGood(int i) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public boolean allocate() {
//compiled code
throw new RuntimeException("Compiled Code");
}
public long read64(int i) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public void write64(int i, long l) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public ByteBuffer readChunkZ(int i) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public ByteBuffer readChunk(int i, int i1) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public void memcpy(int i, int i1, int i2) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public void memmove(int i, int i1, int i2) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public int normalizeAddress(int i) {
//compiled code
throw new RuntimeException("Compiled Code");
}
protected boolean areOverlapping(int i, int i1, int i2) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public void load(ByteBuffer bb) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public void save(ByteBuffer bb) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public boolean isIgnoreInvalidMemoryAccess() {
//compiled code
throw new RuntimeException("Compiled Code");
}
private void setIgnoreInvalidMemoryAccess(boolean bln) {
//compiled code
throw new RuntimeException("Compiled Code");
}
}
![[Image: vincent_valentine_signature_by_rui_eri-d2zbu8z.png]](http://fc01.deviantart.net/fs71/f/2010/266/1/1/vincent_valentine_signature_by_rui_eri-d2zbu8z.png)