Added cPlugin:GetLocalFolder() API function.
This supersedes the cPlugin:GetLocalDirectory() function.
This commit is contained in:
parent
e8b70f8a0e
commit
66da02519a
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Lua binding: AllToLua
|
** Lua binding: AllToLua
|
||||||
** Generated automatically by tolua++-1.0.92 on 09/16/13 11:41:45.
|
** Generated automatically by tolua++-1.0.92 on 09/18/13 22:13:21.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
@ -10828,6 +10828,38 @@ static int tolua_AllToLua_cPlugin_GetLocalDirectory00(lua_State* tolua_S)
|
|||||||
}
|
}
|
||||||
#endif //#ifndef TOLUA_DISABLE
|
#endif //#ifndef TOLUA_DISABLE
|
||||||
|
|
||||||
|
/* method: GetLocalFolder of class cPlugin */
|
||||||
|
#ifndef TOLUA_DISABLE_tolua_AllToLua_cPlugin_GetLocalFolder00
|
||||||
|
static int tolua_AllToLua_cPlugin_GetLocalFolder00(lua_State* tolua_S)
|
||||||
|
{
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
tolua_Error tolua_err;
|
||||||
|
if (
|
||||||
|
!tolua_isusertype(tolua_S,1,"const cPlugin",0,&tolua_err) ||
|
||||||
|
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||||
|
)
|
||||||
|
goto tolua_lerror;
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
const cPlugin* self = (const cPlugin*) tolua_tousertype(tolua_S,1,0);
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLocalFolder'", NULL);
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
AString tolua_ret = (AString) self->GetLocalFolder();
|
||||||
|
tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
tolua_lerror:
|
||||||
|
tolua_error(tolua_S,"#ferror in function 'GetLocalFolder'.",&tolua_err);
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#endif //#ifndef TOLUA_DISABLE
|
||||||
|
|
||||||
/* get function: __cWebPlugin__ of class cPluginLua */
|
/* get function: __cWebPlugin__ of class cPluginLua */
|
||||||
#ifndef TOLUA_DISABLE_tolua_get_cPluginLua___cWebPlugin__
|
#ifndef TOLUA_DISABLE_tolua_get_cPluginLua___cWebPlugin__
|
||||||
static int tolua_get_cPluginLua___cWebPlugin__(lua_State* tolua_S)
|
static int tolua_get_cPluginLua___cWebPlugin__(lua_State* tolua_S)
|
||||||
@ -29797,6 +29829,7 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S)
|
|||||||
tolua_function(tolua_S,"SetVersion",tolua_AllToLua_cPlugin_SetVersion00);
|
tolua_function(tolua_S,"SetVersion",tolua_AllToLua_cPlugin_SetVersion00);
|
||||||
tolua_function(tolua_S,"GetDirectory",tolua_AllToLua_cPlugin_GetDirectory00);
|
tolua_function(tolua_S,"GetDirectory",tolua_AllToLua_cPlugin_GetDirectory00);
|
||||||
tolua_function(tolua_S,"GetLocalDirectory",tolua_AllToLua_cPlugin_GetLocalDirectory00);
|
tolua_function(tolua_S,"GetLocalDirectory",tolua_AllToLua_cPlugin_GetLocalDirectory00);
|
||||||
|
tolua_function(tolua_S,"GetLocalFolder",tolua_AllToLua_cPlugin_GetLocalFolder00);
|
||||||
tolua_endmodule(tolua_S);
|
tolua_endmodule(tolua_S);
|
||||||
tolua_cclass(tolua_S,"cPluginLua","cPluginLua","cPlugin",NULL);
|
tolua_cclass(tolua_S,"cPluginLua","cPluginLua","cPlugin",NULL);
|
||||||
tolua_beginmodule(tolua_S,"cPluginLua");
|
tolua_beginmodule(tolua_S,"cPluginLua");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Lua binding: AllToLua
|
** Lua binding: AllToLua
|
||||||
** Generated automatically by tolua++-1.0.92 on 09/16/13 11:41:45.
|
** Generated automatically by tolua++-1.0.92 on 09/18/13 22:13:21.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Exported function */
|
/* Exported function */
|
||||||
|
@ -2,10 +2,6 @@
|
|||||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||||
|
|
||||||
#include "Plugin.h"
|
#include "Plugin.h"
|
||||||
#include "Entities/Player.h"
|
|
||||||
#include "World.h"
|
|
||||||
#include "CommandOutput.h"
|
|
||||||
#include "Mobs/Monster.h"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -32,7 +28,11 @@ cPlugin::~cPlugin()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
AString cPlugin::GetLocalDirectory(void) const
|
AString cPlugin::GetLocalFolder(void) const
|
||||||
{
|
{
|
||||||
return std::string("Plugins/") + m_Directory;
|
return std::string("Plugins/") + m_Directory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -121,7 +121,8 @@ public:
|
|||||||
void SetVersion(int a_Version) { m_Version = a_Version; }
|
void SetVersion(int a_Version) { m_Version = a_Version; }
|
||||||
|
|
||||||
const AString & GetDirectory(void) const {return m_Directory; }
|
const AString & GetDirectory(void) const {return m_Directory; }
|
||||||
AString GetLocalDirectory(void) const;
|
AString GetLocalDirectory(void) const {return GetLocalFolder(); } // OBSOLETE, use GetLocalFolder() instead
|
||||||
|
AString GetLocalFolder(void) const;
|
||||||
// tolua_end
|
// tolua_end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user