In more recent builds of Dolphin, I'm no longer able to detect if homebrew is running in Dolphin.
The code I was using is the following:
I believe skidau wrote the original code. Can somebody help with a code for the newer builds?
The code I was using is the following:
Code:
u32 ifpr11 = 0x12345678;
u32 ifpr12 = 0x9abcdef0;
u32 ofpr1 = 0x00000000;
u32 ofpr2 = 0x00000000;
asm volatile (
"lwz 3,%[ifpr11]\n\t"
"stw 3,8(1)\n\t"
"lwz 3,%[ifpr12]\n\t"
"stw 3,12(1)\n\t"
"lfd 1,8(1)\n\t"
"frsqrte 1, 1\n\t"
"stfd 1,8(1)\n\t"
"lwz 3,8(1)\n\t"
"stw 3, %[ofpr1]\n\t"
"lwz 3,12(1)\n\t"
"stw 3, %[ofpr2]\n\t"
:
[ofpr1]"=m" (ofpr1)
, [ofpr2]"=m" (ofpr2)
:
[ifpr11]"m" (ifpr11)
, [ifpr12]"m" (ifpr12)
);
return (ofpr1 != 0x56cc62b2);
I believe skidau wrote the original code. Can somebody help with a code for the newer builds?