Skip to content

Commit 7256989

Browse files
authored
Add jump_true method to ProcDesc
1 parent 983d2e7 commit 7256989

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/proc/desc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ impl ProcDesc {
5252
unsafe { proc_wait_while_false(method, None) }
5353
}
5454

55+
pub fn jump_true<T>(method: &'static mut ProcBoolMethod<T>) -> &'static mut ProcDesc {
56+
unsafe { proc_jump_true(method, None) }
57+
}
58+
5559
// pub fn function_call<T>(function: &'static mut ProcVoidFunction<T>) -> Il2CppResult<&'static mut ProcDescCall<T>> {
5660
// ProcDescCall::<T>::instantiate().map(|desc| {
5761
// desc.desc.ty = ProcDescType::Call;

0 commit comments

Comments
 (0)