Pseudocode decompialtion improvements and docs

This commit is contained in:
MaddoScientisto 2026-03-26 22:10:48 +01:00
commit 589bfc31ef
1898 changed files with 60634 additions and 6597 deletions

View file

@ -5,60 +5,50 @@ function monitew_use() /* entry=77 class_id=0x0165 slot=0x01 */
if (Item.getFrame(arg_06) <= 1) {
}
else {
class_0A0C_slot_26((World.getAlertActive() != 1), 4, arg_06);
ITEM.slot_26((World.getAlertActive() != 1), 4, arg_06);
if (retval == 1) {
/* free_local_string bp_offset=0xFE target=[BP-02h] */
local_02 = "LMC SECURITY SYSTEM-----------------^^Unable to Access Monitor^Red Alert in Progress";
spawn class_0A16_slot_20(pid, local_02, arg_06);
spawn TEXTFILE.slot_20(pid, local_02, arg_06);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
}
else {
local_08 = Item.getQLo(arg_06);
if (Item.getMapNum(arg_06) == 0) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
while (!condition) {
for local_04 in nearby_items(shape=0x0251, origin=arg_06) {
if ((Item.getQLo(local_04) == local_08) || (local_08 != 0)) {
class_0A18_slot_20(local_04);
VALBOX.slot_20(local_04);
local_06 = retval;
class_0A16_slot_23(local_06, Item.getQHi(local_04), Item.getQLo(local_04), arg_06);
TEXTFILE.slot_23(local_06, Item.getQHi(local_04), Item.getQLo(local_04), arg_06);
/* free_local_string bp_offset=0xFE target=[BP-02h] */
local_02 = retval;
spawn class_0A16_slot_20(pid, local_02, arg_06);
spawn TEXTFILE.slot_20(pid, local_02, arg_06);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
}
/* loopnext */
}
spawn class_0A17_slot_20(pid, 0, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
else {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
while (!condition) {
for local_04 in nearby_items(shape=0x0251, origin=arg_06) {
if (Item.getQLo(local_04) == local_08) {
class_0A18_slot_20(local_04);
VALBOX.slot_20(local_04);
local_06 = retval;
local_0A = (1 + local_0A);
}
/* loopnext */
}
class_0A16_slot_23(local_06, Item.getQHi(arg_06), Item.getQLo(arg_06), arg_06);
TEXTFILE.slot_23(local_06, Item.getQHi(arg_06), Item.getQLo(arg_06), arg_06);
/* free_local_string bp_offset=0xFE target=[BP-02h] */
local_02 = retval;
if (local_0A <= 1) {
/* free_local_string bp_offset=0xFE target=[BP-02h] */
local_02 = "There is more than one Value box in range with the same link";
}
spawn class_0A16_slot_20(pid, local_02, arg_06);
spawn TEXTFILE.slot_20(pid, local_02, arg_06);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
}