-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7faa273
commit 84b95b3
Showing
4 changed files
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use crate::emu; | ||
use crate::serialization; | ||
use crate::winapi64::kernel32; | ||
//use crate::winapi32::helper; | ||
|
||
pub fn gateway(addr: u64, emu: &mut emu::Emu) -> String { | ||
let api = kernel32::guess_api_name(emu, addr); | ||
match api.as_str() { | ||
_ => { | ||
if emu.cfg.skip_unimplemented == false { | ||
if emu.cfg.dump_on_exit && emu.cfg.dump_filename.is_some() { | ||
serialization::Serialization::dump_to_file(&emu, emu.cfg.dump_filename.as_ref().unwrap()); | ||
} | ||
|
||
unimplemented!("atemmpt to call unimplemented API 0x{:x} {}", addr, api); | ||
} | ||
log::warn!("calling unimplemented API 0x{:x} {}", addr, api); | ||
return api; | ||
} | ||
} | ||
|
||
String::new() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters