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 super::{generate_files, Entries, Entry};
|
||||||
|
|
||||||
use crate::builder::FileBuilderEnum;
|
use crate::builder::FileBuilderEnum;
|
||||||
use crate::util::{Address, Process};
|
use crate::os::{Address, Process};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
@ -9,7 +9,7 @@ use super::{generate_files, Entries, Entry};
|
|||||||
use crate::builder::FileBuilderEnum;
|
use crate::builder::FileBuilderEnum;
|
||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
use crate::config::Operation::*;
|
use crate::config::Operation::*;
|
||||||
use crate::util::Process;
|
use crate::os::Process;
|
||||||
|
|
||||||
pub fn dump_offsets(
|
pub fn dump_offsets(
|
||||||
process: &Process,
|
process: &Process,
|
||||||
|
@ -5,8 +5,8 @@ use simplelog::{debug, info};
|
|||||||
use super::{generate_files, Entries, Entry};
|
use super::{generate_files, Entries, Entry};
|
||||||
|
|
||||||
use crate::builder::FileBuilderEnum;
|
use crate::builder::FileBuilderEnum;
|
||||||
|
use crate::os::Process;
|
||||||
use crate::sdk::SchemaSystem;
|
use crate::sdk::SchemaSystem;
|
||||||
use crate::util::Process;
|
|
||||||
|
|
||||||
pub fn dump_schemas(
|
pub fn dump_schemas(
|
||||||
process: &Process,
|
process: &Process,
|
||||||
|
@ -14,13 +14,13 @@ use simplelog::{info, ColorChoice, ConfigBuilder, TermLogger, TerminalMode};
|
|||||||
|
|
||||||
use builder::*;
|
use builder::*;
|
||||||
use dumper::{dump_interfaces, dump_offsets, dump_schemas};
|
use dumper::{dump_interfaces, dump_offsets, dump_schemas};
|
||||||
use util::Process;
|
use os::Process;
|
||||||
|
|
||||||
mod builder;
|
mod builder;
|
||||||
mod config;
|
mod config;
|
||||||
mod dumper;
|
mod dumper;
|
||||||
|
mod os;
|
||||||
mod sdk;
|
mod sdk;
|
||||||
mod util;
|
|
||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
#[command(name = "cs2-dumper")]
|
#[command(name = "cs2-dumper")]
|
||||||
|
@ -2,7 +2,7 @@ use anyhow::Result;
|
|||||||
|
|
||||||
use super::SchemaType;
|
use super::SchemaType;
|
||||||
|
|
||||||
use crate::util::{Address, Process};
|
use crate::os::{Address, Process};
|
||||||
|
|
||||||
pub struct SchemaClassFieldData<'a> {
|
pub struct SchemaClassFieldData<'a> {
|
||||||
process: &'a Process,
|
process: &'a Process,
|
||||||
|
@ -2,7 +2,7 @@ use anyhow::Result;
|
|||||||
|
|
||||||
use super::SchemaClassFieldData;
|
use super::SchemaClassFieldData;
|
||||||
|
|
||||||
use crate::util::{Address, Process};
|
use crate::os::{Address, Process};
|
||||||
|
|
||||||
pub struct SchemaClassInfo<'a> {
|
pub struct SchemaClassInfo<'a> {
|
||||||
process: &'a Process,
|
process: &'a Process,
|
||||||
|
@ -4,7 +4,7 @@ use anyhow::{bail, Result};
|
|||||||
|
|
||||||
use super::SchemaSystemTypeScope;
|
use super::SchemaSystemTypeScope;
|
||||||
|
|
||||||
use crate::util::{Address, Process};
|
use crate::os::{Address, Process};
|
||||||
|
|
||||||
pub struct SchemaSystem<'a> {
|
pub struct SchemaSystem<'a> {
|
||||||
process: &'a Process,
|
process: &'a Process,
|
||||||
|
@ -2,7 +2,7 @@ use anyhow::Result;
|
|||||||
|
|
||||||
use super::{SchemaClassInfo, SchemaTypeDeclaredClass, UtlTsHash};
|
use super::{SchemaClassInfo, SchemaTypeDeclaredClass, UtlTsHash};
|
||||||
|
|
||||||
use crate::util::{Address, Process};
|
use crate::os::{Address, Process};
|
||||||
|
|
||||||
pub struct SchemaSystemTypeScope<'a> {
|
pub struct SchemaSystemTypeScope<'a> {
|
||||||
process: &'a Process,
|
process: &'a Process,
|
||||||
|
@ -6,7 +6,7 @@ use lazy_static::lazy_static;
|
|||||||
|
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
|
|
||||||
use crate::util::{Address, Process};
|
use crate::os::{Address, Process};
|
||||||
|
|
||||||
const TYPE_MAP: &[(&'static str, &'static str)] = &[
|
const TYPE_MAP: &[(&'static str, &'static str)] = &[
|
||||||
("uint8", "uint8_t"),
|
("uint8", "uint8_t"),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
|
|
||||||
use crate::util::{Address, Process};
|
use crate::os::{Address, Process};
|
||||||
|
|
||||||
pub struct SchemaTypeDeclaredClass<'a> {
|
pub struct SchemaTypeDeclaredClass<'a> {
|
||||||
process: &'a Process,
|
process: &'a Process,
|
||||||
|
@ -2,7 +2,7 @@ use std::mem::offset_of;
|
|||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
|
|
||||||
use crate::util::Process;
|
use crate::os::Process;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user