Update src/iec_commands.cpp

Trying to make emulation mode error messages look a bit more like 1541 ones.
This commit is contained in:
Sven Oliver Moll 2018-11-11 21:29:34 +01:00
parent 504596b013
commit f34bb442b0
1 changed files with 5 additions and 3 deletions

View File

@ -178,13 +178,15 @@ void Error(u8 errorCode, u8 track = 0, u8 sector = 0)
switch (errorCode) switch (errorCode)
{ {
case ERROR_00_OK: case ERROR_00_OK:
msg = "OK"; msg = " OK";
break; break;
case ERROR_25_WRITE_ERROR: case ERROR_25_WRITE_ERROR:
msg = "WRITE ERROR"; msg = "WRITE ERROR";
break; break;
case ERROR_73_DOSVERSION: case ERROR_73_DOSVERSION:
msg = "PI1541"; sprintf(ErrorMessage, "%02d,PI1541 V%02d.%02d,%02d,%02d", errorCode,
versionMajor, versionMinor, track, sector);
return;
break; break;
case ERROR_30_SYNTAX_ERROR: case ERROR_30_SYNTAX_ERROR:
case ERROR_31_SYNTAX_ERROR: case ERROR_31_SYNTAX_ERROR:
@ -206,7 +208,7 @@ void Error(u8 errorCode, u8 track = 0, u8 sector = 0)
DEBUG_LOG("EC=%d?\r\n", errorCode); DEBUG_LOG("EC=%d?\r\n", errorCode);
break; break;
} }
sprintf(ErrorMessage, "%02d, %s, %02d, %02d", errorCode, msg, track, sector); sprintf(ErrorMessage, "%02d,%s,%02d,%02d", errorCode, msg, track, sector);
} }
static inline bool IsDirectory(FILINFO& filInfo) static inline bool IsDirectory(FILINFO& filInfo)