diff --git a/flash.toml b/flash.toml index ebfa4ede..06bce2ba 100644 --- a/flash.toml +++ b/flash.toml @@ -7,6 +7,7 @@ name = "Geode" version = "v1.0.0-beta" repository = "https://github.com/geode-sdk/geode" tree = "https://github.com/geode-sdk/geode/tree/main" +icon = "loader/resources/logos/geode-circle.png" [[sources]] name = "Geode" diff --git a/loader/include/Geode/utils/cocos.hpp b/loader/include/Geode/utils/cocos.hpp index 4769ce6b..c592ebb9 100644 --- a/loader/include/Geode/utils/cocos.hpp +++ b/loader/include/Geode/utils/cocos.hpp @@ -196,12 +196,7 @@ namespace geode { * * @tparam T A type that inherits from CCObject. * - * @example[flash] - * #include - * - * USE_GEODE_NAMESPACE(); - * - * //!flash-snippet-start + * @example * class MyNode : public CCNode { * protected: * // no need to manually call retain or @@ -219,32 +214,15 @@ namespace geode { * return true; * } * }; - * //!flash-snippet-end * - * @example[flash] - * #include - * #include - * - * USE_GEODE_NAMESPACE(); - * - * class ModifyMenuLayer : public MenuLayer { - * bool init() { - * if (!MenuLayer::init()) - * return false; - * - * //!flash-snippet-start - * // Save a child from the current layer into a menu - * Ref menu = static_cast(this->getChildByID("main-menu")); + * @example + * // Save a child from the current layer into a menu + * Ref menu = static_cast(this->getChildByID("main-menu")); * - * // Remove the menu from its parent - * menu->removeFromParent(); + * // Remove the menu from its parent + * menu->removeFromParent(); * - * // Menu will still point to a valid CCMenu as long as the menu variable exist - * //!flash-snippet-end - * - * return true; - * } - * }; + * // Menu will still point to a valid CCMenu as long as the menu variable exist */ template class Ref final {