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
|
|
|
|
2014-07-10 21:07:46 +02:00
|
|
|
Module *cellFontFT = nullptr;
|
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
|
|
|
|
2014-09-02 03:05:13 +02:00
|
|
|
int cellFontInitLibraryFreeTypeWithRevision(u64 revisionFlags, vm::ptr<CellFontLibraryConfigFT> config, u32 lib_addr_addr)
|
2013-12-09 17:56:04 +01:00
|
|
|
{
|
2014-05-02 08:30:32 +02:00
|
|
|
cellFontFT->Warning("cellFontInitLibraryFreeTypeWithRevision(revisionFlags=0x%llx, config_addr=0x%x, lib_addr_addr=0x%x",
|
2014-09-02 03:05:13 +02:00
|
|
|
revisionFlags, config.addr(), lib_addr_addr);
|
2013-12-09 17:56:04 +01:00
|
|
|
|
|
|
|
|
//if (s_fontInternalInstance->m_bInitialized)
|
|
|
|
|
//return CELL_FONT_ERROR_UNINITIALIZED;
|
|
|
|
|
|
2014-09-06 15:33:01 +02:00
|
|
|
vm::write32(lib_addr_addr, (u32)Memory.Alloc(sizeof(CellFontLibrary), 1));
|
2013-12-09 17:56:04 +01:00
|
|
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellFontFTGetRevisionFlags()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellFontFT);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellFontFTGetInitializedRevisionFlags()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellFontFT);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-13 22:00:17 +02:00
|
|
|
void cellFontFT_init(Module *pxThis)
|
2013-12-09 17:56:04 +01:00
|
|
|
{
|
2014-09-13 22:00:17 +02:00
|
|
|
cellFontFT = pxThis;
|
|
|
|
|
|
2014-05-02 08:30:32 +02:00
|
|
|
cellFontFT->AddFunc(0x7a0a83c4, cellFontInitLibraryFreeTypeWithRevision);
|
|
|
|
|
cellFontFT->AddFunc(0xec89a187, cellFontFTGetRevisionFlags);
|
|
|
|
|
cellFontFT->AddFunc(0xfa0c2de0, cellFontFTGetInitializedRevisionFlags);
|
2014-04-15 16:12:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void cellFontFT_load()
|
|
|
|
|
{
|
|
|
|
|
s_fontFtInternalInstance = new CCellFontFTInternal();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void cellFontFT_unload()
|
|
|
|
|
{
|
|
|
|
|
delete s_fontFtInternalInstance;
|
2014-07-10 21:07:46 +02:00
|
|
|
}
|