Removed some useless code.

This commit is contained in:
n-a-c-h
2005-03-27 21:35:00 +00:00
parent 04cdcc2b5e
commit 985dccf360

View File

@@ -53,7 +53,6 @@ extern unsigned char MovieStartMethod, GUIReset, ReturnFromSPCStall, GUIQuit;
extern unsigned char MovieProcessing, *Msgptr, fnamest[512]; extern unsigned char MovieProcessing, *Msgptr, fnamest[512];
extern unsigned char CMovieExt; extern unsigned char CMovieExt;
extern bool romispal; extern bool romispal;
bool firstloop;
void GUIDoReset(); void GUIDoReset();
void powercycle(bool); void powercycle(bool);
@@ -570,7 +569,6 @@ static void zmv_create(char *filename)
zst_save(zmv_vars.fp, false); zst_save(zmv_vars.fp, false);
zmv_vars.filename = (char *)malloc(filename_len+1); //+1 for null zmv_vars.filename = (char *)malloc(filename_len+1); //+1 for null
strcpy(zmv_vars.filename, filename); strcpy(zmv_vars.filename, filename);
firstloop = true;
} }
else else
{ {
@@ -744,8 +742,6 @@ static bool zmv_open(char *filename)
Msgptr = "MOVIE STARTED."; Msgptr = "MOVIE STARTED.";
} }
firstloop = true;
fseek(zmv_vars.fp, -(EXT_CHAP_COUNT_END_DIST), SEEK_END); fseek(zmv_vars.fp, -(EXT_CHAP_COUNT_END_DIST), SEEK_END);
zmv_open_vars.external_chapter_count = fread2(zmv_vars.fp); zmv_open_vars.external_chapter_count = fread2(zmv_vars.fp);
@@ -1656,7 +1652,7 @@ void SkipMovie()
void MovieStop() void MovieStop()
{ {
if (firstloop) if (MovieProcessing)
{ {
switch (MovieProcessing) switch (MovieProcessing)
{ {
@@ -1685,7 +1681,6 @@ void MovieStop()
SetMovieMode(MOVIE_OFF); SetMovieMode(MOVIE_OFF);
SRAMState = PrevSRAMState; SRAMState = PrevSRAMState;
} }
else { firstloop = true; }
} }
void MoviePlay() void MoviePlay()