You've already forked rdsspy-lua-host
mirror of
https://github.com/KubaPro010/rdsspy-lua-host.git
synced 2026-02-27 02:45:21 +01:00
move most of the lua api into its one file in c
This commit is contained in:
48
api.h
Normal file
48
api.h
Normal file
@@ -0,0 +1,48 @@
|
||||
#include <windows.h>
|
||||
#include <shlobj.h>
|
||||
#include <stdint.h>
|
||||
#include "lua/lua.h"
|
||||
#include "lua/lualib.h"
|
||||
#include "lua/lauxlib.h"
|
||||
|
||||
typedef struct {
|
||||
uint8_t len;
|
||||
uint8_t data[255];
|
||||
} ShortString;
|
||||
|
||||
typedef struct {
|
||||
ShortString Key;
|
||||
ShortString Value;
|
||||
} TRecord;
|
||||
|
||||
typedef struct {
|
||||
int32_t Count;
|
||||
TRecord Records[255];
|
||||
} TDB;
|
||||
|
||||
extern HFONT g_hCurrentFont;
|
||||
#define FONT_NAME "Segoe UI"
|
||||
|
||||
extern HWND hEditControl;
|
||||
extern uint8_t console_mode;
|
||||
extern uint8_t sticky;
|
||||
extern TDB* g_DBPointer;
|
||||
extern unsigned char workspaceFile[MAX_PATH];
|
||||
|
||||
int lua_log(lua_State* localL);
|
||||
int lua_set_console(lua_State* localL);
|
||||
int lua_set_console_mode(lua_State* localL);
|
||||
int lua_set_window_stick(lua_State* localL);
|
||||
int lua_get_window_stick(lua_State* localL);
|
||||
int lua_set_font_size(lua_State* localL);
|
||||
int lua_MessageBox(lua_State* localL);
|
||||
int lua_ReadValue(lua_State* localL);
|
||||
int lua_ReadRecord(lua_State* localL);
|
||||
int lua_AddValue(lua_State* localL);
|
||||
int lua_ResetValues(lua_State* localL);
|
||||
int lua_CountRecords(lua_State* localL);
|
||||
int lua_CharConv(lua_State* localL);
|
||||
int lua_SaveString(lua_State* localL);
|
||||
int lua_LoadString(lua_State* localL);
|
||||
|
||||
extern void AppendText(const char* text);
|
||||
Reference in New Issue
Block a user