MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / recompui_get_input_text

Function recompui_get_input_text

src/ui/ui_api.cpp:769–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769void recompui_get_input_text(uint8_t* rdram, recomp_context* ctx) {
770 Style* resource = arg_style<0>(rdram, ctx);
771
772 if (resource == nullptr || !resource->is_element()) {
773 recompui::message_box("Fatal error in mod - attempted to get input text of non-element or element not found in context");
774 assert(false);
775 ultramodern::error_handling::quick_exit(__FILE__, __LINE__, __FUNCTION__);
776 }
777
778 Element* element = static_cast<Element*>(resource);
779 std::string ret = element->get_input_text();
780 return_string(rdram, ctx, ret);
781}
782
783void recompui_set_input_value_u32(uint8_t* rdram, recomp_context* ctx) {
784 Style* resource = arg_style<0>(rdram, ctx);

Callers

nothing calls this directly

Calls 3

return_stringFunction · 0.85
get_input_textMethod · 0.80
is_elementMethod · 0.45

Tested by

no test coverage detected