From 1c3414fe9272bb0e88fc958c0df5fba716db8884 Mon Sep 17 00:00:00 2001 From: Briggs Baltzell Date: Sun, 8 Feb 2026 17:28:35 -0600 Subject: [PATCH] Update `d_menu_cloth` to use `msg_method_class` and `msg_process_profile_definition`. Refactor structure definitions and add TODO comment for size clarification. --- src/d/d_menu_cloth.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/d/d_menu_cloth.cpp b/src/d/d_menu_cloth.cpp index 29f9f1987..e7b8dc83c 100644 --- a/src/d/d_menu_cloth.cpp +++ b/src/d/d_menu_cloth.cpp @@ -842,21 +842,12 @@ daCLOTH_HIO_c::~daCLOTH_HIO_c() { } // TODO - class menu_cloth_class : public fopAc_ac_c { dMCloth_c mCloth; }; -typedef struct menu_method_class { -} menu_method_class; - -typedef struct menu_process_profile_definition { - leaf_process_profile_definition base; - actor_method_class* method_table; -} menu_process_profile_definition; - /* Nonmatching */ -static actor_method_class dMenu_ClothMethodTable = { +static msg_method_class dMenu_ClothMethodTable = { (process_method_func)dMenu_ClothCreate, (process_method_func)dMenu_ClothDelete, (process_method_func)dMenu_ClothDraw, @@ -865,13 +856,13 @@ static actor_method_class dMenu_ClothMethodTable = { }; /* Nonmatching */ -menu_process_profile_definition g_profile_Menu_Cloth = { +msg_process_profile_definition g_profile_Menu_Cloth = { /* LayerID */ (uint)fpcLy_CURRENT_e, /* ListID */ 0x000C, /* ListPrio */ fpcPi_CURRENT_e, /* ProcName */ PROC_Menu_Cloth, /* Proc SubMtd */ &g_fpcLf_Method.base, - /* Size */ 0x929C, + /* Size */ 0x929C, // TODO: sizeof(menu_cloth_class) /* SizeOther */ 0, /* Parameters */ 0, /* Leaf SubMtd */ &g_fopMsg_Method,