com.monkeycoder.monkeynes.hardware
Class NesRomLoader

java.lang.Object
  |
  +--com.monkeycoder.monkeynes.hardware.NesRomLoader

public class NesRomLoader
extends Object

This is a helper class for loading a NesRom from the file system. It reads all the data in from the file and creates a NesRom object.

Originally part of the MonkeyNES project.

Author:
David Stephens

Constructor Summary
NesRomLoader()
           
 
Method Summary
static NesRom loadRomFile(String inRomFileName)
          Reads all the data in from a ROM file and creates a NesRom object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NesRomLoader

public NesRomLoader()
Method Detail

loadRomFile

public static NesRom loadRomFile(String inRomFileName)
Reads all the data in from a ROM file and creates a NesRom object. It is assumed that the ROM will be in the INES ROM file format.

Parameters:
inRomFileName - The path to the ROM file.
Returns:
The NesRom loaded from the file.