Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Jul 16, 2024
1 parent e748826 commit 6f81928
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.1.3
- uses: actions/checkout@v3
uses: microsoft/setup-msbuild@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
submodules: recursive
- uses: ThirteenAG/update-tags@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -165,3 +165,10 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
tag: pcsx2f
artifacts: bin/PCSX2F.XboxRainDroplets64.zip
- name: SplinterCellBlacklist.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: scb
artifacts: bin/SplinterCellBlacklist.XboxRainDroplets.zip
13 changes: 11 additions & 2 deletions source/SplinterCellBlacklist.XboxRainDroplets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,22 @@ void Init()
regs.xmm0.f32[0] = 0.0f; // disables original droplets
});

pattern = hook::pattern("83 C4 1C 8B CB E8");
pattern = hook::pattern("E8 ? ? ? ? 83 C4 1C 8B CB");
static auto BeforeRenderHUDPrimitives = safetyhook::create_mid(pattern.get_first(), [](SafetyHookContext& regs)
{
WaterDrops::Process();
WaterDrops::Render();
});

pattern = hook::pattern("8B 46 58 8D 95");
static auto ResizeDXGIBuffers = safetyhook::create_mid(pattern.get_first(), [](SafetyHookContext& regs)
{
auto pSwapChain = *(IDXGISwapChain**)(regs.esi + 0x58);
WaterDrops::Reset();
Sire::Shutdown();
Sire::Init(Sire::SIRE_RENDERER_DX11, pSwapChain);
});

pattern = hook::pattern("89 85 ? ? ? ? 85 C0 79 07");
static auto AfterD3D11CreateDeviceAndSwapChain = safetyhook::create_mid(pattern.get_first(), [](SafetyHookContext& regs)
{
Expand Down Expand Up @@ -68,7 +77,7 @@ extern "C" __declspec(dllexport) void InitializeASI()
{
std::call_once(CallbackHandler::flag, []()
{
CallbackHandler::RegisterCallback(Init);
CallbackHandler::RegisterCallback(Init, hook::pattern("89 85 ? ? ? ? 85 C0 79 07"));
});
}

Expand Down
4 changes: 2 additions & 2 deletions source/resources/inis/MaxPayne3.XboxRainDroplets.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[MAIN]
MinSize = 5
MaxSize = 16
MinSize = 10
MaxSize = 26
MaxDrops = 350
MaxMovingDrops = 600
RadialMovement = 1
Expand Down

0 comments on commit 6f81928

Please sign in to comment.