Skip to content

Commit

Permalink
CI builds (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
vswarte authored Apr 14, 2023
1 parent c768e37 commit 036fbf4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: [push]

name: Build

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features --verbose
- uses: actions/upload-artifact@v3
with:
path: target/release/*.exe
- uses: actions/upload-artifact@v3
with:
path: target/release/*.dll
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ members = [
resolver = "2"

[workspace.dependencies]
dll-syringe = "0.15.0"
# I refer to the GH repo directly until https://github.com/OpenByteDev/dll-syringe/issues/10 is merged
dll-syringe = { git = "https://github.com/OpenByteDev/dll-syringe.git", rev = "0508b0f" }
2 changes: 1 addition & 1 deletion agent/src/fxr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::util::{SymbolLookupError, get_module_handle};
const OFFSET_SFX_IMP: usize = 0x3cfa618;
// ??? but it doesn't work without this
const OFFSET_WTF_FXR: usize = 0x20dea50;
// Fills in offets with their pointers
// Fills in offsets with their pointers
const OFFSET_PATCH_OFFSETS: usize = 0x20b5940;
// Retrieves some allocator which we'll use to allocate the required mem for the FXR defs
const OFFSET_GET_FXR_ALLOCATOR: usize = 0x20713b0;
Expand Down
1 change: 0 additions & 1 deletion agent/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ fn string_to_pcwstr(input: String) -> PCWSTR {
#[derive(Debug)]
pub enum SymbolLookupError {
ModuleNotFound,
// SymbolNotFound,
}

/// Finds the module's base address. Used to calculate the offsets to specific offsets in the game's
Expand Down

0 comments on commit 036fbf4

Please sign in to comment.