mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 14:03:26 +02:00
more changes to work on ARM
This commit is contained in:
@@ -352,14 +352,13 @@ std::string LuaInterface::traceback(const std::string& errorMessage, int level)
|
||||
return popString();
|
||||
}
|
||||
|
||||
std::string LuaInterface::currentSourcePath()
|
||||
std::string LuaInterface::getCurrentSourcePath(int level)
|
||||
{
|
||||
std::string path;
|
||||
if(!L)
|
||||
return path;
|
||||
|
||||
// check all stack functions for script source path
|
||||
int level = 0;
|
||||
while(true) {
|
||||
getStackFunction(level); // pushes stack function
|
||||
|
||||
|
@@ -154,7 +154,7 @@ public:
|
||||
std::string traceback(const std::string& errorMessage = "", int level = 0);
|
||||
|
||||
/// Searches for the source of the current running function
|
||||
std::string currentSourcePath();
|
||||
std::string getCurrentSourcePath(int level = 0);
|
||||
|
||||
/// @brief Calls a function
|
||||
/// The function and arguments must be on top of the stack in order,
|
||||
|
Reference in New Issue
Block a user