* Make it so vu.bin is an optional file.
This commit is contained in:
parent
2c88fae9ad
commit
dde66fa756
1 changed files with 6 additions and 7 deletions
|
@ -209,15 +209,14 @@ void init_vu(VectorUnitState *state, char* umem_buffer, char* mem_buffer)
|
||||||
|
|
||||||
/* read instruction file (mandatory) */
|
/* read instruction file (mandatory) */
|
||||||
if (*ifilename) {
|
if (*ifilename) {
|
||||||
if((fp = fopen(ifilename, "r")) == NULL)
|
if((fp = fopen(ifilename, "r")) != NULL) {
|
||||||
abend2("%s: can not open\n", ifilename);
|
|
||||||
|
|
||||||
for (i = 0; fread(&data[0], 4, 1, fp) != 0; i++) {
|
for (i = 0; fread(&data[0], 4, 1, fp) != 0; i++) {
|
||||||
fread(&data[1], 4, 1, fp);
|
fread(&data[1], 4, 1, fp);
|
||||||
LoadMMem(state, i, data, 1);
|
LoadMMem(state, i, data, 1);
|
||||||
}
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* PKE dirven simvpe */
|
/* PKE dirven simvpe */
|
||||||
if (*pfilename) {
|
if (*pfilename) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue