提交 b24aa011 编写于 作者: M mircea 提交者: Massi

desperate hack to make the PS3 at least be able to run without scripts

git-svn-id: svn://svn.hq.unity3d.com/home/svn/unity-extra/Mono/consoles@41309 16e7374d-a1f6-0310-9a7a-f1d2bd8b5927
上级 5fe95bb8
......@@ -5043,7 +5043,21 @@ mono_jit_compile_method_with_opt (MonoMethod *method, guint32 opt, MonoException
if (!code)
return NULL;
#if defined (SN_TARGET_PS3)
if (method->wrapper_type == MONO_WRAPPER_MANAGED_TO_NATIVE) {
MonoMethod *wrapped = mono_marshal_method_from_wrapper (method);
if (wrapped && (wrapped->iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL) && mono_method_needs_wrapperless_icall (wrapped)) {
p = code;
}
else
p = mono_create_ftnptr (target_domain, code);
}
else
p = mono_create_ftnptr (target_domain, code);
#else
p = mono_create_ftnptr (target_domain, code);
#endif
if (callinfo) {
mono_jit_lock ();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册