Eluna rewrite file loader

This commit is contained in:
Rochet2
2014-04-19 13:58:57 +03:00
committed by Foereaper
parent 6074f5cf6f
commit 3cdc08d556
2 changed files with 52 additions and 118 deletions

View File

@@ -63,7 +63,7 @@ extern "C"
#include "ArenaTeam.h"
#endif
typedef std::set<std::string> LoadedScripts;
typedef std::vector<std::string> ScriptPaths;
#ifdef MANGOS
#undef sWorld
@@ -573,7 +573,8 @@ public:
void BeginCall(int fReference);
bool ExecuteCall(int params, int res);
void EndCall(int res);
void LoadDirectory(char* directory, LoadedScripts* scr);
void GetScripts(std::string path, ScriptPaths& scripts);
void RunScripts(ScriptPaths& scripts);
// Pushes
void Push(lua_State*); // nil