mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Compilation fix, be_t fix
+ CellWebBrowserConfig2 struct
This commit is contained in:
parent
225dba754d
commit
feec20ac3e
@ -152,6 +152,12 @@ public:
|
||||
|
||||
be_t& operator = (const be_t& right) = default;
|
||||
|
||||
be_t& operator = (const be_t<const T, const T2>& right)
|
||||
{
|
||||
m_data = right.ToBE();
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T1> be_t& operator += (T1 right) { return *this = T(*this) + right; }
|
||||
template<typename T1> be_t& operator -= (T1 right) { return *this = T(*this) - right; }
|
||||
template<typename T1> be_t& operator *= (T1 right) { return *this = T(*this) * right; }
|
||||
|
@ -787,9 +787,9 @@ int cellSysutilGetBgmPlaybackStatus2(vm::ptr<CellSysutilBgmPlaybackStatus2> stat
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellWebBrowserEstimate2(vm::ptr<const const u8> _config, vm::ptr<be_t<u32>> memSize)
|
||||
int cellWebBrowserEstimate2(const vm::ptr<const CellWebBrowserConfig2> config, vm::ptr<be_t<u32>> memSize)
|
||||
{
|
||||
cellSysutil->Warning("cellWebBrowserEstimate2(config_addr=0x%x, memSize_addr=0x%x)", _config.addr(), memSize.addr());
|
||||
cellSysutil->Warning("cellWebBrowserEstimate2(config_addr=0x%x, memSize_addr=0x%x)", config.addr(), memSize.addr());
|
||||
|
||||
// TODO: When cellWebBrowser stuff is implemented, change this to some real
|
||||
// needed memory buffer size.
|
||||
|
@ -216,3 +216,71 @@ struct CellHddGameCBResult
|
||||
|
||||
// SysCalls
|
||||
s32 cellVideoOutConfigure(u32 videoOut, u32 config_addr, u32 option_addr, u32 waitForEvent);
|
||||
|
||||
typedef s32 CellWebBrowserId;
|
||||
typedef void* CellWebBrowserClientSession;
|
||||
typedef void(*CellWebBrowserCallback)(s32 cb_type, vm::ptr<CellWebBrowserClientSession>, vm::ptr<void> usrdata);
|
||||
typedef void(*CellWebComponentCallback)(CellWebBrowserId, s32 cb_type, vm::ptr<CellWebBrowserClientSession>, vm::ptr<void> usrdata);
|
||||
typedef void(*CellWebBrowserSystemCallback)(s32 cb_type, vm::ptr<void> usrdata);
|
||||
|
||||
typedef void(*CellWebBrowserMIMETypeCallback)(vm::ptr<const char> mimetype, vm::ptr<const char> url, vm::ptr<void> usrdata);
|
||||
typedef void(*CellWebBrowserErrorCallback)(s32 err_type, vm::ptr<void> usrdata);
|
||||
typedef void(*CellWebBrowserStatusCallback)(s32 err_type, vm::ptr<void> usrdata);
|
||||
typedef void(*CellWebBrowserNotify)(vm::ptr<const char> message, vm::ptr<void> usrdata);
|
||||
typedef void(*CellWebBrowserUsrdata)(vm::ptr<void> usrdata);
|
||||
|
||||
struct CellWebBrowserMimeSet
|
||||
{
|
||||
vm::bptr<const char> const type;
|
||||
vm::bptr<const char> const directory;
|
||||
};
|
||||
|
||||
struct CellWebBrowserPos
|
||||
{
|
||||
be_t<s32> x;
|
||||
be_t<s32> y;
|
||||
};
|
||||
|
||||
struct CellWebBrowserSize
|
||||
{
|
||||
be_t<s32> width;
|
||||
be_t<s32> height;
|
||||
};
|
||||
|
||||
struct CellWebBrowserRect
|
||||
{
|
||||
CellWebBrowserPos pos;
|
||||
CellWebBrowserSize size;
|
||||
};
|
||||
|
||||
struct CellWebBrowserConfig
|
||||
{
|
||||
be_t<s32> version;
|
||||
be_t<s32> heap_size;
|
||||
vm::bptr<const CellWebBrowserMimeSet> mimesets;
|
||||
be_t<s32> mimeset_num;
|
||||
be_t<s32> functions;
|
||||
be_t<s32> tab_count;
|
||||
vm::bptr<CellWebBrowserCallback> exit_cb;
|
||||
vm::bptr<CellWebBrowserCallback> download_cb;
|
||||
vm::bptr<CellWebBrowserCallback> navigated_cb;
|
||||
};
|
||||
|
||||
struct CellWebBrowserConfig2
|
||||
{
|
||||
be_t<s32> version;
|
||||
be_t<s32> heap_size;
|
||||
be_t<s32> functions;
|
||||
be_t<s32> tab_count;
|
||||
be_t<s32> size_mode;
|
||||
be_t<s32> view_restriction;
|
||||
vm::bptr<CellWebBrowserMIMETypeCallback> unknown_mimetype_cb;
|
||||
vm::bptr<CellWebBrowserErrorCallback> error_cb;
|
||||
vm::bptr<CellWebBrowserStatusCallback> status_error_cb;
|
||||
vm::bptr<CellWebBrowserNotify> notify_cb;
|
||||
vm::bptr<CellWebBrowserCallback> request_cb;
|
||||
vm::bptr<CellWebBrowserRect> rect;
|
||||
be_t<float> resolution_factor;
|
||||
be_t<s32> magic_number_;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user