Skip to content

Commit

Permalink
me when I forget to add a file and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
catornot committed Feb 4, 2024
1 parent 1971e90 commit 3c75a8e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/test_rrplug.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cargo test --target x86_64-pc-windows-msvc
2 changes: 1 addition & 1 deletion .github/workflows/rrplug-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
run: |
cargo clippy
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose --target x86_64-pc-windows-msvc
6 changes: 3 additions & 3 deletions src/interfaces/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ use crate::{
///
/// # Example
/// ```
/// # use super::*;
/// # use self::*;
/// # use rrplug::create_external_interface;
/// # use rrplug::interfaces::external::*;
/// create_external_interface! {
/// pub ExternalInterface + module_to_contain_it => {
/// pub fn smth() -> ();
/// pub fn add(num1: i32, num2: i32) -> i32;
/// }
/// }
///
/// let interface = ExternalInterface::from_dll_name("some_dll.dll", "ExternalInterface");
/// let interface = unsafe { ExternalInterface::from_dll_name("some_dll.dll", "ExternalInterface") };
/// ```
#[macro_export]
macro_rules! create_external_interface {
Expand Down
11 changes: 11 additions & 0 deletions src/mid/server/cplayer.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//! stuff related to `CPlayer` entity
use std::ffi::c_void;

use crate::offset_functions;

offset_functions! {
CPLAYER_VTABLE + CPlayerVtable for WhichDll::Engine => {
vtable = *const c_void where offset(0x0); // TODO : rigth offset
}
}

0 comments on commit 3c75a8e

Please sign in to comment.