multiple binary and code refactor

This commit is contained in:
2020-05-19 03:52:18 +07:00
parent 3214e79d63
commit dae10a5312
9 changed files with 146 additions and 162 deletions

View File

@ -299,7 +299,15 @@ pub fn download_pdb() {
pub fn parse_pdb() -> PdbStore {
// TODO: Detect pdb file and ntoskrnl file version differs
// The guid of ntoskrnl and pdb file are different
// Use a folder at %APPDATA% to save pdb files
// %APPDATA%\lpus
// |--ntoskrnl
// |--|--GUID
// |--|--|--ntkrnlmp.pdb
// |--file
// |--|--GUID
// |--|--|--file.pdb
// TODO: Turn function to Result to handle error
if !Path::new(PDBNAME).exists() {
download_pdb();
}