@NoOffset @Properties(inherit=ale.class) public class Cartridge extends Device
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Cartridge(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static BytePointer |
about()
Query some information about this cartridge.
|
int |
bank()
Get the current bank.
|
void |
bank(short bank)
Set the specified bank.
|
int |
bankCount()
Query the number of banks supported by the cartridge.
|
byte[] |
getImage(int[] size) |
ByteBuffer |
getImage(IntBuffer size) |
BytePointer |
getImage(IntPointer size)
Access the internal ROM image for this cartridge.
|
void |
lockBank()
Lock/unlock bankswitching capability.
|
boolean |
patch(short _address,
byte value)
Patch the cartridge ROM.
|
boolean |
save(Pointer out)
Save the internal (patched) ROM image.
|
boolean |
save(Serializer out)
MGB: Added to drop warning on overloaded save() method.
|
void |
unlockBank() |
install, load, name, peek, poke, reset, systemCyclesResetaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Cartridge(Pointer p)
Pointer.Pointer(Pointer).@StdString public static BytePointer about()
@Cast(value="bool") public boolean save(@Cast(value="std::ofstream*") @ByRef Pointer out)
out - The output file stream to save the image@Cast(value="bool") public boolean save(@ByRef Serializer out)
public void lockBank()
public void unlockBank()
public int bank()
public int bankCount()
@Cast(value="bool") public boolean patch(@Cast(value="uInt16") short _address, @Cast(value="uInt8") byte value)
address - The ROM address to patchvalue - The value to place into the address@Cast(value="uInt8*") public BytePointer getImage(@ByRef IntPointer size)
size - Set to the size of the internal ROM image data@Cast(value="uInt8*") public ByteBuffer getImage(@ByRef IntBuffer size)
Copyright © 2020. All rights reserved.