Skip to content

Commit

Permalink
fix plugin factory macro so plugins can be correctly loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazrius committed Nov 19, 2023
1 parent f33def1 commit d39f8c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions include/API/FLHook/Plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ class DLL PacketInterface

#undef Aft

#define SetupPlugin(type, info) \
EXPORT std::shared_ptr<type> PluginFactory() \
{ \
__pragma(comment(linker, "/EXPORT:" __FUNCTION "=" __FUNCDNAME)); \
return std::move(std::make_shared<type>(info)); \
#define SetupPlugin(type, info) \
EXPORT std::shared_ptr<type> PluginFactory() \
{ \
__pragma(comment(linker, "/EXPORT:" __FUNCTION__ "=" __FUNCDNAME__)); \
return std::move(std::make_shared<type>(info)); \
}

#define AddPluginTimer(func, time) AddTimer(static_cast<void (Plugin::*)()>(func), time)
2 changes: 1 addition & 1 deletion source/API/Types/SystemId.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Action<void, Error> SystemId::Message(std::wstring_view msg, MessageColor color,
{
ValidSystemCheck;

const auto clientsInSystem = GetPlayersInSystem().Raw();
const auto clientsInSystem = GetPlayersInSystem(true).Raw();

if (clientsInSystem.has_error())
{
Expand Down

0 comments on commit d39f8c0

Please sign in to comment.