Skip to content

Commit

Permalink
Move method cpp file to root directory
Browse files Browse the repository at this point in the history
Attempt at fixing mangos builds
  • Loading branch information
Foereaper committed Nov 10, 2024
1 parent 3a8bed8 commit 23396f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion methods/Methods.cpp → ElunaMethods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "VehicleMethods.h"
#include "BattleGroundMethods.h"

void RegisterFunctions(Eluna* E)
void RegisterMethods(Eluna* E)
{
ElunaTemplate<>::SetMethods(E, LuaGlobalFunctions::GlobalMethods);

Expand Down
4 changes: 2 additions & 2 deletions LuaEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C"
// Additional lua libraries
};

extern void RegisterFunctions(Eluna* E);
extern void RegisterMethods(Eluna* E);

void Eluna::_ReloadEluna()
{
Expand Down Expand Up @@ -146,7 +146,7 @@ void Eluna::OpenLua()
luaL_openlibs(L);

// Register methods and functions
RegisterFunctions(this);
RegisterMethods(this);

// get require paths
const std::string& requirepath = sElunaLoader->GetRequirePath();
Expand Down

0 comments on commit 23396f1

Please sign in to comment.