mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-06 06:10:45 +00:00
Revert "added partial VFS support - enough to read static data from any source"
This reverts commit fa3e9e7329
.
This commit is contained in:
parent
fa3e9e7329
commit
56c6833220
56 changed files with 608 additions and 4023 deletions
|
@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#include "Core.h"
|
||||
#include "TTFFont.h"
|
||||
|
||||
|
||||
|
@ -47,17 +46,8 @@ void TTFFont::destroy()
|
|||
|
||||
void TTFFont::load(const std::string &str, int sz)
|
||||
{
|
||||
ttvfs::VFSFile *vf = core->vfs.GetFile(str.c_str());
|
||||
if(!vf)
|
||||
{
|
||||
font = new FTGLTextureFont(str.c_str()); // file not in VFS, just pretend nothing happened
|
||||
font->FaceSize(sz);
|
||||
return;
|
||||
}
|
||||
|
||||
const unsigned char *buf = (const unsigned char*)vf->getBuf();
|
||||
create(buf, vf->size(), sz); // this copies the buffer internally
|
||||
core->addVFSFileForDrop(vf); // so we can delete our own
|
||||
font = new FTGLTextureFont(str.c_str());
|
||||
font->FaceSize(sz);
|
||||
}
|
||||
|
||||
void TTFFont::create(const unsigned char *data, unsigned long datalen, int sz)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue