2015-08-01 18:14:49 +02:00
|
|
|
#include "stdafx.h"
|
2016-03-21 20:43:03 +01:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2015-08-01 18:14:49 +02:00
|
|
|
|
|
|
|
|
#include "cellWebBrowser.h"
|
|
|
|
|
|
2016-05-13 15:55:34 +02:00
|
|
|
extern logs::channel cellSysutil;
|
2015-08-01 18:14:49 +02:00
|
|
|
|
|
|
|
|
s32 cellWebBrowserActivate()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfig()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfig2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigGetHeapSize()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigGetHeapSize2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetCustomExit()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetDisableTabs()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetErrorHook2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetFullScreen2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetFullVersion2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetFunction()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetFunction2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetHeapSize()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetHeapSize2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetMimeSet()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetNotifyHook2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetRequestHook2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetStatusHook2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetTabCount2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetUnknownMIMETypeHook2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetVersion()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetViewCondition2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigSetViewRect2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserConfigWithVer()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserCreate()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserCreate2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserCreateRender2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserCreateRenderWithRect2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserCreateWithConfig()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserCreateWithConfigFull()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserCreateWithRect2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserDeactivate()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserDestroy()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserDestroy2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserEstimate()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserEstimate2(vm::cptr<CellWebBrowserConfig2> config, vm::ptr<u32> memSize)
|
|
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
cellSysutil.warning("cellWebBrowserEstimate2(config=*0x%x, memSize=*0x%x)", config, memSize);
|
2015-08-01 18:14:49 +02:00
|
|
|
|
|
|
|
|
// TODO: When cellWebBrowser stuff is implemented, change this to some real
|
|
|
|
|
// needed memory buffer size.
|
|
|
|
|
*memSize = 1 * 1024 * 1024; // 1 MB
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-13 18:30:25 +02:00
|
|
|
s32 cellWebBrowserGetUsrdataOnGameExit(vm::ptr<CellWebBrowserUsrdata> ptr)
|
2015-08-01 18:14:49 +02:00
|
|
|
{
|
2017-04-13 18:30:25 +02:00
|
|
|
cellSysutil.todo("cellWebBrowserGetUsrdataOnGameExit(ptr=*0x%x", ptr);
|
|
|
|
|
return CELL_OK;
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserInitialize()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserNavigate2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserSetLocalContentsAdditionalTitleID()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserSetSystemCallbackUsrdata()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserShutdown()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserUpdatePointerDisplayPos2()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebBrowserWakeupWithGameExit()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebComponentCreate()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebComponentCreateAsync()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellWebComponentDestroy()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-08-01 18:14:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cellSysutil_WebBrowser_init()
|
|
|
|
|
{
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserActivate);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfig);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfig2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigGetHeapSize);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigGetHeapSize2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetCustomExit);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetDisableTabs);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetErrorHook2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetFullScreen2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetFullVersion2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetFunction);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetFunction2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetHeapSize);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetHeapSize2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetMimeSet);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetNotifyHook2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetRequestHook2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetStatusHook2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetTabCount2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetUnknownMIMETypeHook2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetVersion);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetViewCondition2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigSetViewRect2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserConfigWithVer);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserCreate);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserCreate2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserCreateRender2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserCreateRenderWithRect2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserCreateWithConfig);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserCreateWithConfigFull);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserCreateWithRect2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserDeactivate);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserDestroy);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserDestroy2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserEstimate);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserEstimate2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserGetUsrdataOnGameExit);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserInitialize);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserNavigate2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserSetLocalContentsAdditionalTitleID);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserSetSystemCallbackUsrdata);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserShutdown);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserUpdatePointerDisplayPos2);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebBrowserWakeupWithGameExit);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebComponentCreate);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebComponentCreateAsync);
|
|
|
|
|
REG_FUNC(cellSysutil, cellWebComponentDestroy);
|
|
|
|
|
}
|