mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-12 10:48:53 +03:00
Reorganize project to a workspace
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
target/
|
||||
Cargo.lock
|
||||
|
||||
.vscode/
|
||||
.idea/
|
7
Cargo.toml
Normal file
7
Cargo.toml
Normal file
@ -0,0 +1,7 @@
|
||||
[workspace]
|
||||
|
||||
members = [
|
||||
"notcuda",
|
||||
"notcuda_inject",
|
||||
"notcuda_redirect",
|
||||
]
|
2
notcuda/.gitignore
vendored
2
notcuda/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
/target
|
||||
Cargo.lock
|
2
notcuda_inject/.gitignore
vendored
2
notcuda_inject/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
/target
|
||||
Cargo.lock
|
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "notcuda"
|
||||
name = "notcuda_inject"
|
||||
version = "0.0.0"
|
||||
authors = ["Andrzej Janik <vosen@vosen.pl>"]
|
||||
edition = "2018"
|
||||
@ -9,6 +9,7 @@ name = "notcuda"
|
||||
path = "src/bin.rs"
|
||||
|
||||
[dependencies]
|
||||
notcuda_redirect = { path = "../notcuda_redirect" }
|
||||
detours-sys = "0.1"
|
||||
clap = "2.33"
|
||||
|
||||
|
@ -65,10 +65,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
ptr::null(),
|
||||
&mut startup_info as *mut _,
|
||||
&mut proc_info as *mut _,
|
||||
"nvcuda_redirect.dll".as_ptr() as *const i8,
|
||||
"notcuda_redirect.dll\0".as_ptr() as *const i8,
|
||||
Option::None
|
||||
),
|
||||
|x| x == 0
|
||||
|x| x != 0
|
||||
);
|
||||
os_call!(ResumeThread(proc_info.hThread), |x| x as i32 != -1);
|
||||
os_call!(WaitForSingleObject(proc_info.hProcess, INFINITE), |x| x != WAIT_FAILED);
|
||||
|
2
notcuda_redirect/.gitignore
vendored
2
notcuda_redirect/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
/target
|
||||
Cargo.lock
|
Reference in New Issue
Block a user