#include "tstringlist.h"
#include "itfile.h"
+#include "tdebug.h"
#include "modfileprivate.h"
using namespace TagLib;
bool IT::File::save()
{
+ if(readOnly())
+ {
+ debug("IT::File::save() - Cannot save to a read only file.");
+ return false;
+ }
seek(4);
writeString(d->tag.title(), 26);
// TODO: write comment as instrument and sample names
#include "modfile.h"
#include "tstringlist.h"
+#include "tdebug.h"
#include "modfileprivate.h"
using namespace TagLib;
bool Mod::File::save()
{
+ if(readOnly())
+ {
+ debug("Mod::File::save() - Cannot save to a read only file.");
+ return false;
+ }
seek(0);
writeString(d->tag.title(), 20, ' ');
// TODO: write comment as instrument names
#include "s3mfile.h"
#include "tstringlist.h"
+#include "tdebug.h"
#include "modfileprivate.h"
using namespace TagLib;
bool S3M::File::save()
{
+ if(readOnly())
+ {
+ debug("S3M::File::save() - Cannot save to a read only file.");
+ return false;
+ }
// note: if title starts with "Extended Module: "
// the file would look like an .xm file
seek(0);
***************************************************************************/
#include "tstringlist.h"
+#include "tdebug.h"
#include "xmfile.h"
#include "modfileprivate.h"
bool XM::File::save()
{
+ if(readOnly())
+ {
+ debug("XM::File::save() - Cannot save to a read only file.");
+ return false;
+ }
seek(17);
writeString(d->tag.title(), 20);
seek(1, Current);