Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,6 +79,138 @@ void __thiscall FUN_00404f30(void *this,char param_1,uint param_2)
|
|
| 79 |
return;
|
| 80 |
}
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
"""],
|
| 83 |
inputs="text", outputs="text")
|
| 84 |
demo.queue()
|
|
|
|
| 79 |
return;
|
| 80 |
}
|
| 81 |
|
| 82 |
+
""","""
|
| 83 |
+
char __thiscall
|
| 84 |
+
FUN_008a28f0(void *param_1_00,FMOD_VECTOR *param_1,undefined4 ****param_2,undefined4 param_3,
|
| 85 |
+
undefined4 param_4,float param_5)
|
| 86 |
+
|
| 87 |
+
{
|
| 88 |
+
char cVar1;
|
| 89 |
+
undefined4 uVar2;
|
| 90 |
+
undefined4 ****ppppuVar3;
|
| 91 |
+
char *unaff_EBX;
|
| 92 |
+
FMOD_VECTOR *pFVar4;
|
| 93 |
+
char *pcVar5;
|
| 94 |
+
undefined4 uVar6;
|
| 95 |
+
FMOD_VECTOR *local_a8;
|
| 96 |
+
undefined4 ***local_a4;
|
| 97 |
+
undefined4 local_a0;
|
| 98 |
+
uint uStack_90;
|
| 99 |
+
basic_string<> abStack_8c [4];
|
| 100 |
+
basic_string<> local_88 [28];
|
| 101 |
+
basic_string<> abStack_6c [4];
|
| 102 |
+
undefined4 ***apppuStack_68 [5];
|
| 103 |
+
uint local_54 [8];
|
| 104 |
+
basic_string<> abStack_34 [28];
|
| 105 |
+
void *local_18;
|
| 106 |
+
int iStack_14;
|
| 107 |
+
undefined4 uStack_10;
|
| 108 |
+
void *pvStack_c;
|
| 109 |
+
undefined *puStack_8;
|
| 110 |
+
undefined4 uStack_4;
|
| 111 |
+
|
| 112 |
+
uStack_4 = 0xffffffff;
|
| 113 |
+
puStack_8 = &LAB_009a39d4;
|
| 114 |
+
pvStack_c = ExceptionList;
|
| 115 |
+
if (param_1 == (FMOD_VECTOR *)0x0) {
|
| 116 |
+
if (param_1_00 != (void *)0x0) {
|
| 117 |
+
ExceptionList = &pvStack_c;
|
| 118 |
+
std::basic_string<>::~basic_string<>((basic_string<> *)((int)param_1_00 + 4));
|
| 119 |
+
/* WARNING: Subroutine does not return */
|
| 120 |
+
operator_delete(param_1_00);
|
| 121 |
+
}
|
| 122 |
+
cVar1 = '\0';
|
| 123 |
+
}
|
| 124 |
+
else {
|
| 125 |
+
if (param_1_00 == (void *)0x0) {
|
| 126 |
+
ExceptionList = &pvStack_c;
|
| 127 |
+
if (0.1 < param_5) {
|
| 128 |
+
ExceptionList = &pvStack_c;
|
| 129 |
+
FUN_00736f20();
|
| 130 |
+
FUN_008a0dc0();
|
| 131 |
+
FMOD::Event::setCallback
|
| 132 |
+
((_func_FMOD_RESULT_FMOD_EVENT_ptr_FMOD_EVENT_CALLBACKTYPE_void_ptr_void_ptr_void_ ptr
|
| 133 |
+
*)param_1,&LAB_008a0fb0);
|
| 134 |
+
}
|
| 135 |
+
}
|
| 136 |
+
else {
|
| 137 |
+
ExceptionList = &pvStack_c;
|
| 138 |
+
uVar2 = FUN_00736f20();
|
| 139 |
+
uVar6 = 1;
|
| 140 |
+
pcVar5 =
|
| 141 |
+
"Manager::PlaySoundEvent(); attempting to register FMOD callback for 2D one-shot Event.";
|
| 142 |
+
*(undefined4 *)((int)param_1_00 + 0x24) = uVar2;
|
| 143 |
+
FMOD::Event::setCallback
|
| 144 |
+
((_func_FMOD_RESULT_FMOD_EVENT_ptr_FMOD_EVENT_CALLBACKTYPE_void_ptr_void_ptr_void_pt r
|
| 145 |
+
*)param_1,&LAB_008a0fe0);
|
| 146 |
+
FUN_008a0a60(param_1_00,pcVar5,uVar6);
|
| 147 |
+
}
|
| 148 |
+
uVar2 = 0;
|
| 149 |
+
local_a8 = param_1;
|
| 150 |
+
local_a4 = param_2;
|
| 151 |
+
local_a0 = param_3;
|
| 152 |
+
FMOD::Event::set3DAttributes(param_1,(FMOD_VECTOR *)&local_a8,(FMOD_VECTOR *)0x0);
|
| 153 |
+
cVar1 = FUN_008a0a60("Manager::PlaySoundEvent(); attempting to set 3D attributes for a 3D one-sh ot Event."
|
| 154 |
+
,1,uVar2);
|
| 155 |
+
if (cVar1 == '\0') {
|
| 156 |
+
uVar2 = 0;
|
| 157 |
+
FMOD::Event::getInfo((int *)param_1,(char **)0x0,(FMOD_EVENT_INFO *)&stack0xffffff4c);
|
| 158 |
+
std::basic_string<>::basic_string<>(local_88,unaff_EBX);
|
| 159 |
+
uStack_10 = 4;
|
| 160 |
+
uVar2 = std::operator+<>(abStack_34,
|
| 161 |
+
"Manager::PlaySoundEvent: unable to set3DAttributes for sound event ( "
|
| 162 |
+
,local_88,uVar2);
|
| 163 |
+
uStack_10._0_1_ = 5;
|
| 164 |
+
std::operator+<>(abStack_6c,uVar2,&DAT_00aa30ec);
|
| 165 |
+
uStack_10._0_1_ = 7;
|
| 166 |
+
std::basic_string<>::~basic_string<>(abStack_34);
|
| 167 |
+
if (local_54[0] < 0x10) {
|
| 168 |
+
apppuStack_68[0] = apppuStack_68;
|
| 169 |
+
}
|
| 170 |
+
FUN_008a0b10(apppuStack_68[0]);
|
| 171 |
+
uStack_10 = CONCAT31(uStack_10._1_3_,4);
|
| 172 |
+
std::basic_string<>::~basic_string<>(abStack_6c);
|
| 173 |
+
uStack_10 = 0xffffffff;
|
| 174 |
+
std::basic_string<>::~basic_string<>(local_88);
|
| 175 |
+
cVar1 = '\0';
|
| 176 |
+
}
|
| 177 |
+
else {
|
| 178 |
+
pFVar4 = param_1;
|
| 179 |
+
FMOD::Event::start();
|
| 180 |
+
cVar1 = FUN_008a0a60("Manager::PlaySoundEvent(); attempting to play 3D one-shot Event.",1,
|
| 181 |
+
pFVar4);
|
| 182 |
+
if (cVar1 == '\0') {
|
| 183 |
+
uVar2 = 0;
|
| 184 |
+
FMOD::Event::getInfo((int *)param_1,(char **)0x0,(FMOD_EVENT_INFO *)&stack0xffffff4c);
|
| 185 |
+
std::basic_string<>::basic_string<>((basic_string<> *)local_54,unaff_EBX);
|
| 186 |
+
iStack_14 = 0;
|
| 187 |
+
uVar2 = std::operator+<>(abStack_8c,"Manager::PlaySoundEvent: Failed to start sound event ("
|
| 188 |
+
,local_54,uVar2);
|
| 189 |
+
iStack_14._0_1_ = 1;
|
| 190 |
+
std::operator+<>(&local_a8,uVar2,&DAT_00aa30ec);
|
| 191 |
+
iStack_14._0_1_ = 3;
|
| 192 |
+
std::basic_string<>::~basic_string<>(abStack_8c);
|
| 193 |
+
ppppuVar3 = (undefined4 ****)local_a4;
|
| 194 |
+
if (uStack_90 < 0x10) {
|
| 195 |
+
ppppuVar3 = &local_a4;
|
| 196 |
+
}
|
| 197 |
+
FUN_008a0b10(ppppuVar3);
|
| 198 |
+
iStack_14 = (uint)iStack_14._1_3_ << 8;
|
| 199 |
+
std::basic_string<>::~basic_string<>((basic_string<> *)&local_a8);
|
| 200 |
+
iStack_14 = 0xffffffff;
|
| 201 |
+
std::basic_string<>::~basic_string<>((basic_string<> *)local_54);
|
| 202 |
+
cVar1 = '\0';
|
| 203 |
+
}
|
| 204 |
+
else if (0.1 < (float)param_2) {
|
| 205 |
+
FUN_00736f20();
|
| 206 |
+
FUN_008a0dc0();
|
| 207 |
+
}
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
ExceptionList = local_18;
|
| 211 |
+
return cVar1;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
"""],
|
| 215 |
inputs="text", outputs="text")
|
| 216 |
demo.queue()
|