From 12106a159912055d77668f8436c1a1e87d6c0f4e Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Fri, 5 Sep 2008 11:41:39 +0000 Subject: Removed useless dependencies from common/file.h in common code. When complete removal was not possibile, dependency has been pushed to the cpp files from the headers. svn-id: r34343 --- sound/mods/infogrames.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'sound/mods/infogrames.cpp') diff --git a/sound/mods/infogrames.cpp b/sound/mods/infogrames.cpp index 97987b037a..d5b285576a 100644 --- a/sound/mods/infogrames.cpp +++ b/sound/mods/infogrames.cpp @@ -25,6 +25,7 @@ #include "sound/mods/infogrames.h" #include "common/endian.h" +#include "common/file.h" namespace Audio { @@ -50,6 +51,14 @@ void Infogrames::Instruments::init() { _sampleData = 0; } +bool Infogrames::Instruments::load(const char *ins) { + Common::File f; + + if (f.open(ins)) + return load(f); + return false; +} + bool Infogrames::Instruments::load(Common::SeekableReadStream &ins) { int i; uint32 fsize; @@ -191,6 +200,14 @@ void Infogrames::reset() { _chn[i].cmdBlockIndices = 0; } +bool Infogrames::load(const char *dum) { + Common::File f; + + if (f.open(dum)) + return load(f); + return false; +} + bool Infogrames::load(Common::SeekableReadStream &dum) { int subSong = 0; int i; -- cgit v1.2.3