diff --git a/codegen/src/AddressGen.cpp b/codegen/src/AddressGen.cpp index 80f7cd4c..23efa676 100644 --- a/codegen/src/AddressGen.cpp +++ b/codegen/src/AddressGen.cpp @@ -30,7 +30,7 @@ Result geode::modifier::handlerMetadataForAddress( char const* declare_metadata = R"GEN( {{ using FunctionType = {return}(*)({class_name}{const}*{parameter_comma}{parameter_types}); - ret[address<{index}>()] = +[](){{ + ret[modifier::address<{index}>()] = +[](){{ return tulip::hook::HandlerMetadata{{ .m_convention = geode::hook::createConvention(tulip::hook::TulipConvention::{convention}), .m_abstract = tulip::hook::AbstractFunction::from(FunctionType(nullptr)), @@ -42,7 +42,7 @@ Result geode::modifier::handlerMetadataForAddress( char const* declare_metadata_static = R"GEN( {{ using FunctionType = {return}(*)({parameter_types}); - ret[address<{index}>()] = +[](){{ + ret[modifier::address<{index}>()] = +[](){{ return tulip::hook::HandlerMetadata{{ .m_convention = geode::hook::createConvention(tulip::hook::TulipConvention::{convention}), .m_abstract = tulip::hook::AbstractFunction::from(FunctionType(nullptr)), @@ -54,7 +54,7 @@ Result geode::modifier::handlerMetadataForAddress( char const* declare_metadata_structor = R"GEN( {{ using FunctionType = void(*)({class_name}*{parameter_comma}{parameter_types}); - ret[address<{index}>()] = +[](){{ + ret[modifier::address<{index}>()] = +[](){{ return tulip::hook::HandlerMetadata{{ .m_convention = geode::hook::createConvention(tulip::hook::TulipConvention::{convention}), .m_abstract = tulip::hook::AbstractFunction::from(FunctionType(nullptr)),