mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2025-10-24 16:10:21 +02:00
add LuaEngineAddon
This commit is contained in:
parent
8091a092ab
commit
bf3d74fb21
12 changed files with 105 additions and 48 deletions
|
|
@ -32,12 +32,6 @@
|
|||
#include "unistd.h"
|
||||
#endif
|
||||
|
||||
LuaEngineIO::LuaEngineIO(QObject *parent, bool loadBaseLibraries) : LuaEngine(parent, loadBaseLibraries)
|
||||
{
|
||||
L = luaState();
|
||||
pushClass(L);
|
||||
}
|
||||
|
||||
void LuaEngineIO::pushClass(lua_State *L_p)
|
||||
{
|
||||
// Directory
|
||||
|
|
|
|||
|
|
@ -19,17 +19,17 @@
|
|||
#define LUAENGINEIO_H
|
||||
|
||||
#include "LuaEngineIO_global.h"
|
||||
#include "LuaEngineAddon.h"
|
||||
#include "LuaEngine.h"
|
||||
#include <QJsonValueRef>
|
||||
#include <QJsonValue>
|
||||
#include <QString>
|
||||
#include <QObject>
|
||||
|
||||
class LUAENGINEIOSHARED_EXPORT LuaEngineIO : public LuaEngine
|
||||
class LUAENGINEIOSHARED_EXPORT LuaEngineIO : public LuaEngineAddon
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
LuaEngineIO(QObject *parent = nullptr, bool loadBaseLibraries = true);
|
||||
static void pushClass(lua_State *L_p);
|
||||
static void pushClass(LuaEngine *luaEngine);
|
||||
static int checkDirectoryExists(lua_State *L_p);
|
||||
|
|
|
|||
|
|
@ -55,6 +55,6 @@ win32 {
|
|||
RC_LANG = 0x0
|
||||
QMAKE_TARGET_COMPANY = "Syping"
|
||||
QMAKE_TARGET_DESCRIPTION = "LuaEngine I/O Library"
|
||||
QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2019 Syping"
|
||||
QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2019-2020 Syping"
|
||||
QMAKE_TARGET_PRODUCT = "LuaEngineIO"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue