From a202d8adc309c183848771ad6efa2230bc793711 Mon Sep 17 00:00:00 2001 From: Bart Trzynadlowski Date: Mon, 4 Apr 2016 03:42:55 +0000 Subject: [PATCH] Do not print extra hardware message when there is none --- Src/Model3/Model3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/Model3/Model3.cpp b/Src/Model3/Model3.cpp index 04018cf..5475a1d 100644 --- a/Src/Model3/Model3.cpp +++ b/Src/Model3/Model3.cpp @@ -3056,7 +3056,8 @@ bool CModel3::LoadROMSet(const struct GameInfo *GameList, const char *zipFile) printf(" Developer: %s\n", Game->mfgName); printf(" Year: %d\n", Game->year); printf(" Step: %d.%d\n", (Game->step>>4)&0xF, Game->step&0xF); - printf(" Extra Hardware: %s\n", Util::Format(", ").Join(extraHw).str().c_str()); + if (!extraHw.empty()) + printf(" Extra Hardware: %s\n", Util::Format(", ").Join(extraHw).str().c_str()); printf("\n"); return OKAY;