@@ -89,7 +89,7 @@ namespace horrible {
8989 *
9090 * @returns A result possibly containing the option object
9191 */
92- [[nodiscard]] geode::Result<horrible:: Option> getOptionInfo (std::string_view id) const noexcept ;
92+ [[nodiscard]] geode::Result<Option> getOptionInfo (std::string_view id) const noexcept ;
9393
9494 /* *
9595 * Returns the amount of delegate callbacks registered for an option
@@ -116,7 +116,7 @@ namespace horrible {
116116 * @param id The ID of the option to set the delegate for
117117 * @param callback The hook callback to register for this option's delegate
118118 */
119- void addDelegate (geode::ZStringView id, geode::Function<void (bool )>&& callback);
119+ void addDelegate (std::string id, geode::Function<void (bool )>&& callback);
120120
121121 /* *
122122 * Returns a reference to the array of all registered categories
@@ -132,15 +132,16 @@ namespace horrible {
132132 * @param id The ID of the option to delegate for
133133 * @param hooks The map of hooks to delegate
134134 */
135- AWCW_HORRIBLE_API_DLL void delegateHooks (geode::ZStringView id, geode::utils::StringMap<std::shared_ptr<geode::Hook>>& hooks);
135+ AWCW_HORRIBLE_API_DLL void delegateHooks (std::string id, geode::utils::StringMap<std::shared_ptr<geode::Hook>>& hooks);
136136};
137137
138138// Statically register an option
139- #define HORRIBLE_REGISTER_OPTION (opt ) $execute {\
139+ #define HORRIBLE_REGISTER_OPTION (opt ) \
140+ $execute { \
140141 if (auto om = horrible::OptionManager::get ()) om->registerOption (opt); \
141142}
142143
143- // Delegate registered hooks to OptionManager for dynamic toggling
144+ // Delegate hooks to OptionManager for dynamic toggling
144145#define HORRIBLE_DELEGATE_HOOKS (id ) \
145146static void onModify (auto & self) { \
146147 horrible::delegateHooks (id, self.m_hooks ); \
0 commit comments