Skip to content

Commit

Permalink
fix fs
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaisaDev committed Jun 26, 2024
1 parent a7df431 commit 376fc8f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1,218 deletions.
4 changes: 2 additions & 2 deletions evaisa.mp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

game_id = 881100
--discord_app_id = 943584660334739457LL
MP_VERSION = 366
MP_VERSION = 367
MP_PRESET_VERSION = 2
VERSION_FLAVOR_TEXT = "$mp_release"
noita_online_download = "https://github.com/EvaisaDev/noita-online/releases"
Expand Down Expand Up @@ -364,7 +364,7 @@ if (not (ModIsEnabled("evaisa.betterlogger") and extended_logging_enabled)) then
local source = debug.getinfo(2).source
local line = debug.getinfo(2).currentline

old_print("[" .. source .. ":" .. tostring(line) .. "]: " .. tostring(content))
old_print(table.concat({"[" .. source .. ":" .. tostring(line) .. "]", ... }, " "))
end
end
end
Expand Down
18 changes: 9 additions & 9 deletions evaisa.mp/lib/ffi_extensions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local ffi = require("ffi")
local C = ffi.C

ffi.cdef[[
typedef bool BOOL;
typedef bool BOOLEAN;
typedef uint16_t WORD;
typedef uint32_t DWORD;
typedef void *LPVOID;
Expand All @@ -25,7 +25,7 @@ typedef DWORD *LPDWORD;
typedef struct _SECURITY_ATTRIBUTES_2 {
DWORD nLength;
LPVOID lpSecurityDescriptor;
BOOL bInheritHandle;
BOOLEAN bInheritHandle;
} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
typedef struct _STARTUPINFOA {
DWORD cb;
Expand Down Expand Up @@ -53,24 +53,24 @@ typedef struct _PROCESS_INFORMATION {
DWORD dwProcessId;
DWORD dwThreadId;
} PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION;
BOOL CreatePipe(
BOOLEAN CreatePipe(
PHANDLE,
PHANDLE,
LPSECURITY_ATTRIBUTES,
DWORD
);
BOOL SetHandleInformation(
BOOLEAN SetHandleInformation(
HANDLE,
DWORD,
DWORD
);
HANDLE GetStdHandle(DWORD);
BOOL CreateProcessA(
BOOLEAN CreateProcessA(
LPCSTR,
LPCSTR,
LPSECURITY_ATTRIBUTES,
LPSECURITY_ATTRIBUTES,
BOOL,
BOOLEAN,
DWORD,
LPVOID,
LPCSTR,
Expand All @@ -81,12 +81,12 @@ DWORD WaitForSingleObject(
HANDLE,
DWORD
);
BOOL GetExitCodeProcess(
BOOLEAN GetExitCodeProcess(
HANDLE,
LPDWORD
);
BOOL CloseHandle(HANDLE);
BOOL ReadFile(
BOOLEAN CloseHandle(HANDLE);
BOOLEAN ReadFile(
HANDLE,
LPVOID,
DWORD,
Expand Down
Loading

0 comments on commit 376fc8f

Please sign in to comment.