Skip to content

Commit

Permalink
v0.10.2-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubb13 committed Mar 22, 2024
1 parent c57f978 commit 5b0b672
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 17 deletions.
2 changes: 1 addition & 1 deletion EEex/EEex.tp2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BACKUP ~EEex/backup~
AUTHOR ~Bubb~
VERSION ~devel~
VERSION ~v0.10.2-alpha~
README ~EEex/readme-EEex.html~

BEGIN ~EEex~ LABEL ~B3-EEex-Main~
Expand Down
14 changes: 7 additions & 7 deletions EEex/copy/EEex_Menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ function EEex_Menu_Find(menuName, panel, state)
return EngineGlobals.findMenu(menuName, panel or 0, state or 0)
end

function EEex_Menu_GetItemFunction(funcRefPtr)
local regIndex = funcRefPtr:getValue()
function EEex_Menu_GetItemFunction(funcRef)
local regIndex = funcRef.value
return regIndex ~= 0 and EEex_GetLuaRegistryIndex(regIndex) or nil
end

function EEex_Menu_SetItemFunction(funcRefPtr, func)
local regIndex = funcRefPtr:getValue()
function EEex_Menu_SetItemFunction(funcRef, func)
local regIndex = funcRef.value
if regIndex == 0 then
funcRefPtr:setValue(EEex_AddToLuaRegistry(func))
funcRef.value = EEex_AddToLuaRegistry(func)
else
EEex_SetLuaRegistryIndex(regIndex, func)
end
Expand All @@ -133,10 +133,10 @@ uiVariant.getValue = EEex_Menu_GetItemVariant

function EEex_Menu_SetItemVariant(variantRefPtr, myVal)

variant = variantRefPtr:getValue()
variant = variantRefPtr.reference
if not variant then
variant = EEex_PtrToUD(EEex_Malloc(uiVariant.sizeof), "uiVariant")
variantRefPtr:setValue(variant)
variantRefPtr.reference = variant
end

local myValType = type(myVal)
Expand Down
19 changes: 14 additions & 5 deletions EEex/copy/EEex_Resource.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,26 @@ end

function EEex_Resource_Fetch(resref, extension)
local toReturn
EEex_RunWithStack(CRes.sizeof + #resref + 1, function(rsp)
local resrefLen = #resref + 1
EEex_RunWithStack(CRes.sizeof + resrefLen + EEex_PtrSize, function(rsp)

local resObj = EEex_PtrToUD(rsp, "CRes")
local curRspOffset = rsp

local resObj = EEex_PtrToUD(curRspOffset, "CRes")
resObj:Construct()
resObj.type = EEex_Resource_ExtToType(extension)

curRspOffset = curRspOffset + CRes.sizeof
local resrefStr = EEex_CastUD(resObj.resref, "CharString")
resrefStr:pointTo(rsp + CRes.sizeof)
resrefStr:pointTo(curRspOffset)
resrefStr:write(resref)
resObj.type = EEex_Resource_ExtToType(extension)

curRspOffset = curRspOffset + resrefLen
local ptrToResObj = EEex_PtrToUD(curRspOffset, "Pointer<CRes>")
ptrToResObj.reference = resObj

toReturn = EngineGlobals.bsearch(
resObj:getInternalReference(),
ptrToResObj,
EngineGlobals.resources.m_pData,
EngineGlobals.resources.m_nSize,
EEex_PointerSize,
Expand Down
7 changes: 4 additions & 3 deletions EEex/copy/EEex_Sprite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -802,10 +802,11 @@ CGameSprite.openOp214Interface = EEex_Sprite_OpenOp214Interface

function EEex_Sprite_GetLauncher(sprite, curAbility)
return EEex_RunWithStackManager({
{ ["name"] = "launcherSlot", ["struct"] = "uninitialized", ["constructor"] = { ["args"] = {2} } } },
{ ["name"] = "launcherSlot", ["struct"] = "Primitive<short>" } },
function(manager)
local launcherSlotPtr = EEex_NewUDPtr(manager:getAddress("launcherSlot"), "short")
return sprite:GetLauncher(curAbility, launcherSlotPtr), launcherSlotPtr:getValue()
local launcherSlot = manager:getUD("launcherSlot")
local launcher = sprite:GetLauncher(curAbility, launcherSlot)
return launcher, launcher and launcherSlot.value or -1
end
)
end
Expand Down
Binary file modified EEex/loader/EEex.dll
Binary file not shown.
Binary file modified EEex/loader/InfinityLoader.exe
Binary file not shown.
Binary file modified EEex/loader/InfinityLoaderCommon.dll
Binary file not shown.
Binary file modified EEex/loader/InfinityLoaderDLL.dll
Binary file not shown.
Binary file modified EEex/loader/Lua52/LuaProvider.dll
Binary file not shown.
Binary file modified EEex/loader/LuaBindings-v2.6.6.0.dll
Binary file not shown.
Binary file modified EEex/loader/LuaBindingsCore.dll
Binary file not shown.
Binary file modified EEex/loader/LuaJIT/LuaProvider.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion package_mod.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ call "%~dp0..\ModPackaging\utilities\ie_games.bat"

REM /* MODIFY: set the values of the 3 variables below to reflect the current mod version */
set "mod_name=EEex"
set "mod_version=devel"
set "mod_version=v0.10.2-alpha"
set mod_folder=EEex

REM /* MODIFY: list here which IE games the mod is compatible with, from this list of possibilities: */
Expand Down
Binary file modified pdb/EEex.pdb
Binary file not shown.
Binary file modified pdb/InfinityLoader.pdb
Binary file not shown.
Binary file modified pdb/InfinityLoaderCommon.pdb
Binary file not shown.
Binary file modified pdb/InfinityLoaderDLL.pdb
Binary file not shown.
Binary file modified pdb/Lua52/LuaProvider.pdb
Binary file not shown.
Binary file modified pdb/LuaBindings-v2.6.6.0.pdb
Binary file not shown.
Binary file modified pdb/LuaBindingsCore.pdb
Binary file not shown.
Binary file modified pdb/LuaJIT/LuaProvider.pdb
Binary file not shown.

0 comments on commit 5b0b672

Please sign in to comment.