2013-12-09 17:56:04 +01:00
|
|
|
#include "stdafx.h"
|
2014-06-02 19:27:24 +02:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
2014-08-23 22:40:04 +02:00
|
|
|
|
2013-12-09 17:56:04 +01:00
|
|
|
#include "cellFont.h"
|
2014-08-23 22:40:04 +02:00
|
|
|
#include "cellFontFT.h"
|
2013-12-09 17:56:04 +01:00
|
|
|
|
2015-02-18 17:22:06 +01:00
|
|
|
extern Module cellFontFT;
|
2013-12-09 17:56:04 +01:00
|
|
|
|
2014-04-15 16:12:15 +02:00
|
|
|
CCellFontFTInternal* s_fontFtInternalInstance = nullptr;
|
2013-12-09 17:56:04 +01:00
|
|
|
|
2015-07-11 01:38:40 +02:00
|
|
|
s32 cellFontInitLibraryFreeTypeWithRevision(u64 revisionFlags, vm::ptr<CellFontLibraryConfigFT> config, vm::pptr<CellFontLibrary> lib)
|
2013-12-09 17:56:04 +01:00
|
|
|
{
|
2015-07-11 01:38:40 +02:00
|
|
|
cellFontFT.Warning("cellFontInitLibraryFreeTypeWithRevision(revisionFlags=0x%llx, config=*0x%x, lib=**0x%x)", revisionFlags, config, lib);
|
2013-12-09 17:56:04 +01:00
|
|
|
|
|
|
|
|
//if (s_fontInternalInstance->m_bInitialized)
|
|
|
|
|
//return CELL_FONT_ERROR_UNINITIALIZED;
|
|
|
|
|
|
2015-07-11 01:38:40 +02:00
|
|
|
lib->set(Memory.Alloc(sizeof(CellFontLibrary), 1));
|
2013-12-09 17:56:04 +01:00
|
|
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellFontFTGetRevisionFlags()
|
2013-12-09 17:56:04 +01:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellFontFT);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellFontFTGetInitializedRevisionFlags()
|
2013-12-09 17:56:04 +01:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellFontFT);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-18 17:22:06 +01:00
|
|
|
Module cellFontFT("cellFontFT", []()
|
2014-04-15 16:12:15 +02:00
|
|
|
{
|
|
|
|
|
s_fontFtInternalInstance = new CCellFontFTInternal();
|
|
|
|
|
|
2015-02-18 17:22:06 +01:00
|
|
|
cellFontFT.on_stop = []()
|
|
|
|
|
{
|
|
|
|
|
delete s_fontFtInternalInstance;
|
|
|
|
|
};
|
|
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellFontFT, cellFontInitLibraryFreeTypeWithRevision);
|
|
|
|
|
REG_FUNC(cellFontFT, cellFontFTGetRevisionFlags);
|
|
|
|
|
REG_FUNC(cellFontFT, cellFontFTGetInitializedRevisionFlags);
|
2015-02-18 17:22:06 +01:00
|
|
|
});
|