Skip to content

Commit

Permalink
....
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Bokatius committed Jun 15, 2019
1 parent 1f82f99 commit c0a4938
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ const unsigned MINOR_VER{ 0 };

::Bool PluginStart()
{
DisableMaterials::register_class();
EnableMaterials::register_class();
if (!DisableMaterials::register_class())
{
ApplicationOutput("Failed to register DisableMaterials command");
return false;
}
if(!EnableMaterials::register_class())
{
ApplicationOutput("Failed to register EnableMaterials command");
return false;
}

std::ostringstream str;
str << "DisableMaterials v" << MAJOR_VER << '.' << MINOR_VER << " by " << AUTHOR;
ApplicationOutput(str.str().c_str());
Expand Down

0 comments on commit c0a4938

Please sign in to comment.