Exemplo n.º 1
0
 void process()
 {
     if ((LoaderScript.romIndex > 0) && (LoaderScript.fileInfo != null))
     {
         LoaderScript.romIndex = LoaderScript.romIndex - 1;
         LoaderScript.findRoms();
     }
 }
Exemplo n.º 2
0
 void process()
 {
     if ((LoaderScript.romIndex < (LoaderScript.fileInfo.Length - 1)) && (LoaderScript.fileInfo != null))
     {
         LoaderScript.romIndex = LoaderScript.romIndex + 1;
         LoaderScript.findRoms();
     }
 }
Exemplo n.º 3
0
    private IEnumerator LoadRom(string filename)
    {
        LoaderScript.findRoms();
        string path;

        path = "file://" + LoaderScript.getPath() + filename;

        Debug.Log("Loading rom: " + path);
        WWW www = new WWW(path);

        yield return(www);

        if (www.error == null)
        {
            Emulator.LoadRom(www.bytes);
            StartCoroutine(Run());
        }
        else
        {
            Debug.Log("Error during loading the rom.\n" + www.error);
        }
    }