Skip to content

Mark new methodmap natives as optional - #867

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

asherkin merged 1 commit into
alliedmodders:masterfrom
peace-maker:optional_methodmap

Conversation

@peace-maker

Copy link
Copy Markdown
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

asherkin commented Aug 6, 2018

Copy link
Copy Markdown
Member

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