Skip to content

Commit

Permalink
Add WriteNop, up changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
llde committed Sep 7, 2023
1 parent d062910 commit 2b58fe4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions obse/obse_common/SafeWrite.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

void SafeWrite8(UInt32 addr, UInt32 data)
{
UInt32 oldProtect;
Expand Down Expand Up @@ -68,3 +69,10 @@ void WriteRelJle(UInt32 jumpSrc, UInt32 jumpTgt)
SafeWrite16(jumpSrc, 0x8E0F);
SafeWrite32(jumpSrc + 2, jumpTgt - jumpSrc - 2 - 4);
}


void WriteNop(UInt32 nopAddr, UInt8 numOfByte) {
for (UInt8 i = 0; i < numOfByte; i++) {
SafeWrite8(nopAddr + i, 0x90);
}
}
3 changes: 3 additions & 0 deletions obse/obse_common/SafeWrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ void WriteRelCall(UInt32 jumpSrc, UInt32 jumpTgt);
void WriteRelJz(UInt32 jumpSrc, UInt32 jumpTgt);
void WriteRelJnz(UInt32 jumpSrc, UInt32 jumpTgt);
void WriteRelJle(UInt32 jumpSrc, UInt32 jumpTgt);

//Write arbitrary nop
void WriteNop(UInt32 nopAddr, UInt8 numOfByte);
8 changes: 8 additions & 0 deletions obse_whatsnew.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
xOBSE 22.10
Additions:
- Compiler: add error when using invalid filter strings identifier (the first element of a zz::yy pair) in SetEventHandler and related functions
- Improved Diagnostic for script errors
- Task2 Interface for plugins to better handle Removable Tasks
- Add GameInitialized Message (for OBSE plugins interop)
- Added Compatibility for OBCN, similar of what was done for OBJA in 22.8 (EXPERIMENTAL)
Fix :
- Compiler: fix SetEventHandler filters when the identifier was used unquoted and defined as a variable name
- Changes to Steam version handling, solving some of the instances of Application load error
- Allow sorting arrays of arrays when using ar_CustomSort
- Fix for Ref Walking documentation
Changes:
- Force C++20 Standard, modified some places for compliance


xOBSE 22.9
Fix:
- Commit new ExtraData to container only if ExtraCount isn't the only data present. Fix duplicated items in inventory using MOO companions
Expand Down

0 comments on commit 2b58fe4

Please sign in to comment.