Skip to content

Mark new methodmap natives as optional#867

Merged
asherkin merged 1 commit intoalliedmodders:masterfrom
peace-maker:optional_methodmap
Aug 6, 2018
Merged

Mark new methodmap natives as optional#867
asherkin merged 1 commit intoalliedmodders:masterfrom
peace-maker:optional_methodmap

Conversation

@peace-maker
Copy link
Member

The TopMenu methodmap natives weren't marked as optional if the extension was optional like the other normal natives.

The Regex natives weren't marked as optional at all before if the regex extension was included optionally.

This makes the error message cleaner in case topmenus aren't loaded and won't prevent plugins from loading if they're supposed to have an optional dependency.

adminmenu.smx (Admin Menu): Required extension "TopMenus" file("topmenus.ext") not running
basebans.smx (Basic Ban Commands): Native "TopMenu.Display" was not found

The `TopMenu` methodmap natives weren't marked as optional if the extension was optional like the other normal natives.

The `Regex` natives weren't marked as optional at all before if the regex extension was included optionally.

This makes the error message cleaner in case topmenus aren't loaded.
```
adminmenu.smx (Admin Menu): Required extension "TopMenus" file("topmenus.ext") not running
basebans.smx (Basic Ban Commands): Native "TopMenu.Display" was not found
```
@asherkin asherkin merged commit 7e3b1c3 into alliedmodders:master Aug 6, 2018
@asherkin
Copy link
Member

asherkin commented Aug 6, 2018

Thanks!

@peace-maker peace-maker deleted the optional_methodmap branch August 6, 2018 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants