diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-08-13 19:14:54 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-13 19:14:54 +0000 |
| commit | dfc109ac65e54b3c783b6783a0371a988c8e2dd7 (patch) | |
| tree | 7008fb3b956d5371e3f820b2e71090585a0e12ec /utils/themeeditor/graphics/rbfont.cpp | |
| parent | e60de9e5bb8059eefc0a5b6330738188850c5a4e (diff) | |
| download | rockbox-dfc109ac65e54b3c783b6783a0371a988c8e2dd7.zip rockbox-dfc109ac65e54b3c783b6783a0371a988c8e2dd7.tar.gz rockbox-dfc109ac65e54b3c783b6783a0371a988c8e2dd7.tar.bz2 rockbox-dfc109ac65e54b3c783b6783a0371a988c8e2dd7.tar.xz | |
Theme Editor: Added warning messages for missing resources
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27803 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbfont.cpp')
| -rw-r--r-- | utils/themeeditor/graphics/rbfont.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbfont.cpp b/utils/themeeditor/graphics/rbfont.cpp index 2379149..895e327 100644 --- a/utils/themeeditor/graphics/rbfont.cpp +++ b/utils/themeeditor/graphics/rbfont.cpp @@ -39,6 +39,8 @@ RBFont::RBFont(QString file) : valid(false), imageData(0), offsetData(0), widthData(0) { + bool badFile = false; + /* Attempting to locate the correct file name */ if(!QFile::exists(file)) { @@ -52,7 +54,11 @@ RBFont::RBFont(QString file) settings.endGroup(); if(!QFile::exists(file)) + { file = ":/fonts/08-Schumacher-Clean.fnt"; + + badFile = true; + } } header.insert("filename", file); @@ -65,6 +71,9 @@ RBFont::RBFont(QString file) widthData = cache->widthData; header = cache->header; + if(!badFile) + valid = true; + return; } @@ -162,6 +171,9 @@ RBFont::RBFont(QString file) cache->header = header; RBFontCache::insert(file, cache); + if(!badFile) + valid = true; + } RBFont::~RBFont() |