|
From: Tapio V. <aa...@us...> - 2009-12-11 12:44:34
|
Module: performous
Branch: dance
Commit: 5fe5ea60a5e6c6b2c527b3432ebe035dc223b802
Author: Tapio Vierros <tap...@gm...>
Date: Wed Dec 2 19:30:03 2009 +0200
Changed INI parser video gap to follow FoFiX SVN spec.
---
game/songparser-ini.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/songparser-ini.cc b/game/songparser-ini.cc
index 1e79706..6b6a048 100644
--- a/game/songparser-ini.cc
+++ b/game/songparser-ini.cc
@@ -46,11 +46,11 @@ void SongParser::iniParse() {
boost::trim(value);
if (key == "name") s.title = value;
else if (key == "artist") s.artist = value;
- // These are added features (not part of FoF)
+ // These are added features (not part of FoF, though video is supported in FoFiX SVN)
else if (key == "cover") s.cover = value;
else if (key == "background") s.background = value;
else if (key == "video") s.video = value;
- else if (key == "videogap") assign(s.videoGap, value);
+ else if (key == "video_start_time") { assign(s.videoGap, value); s.videoGap/=1000.0; }
// End of added features
}
if (s.title.empty() || s.artist.empty()) throw std::runtime_error("Required header fields missing");
|