mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-04-05 00:25:36 +08:00
Rename util
directory to os
This commit is contained in:
parent
5ea4fd7796
commit
0bc7cf7b20
@ -8,7 +8,7 @@ use simplelog::{debug, info};
|
||||
use super::{generate_files, Entries, Entry};
|
||||
|
||||
use crate::builder::FileBuilderEnum;
|
||||
use crate::util::{Address, Process};
|
||||
use crate::os::{Address, Process};
|
||||
|
||||
#[derive(Debug)]
|
||||
#[repr(C)]
|
||||
|
@ -9,7 +9,7 @@ use super::{generate_files, Entries, Entry};
|
||||
use crate::builder::FileBuilderEnum;
|
||||
use crate::config::Config;
|
||||
use crate::config::Operation::*;
|
||||
use crate::util::Process;
|
||||
use crate::os::Process;
|
||||
|
||||
pub fn dump_offsets(
|
||||
process: &Process,
|
||||
|
@ -5,8 +5,8 @@ use simplelog::{debug, info};
|
||||
use super::{generate_files, Entries, Entry};
|
||||
|
||||
use crate::builder::FileBuilderEnum;
|
||||
use crate::os::Process;
|
||||
use crate::sdk::SchemaSystem;
|
||||
use crate::util::Process;
|
||||
|
||||
pub fn dump_schemas(
|
||||
process: &Process,
|
||||
|
@ -14,13 +14,13 @@ use simplelog::{info, ColorChoice, ConfigBuilder, TermLogger, TerminalMode};
|
||||
|
||||
use builder::*;
|
||||
use dumper::{dump_interfaces, dump_offsets, dump_schemas};
|
||||
use util::Process;
|
||||
use os::Process;
|
||||
|
||||
mod builder;
|
||||
mod config;
|
||||
mod dumper;
|
||||
mod os;
|
||||
mod sdk;
|
||||
mod util;
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
#[command(name = "cs2-dumper")]
|
||||
|
@ -2,7 +2,7 @@ use anyhow::Result;
|
||||
|
||||
use super::SchemaType;
|
||||
|
||||
use crate::util::{Address, Process};
|
||||
use crate::os::{Address, Process};
|
||||
|
||||
pub struct SchemaClassFieldData<'a> {
|
||||
process: &'a Process,
|
||||
|
@ -2,7 +2,7 @@ use anyhow::Result;
|
||||
|
||||
use super::SchemaClassFieldData;
|
||||
|
||||
use crate::util::{Address, Process};
|
||||
use crate::os::{Address, Process};
|
||||
|
||||
pub struct SchemaClassInfo<'a> {
|
||||
process: &'a Process,
|
||||
|
@ -4,7 +4,7 @@ use anyhow::{bail, Result};
|
||||
|
||||
use super::SchemaSystemTypeScope;
|
||||
|
||||
use crate::util::{Address, Process};
|
||||
use crate::os::{Address, Process};
|
||||
|
||||
pub struct SchemaSystem<'a> {
|
||||
process: &'a Process,
|
||||
|
@ -2,7 +2,7 @@ use anyhow::Result;
|
||||
|
||||
use super::{SchemaClassInfo, SchemaTypeDeclaredClass, UtlTsHash};
|
||||
|
||||
use crate::util::{Address, Process};
|
||||
use crate::os::{Address, Process};
|
||||
|
||||
pub struct SchemaSystemTypeScope<'a> {
|
||||
process: &'a Process,
|
||||
|
@ -6,7 +6,7 @@ use lazy_static::lazy_static;
|
||||
|
||||
use regex::Regex;
|
||||
|
||||
use crate::util::{Address, Process};
|
||||
use crate::os::{Address, Process};
|
||||
|
||||
const TYPE_MAP: &[(&'static str, &'static str)] = &[
|
||||
("uint8", "uint8_t"),
|
||||
|
@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
|
||||
use crate::util::{Address, Process};
|
||||
use crate::os::{Address, Process};
|
||||
|
||||
pub struct SchemaTypeDeclaredClass<'a> {
|
||||
process: &'a Process,
|
||||
|
@ -2,7 +2,7 @@ use std::mem::offset_of;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
use crate::util::Process;
|
||||
use crate::os::Process;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[repr(C)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user