Skip to content

Commit faffe2a

Browse files
committed
Add file share mode for TXTs (you don't have to close Excel to recompile txts)
1 parent 427e3b8 commit faffe2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

D2Ex2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ BOOL D2Ex::Init()
208208
#define CUSTOM 0
209209
#ifdef VER_111B
210210
//PATCHES---TYPE-DEST_ADDRESS---------------WHAT_PATCH-------------------------SIZE---DESC-----
211+
Misc::Patch(CUSTOM, GetDllOffset("Storm.dll", -268) + 298, FILE_SHARE_WRITE | FILE_SHARE_READ, 1, "Enable share-mode for files"); // Credit: Yohann Nicolas, Plugy source
211212

212213
Misc::Patch(CALL, GetDllOffset("D2Client.dll", 0x652C4), (DWORD)ExOptions::UnregisterMenuMsgs, 21, "Menu messages replacement");
213214
Misc::Patch(CALL, GetDllOffset("D2Client.dll", 0x8EED7), (DWORD)ExOptions::UnregisterMenuMsgs, 21, "Menu messages replacement");
@@ -316,6 +317,7 @@ BOOL D2Ex::Init()
316317
#endif
317318

318319
#elif defined VER_113D
320+
Misc::Patch(CUSTOM, GetDllOffset("Storm.dll", -268) + 298, FILE_SHARE_WRITE | FILE_SHARE_READ, 1, "Enable share-mode for files"); // Credit: Yohann Nicolas, Plugy source
319321

320322
#ifdef D2EX_CUSTOM_CUBE_RECIPES
321323
Misc::Patch(JUMP, GetDllOffset("D2Common.dll", 0x5B520), (DWORD)ExCube::TXT_CubemainOutputLinker, 5, "CubeMain.Txt output field compiler replacement");

0 commit comments

Comments
 (0)