AurieFramework / YYToolkit

The definitive internal modding tool for GameMaker games
GNU Affero General Public License v3.0
72 stars 10 forks source link

Incomplete / incorrect SDK types of YYGMLFuncs #45

Closed Archie-osu closed 1 year ago

Archie-osu commented 2 years ago

Correct type is:

struct YYGMLFuncs
{
    const char* pName;
    union
    {
        PFUNC_YYGMLScript pScriptFunc;
        PFUNC_YYGML pFunc;
    };
    YYVAR* pFuncVar;
};

The pScriptFunc type is what is used in YYC script calls (see Will You Snail? for an example game).

Archie-osu commented 2 years ago

Forgot to add, but type of PFUNC_YYGMLScript is

using PFUNC_YYGMLScript = YYRValue*(*)(CInstance* _self, CInstance* _other, YYRValue* _return_value, int _argc, YYRValue** args);
Archie-osu commented 1 year ago

Fixed in 5289608c20d91f656d5c7d6b99b62176d4d4a015.