Fixed loading files on TI83.

This commit is contained in:
thebrick448 2014-01-07 05:53:57 +00:00
parent 2c568d9bef
commit 144a07f088
1 changed files with 10 additions and 5 deletions

View File

@ -673,6 +673,11 @@ namespace BizHawk.Emulation.Cores.Calculators
public class Link public class Link
{ {
//Emulates TI linking software.
//See http://www.ticalc.org/archives/files/fileinfo/294/29418.html for documentation
//Note: Each hardware read/write to the link port calls tthe update method.
readonly TI83 Parent; readonly TI83 Parent;
private FileStream CurrentFile; private FileStream CurrentFile;
@ -994,7 +999,7 @@ namespace BizHawk.Emulation.Cores.Calculators
CurrentData.Enqueue(0x00); CurrentData.Enqueue(0x00);
CurrentStatus = Status.PrepareReceive; CurrentStatus = Status.PrepareReceive;
NextStep = Finalize; NextStep = FinalizeFile;
Parent.LinkActive = true; Parent.LinkActive = true;
} }
@ -1021,20 +1026,20 @@ namespace BizHawk.Emulation.Cores.Calculators
CurrentData.Enqueue(0x00); CurrentData.Enqueue(0x00);
CurrentStatus = Status.PrepareReceive; CurrentStatus = Status.PrepareReceive;
NextStep = Finalize; NextStep = FinalizeFile;
Parent.LinkActive = true; Parent.LinkActive = true;
} }
//adelikat: This isn't used (yet?) and causes a warning. Did you really mean to override finalize? if so it should be protected virtual, else rename this //adelikat: This isn't used (yet?) and causes a warning. Did you really mean to override finalize? if so it should be protected virtual, else rename this
/* //Envian: I didn't notice there was a naming conflict. Fixed it since this method is necessary for the file upload proccess.
private void Finalize() private void FinalizeFile()
{ {
//Resets the link software, and checks to see if there is an additional file to send.
CurrentData.Clear(); CurrentData.Clear();
Parent.LinkActive = false; Parent.LinkActive = false;
NextStep = null; NextStep = null;
SendNextFile(); SendNextFile();
} }
*/
} }
public object GetSettings() { return null; } public object GetSettings() { return null; }