@NoOffset @Properties(inherit=ale.class) public class OSystem extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
OSystem.TimingInfo |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
OSystem(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Settings settings)
Adds the specified settings object to the system.
|
BytePointer |
baseDir()
Return the default directory for storing data.
|
BytePointer |
cacheFile()
This method should be called to get the full path of the gamelist
cache file (used by the Launcher to show a listing of available games).
|
BytePointer |
cheatFile()
This method should be called to get the full path of the cheat file.
|
ColourPalette |
colourPalette() |
BytePointer |
configFile()
This method should be called to get the full path of the config file.
|
Console |
console()
Get the console of the system.
|
boolean |
create()
Create all child objects which belong to this OSystem
|
boolean |
createConsole() |
boolean |
createConsole(BytePointer romfile)
Creates a new game console from the specified romfile.
|
boolean |
createConsole(String romfile) |
void |
deleteConsole()
Deletes the currently defined console, if it exists.
|
int |
desktopHeight() |
int |
desktopWidth()
Get the maximum dimensions of a window for the video hardware.
|
Event |
event()
//ALE
Get the event object of the system
|
BytePointer |
features()
The features which are conditionally compiled into Stella.
|
int |
frameRate()
Get the current framerate for the video system.
|
BytePointer |
getROMInfo(BytePointer romfile)
Gets all possible info about the ROM by creating a temporary
Console object and querying it.
|
String |
getROMInfo(String romfile) |
int |
getTicks()
This method returns number of ticks in microseconds.
|
boolean |
loadState(Deserializer in)
Deserializes the OSystem state.
|
int |
myTimePerFrame() |
OSystem |
myTimePerFrame(int setter) |
OSystem.TimingInfo |
myTimingInfo() |
OSystem |
myTimingInfo(OSystem.TimingInfo setter) |
boolean |
openROM(BytePointer rom,
BytePointer md5,
byte[] image,
int[] size) |
boolean |
openROM(BytePointer rom,
BytePointer md5,
ByteBuffer image,
IntBuffer size) |
boolean |
openROM(BytePointer rom,
BytePointer md5,
BytePointer image,
IntPointer size) |
boolean |
openROM(BytePointer rom,
BytePointer md5,
PointerPointer image,
IntPointer size)
Open the given ROM and return an array containing its contents.
|
boolean |
openROM(String rom,
BytePointer md5,
byte[] image,
int[] size) |
boolean |
openROM(String rom,
BytePointer md5,
ByteBuffer image,
IntBuffer size) |
boolean |
openROM(String rom,
BytePointer md5,
BytePointer image,
IntPointer size) |
DisplayScreen |
p_display_screen() |
OSystem |
p_display_screen(DisplayScreen setter) |
BytePointer |
paletteFile()
This method should be called to get the full path of the
(optional) palette file.
|
BytePointer |
propertiesFile()
This method should be called to get the full path of the
properties file (stella.pro).
|
void |
quit()
Issue a quit event to the OSystem.
|
void |
resetRNGSeed()
Resets the seed for our random number generator.
|
Random |
rng()
Returns the random number generator for this emulator.
|
BytePointer |
romFile()
This method should be called to get the full path of the currently
loaded ROM.
|
boolean |
saveState(Serializer out)
Serializes the OSystem state.
|
void |
setConfigPaths()
Set all config file paths for the OSystem.
|
void |
setFramerate(int framerate)
Set the framerate for the video system.
|
Settings |
settings()
Get the settings object of the system
|
void |
skipEmulation() |
Sound |
sound()
Get the sound object of the system
|
ResolutionList |
supportedResolutions()
Get the supported fullscreen resolutions for the video hardware.
|
address, 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 OSystem(Pointer p)
Pointer.Pointer(Pointer).@Cast(value="bool") public boolean create()
public void attach(Settings settings)
settings - The settings object to addpublic Event event()
@ByRef public Settings settings()
public void setFramerate(@Cast(value="uInt32") int framerate)
framerate - The video framerate to usepublic void setConfigPaths()
@Cast(value="uInt32") public int frameRate()
@Cast(value="uInt32") public int desktopWidth()
@Const @ByRef public ResolutionList supportedResolutions()
@StdString public BytePointer baseDir()
@StdString public BytePointer cacheFile()
@StdString public BytePointer cheatFile()
@StdString public BytePointer configFile()
@StdString public BytePointer paletteFile()
@StdString public BytePointer propertiesFile()
@StdString public BytePointer romFile()
@Cast(value="bool") public boolean createConsole(@StdString BytePointer romfile)
romfile - The full pathname of the ROM to use@Cast(value="bool") public boolean createConsole(@StdString String romfile)
public void deleteConsole()
@StdString public BytePointer getROMInfo(@StdString BytePointer romfile)
romfile - The full pathname of the ROM to use@StdString public String getROMInfo(@StdString String romfile)
@StdString public BytePointer features()
@Cast(value="bool") public boolean openROM(@StdString BytePointer rom, @StdString @ByRef BytePointer md5, @Cast(value="uInt8**") PointerPointer image, IntPointer size)
rom - The absolute pathname of the ROM filemd5 - The md5 calculated from the ROM fileimage - A pointer to store the ROM data
Note, the calling method is responsible for deleting thissize - The amount of data read into the image array@Cast(value="bool") public boolean openROM(@StdString BytePointer rom, @StdString @ByRef BytePointer md5, @Cast(value="uInt8**") @ByPtrPtr BytePointer image, IntPointer size)
@Cast(value="bool") public boolean openROM(@StdString String rom, @StdString @ByRef BytePointer md5, @Cast(value="uInt8**") @ByPtrPtr ByteBuffer image, IntBuffer size)
@Cast(value="bool") public boolean openROM(@StdString BytePointer rom, @StdString @ByRef BytePointer md5, @Cast(value="uInt8**") @ByPtrPtr byte[] image, int[] size)
@Cast(value="bool") public boolean openROM(@StdString String rom, @StdString @ByRef BytePointer md5, @Cast(value="uInt8**") @ByPtrPtr BytePointer image, IntPointer size)
@Cast(value="bool") public boolean openROM(@StdString BytePointer rom, @StdString @ByRef BytePointer md5, @Cast(value="uInt8**") @ByPtrPtr ByteBuffer image, IntBuffer size)
@Cast(value="bool") public boolean openROM(@StdString String rom, @StdString @ByRef BytePointer md5, @Cast(value="uInt8**") @ByPtrPtr byte[] image, int[] size)
public void quit()
public void skipEmulation()
public void resetRNGSeed()
@Cast(value="bool") public boolean saveState(@ByRef Serializer out)
@Cast(value="bool") public boolean loadState(@ByRef Deserializer in)
@Cast(value="uInt32") public int getTicks()
public OSystem myTimePerFrame(int setter)
@ByRef public OSystem.TimingInfo myTimingInfo()
public OSystem myTimingInfo(OSystem.TimingInfo setter)
@ByRef public ColourPalette colourPalette()
public DisplayScreen p_display_screen()
public OSystem p_display_screen(DisplayScreen setter)
Copyright © 2020. All rights reserved.