Skip to content

Commit 95a6675

Browse files
committed
Merge branch 'dev'
2 parents 9024c01 + f05bc6e commit 95a6675

File tree

9 files changed

+156
-3
lines changed

9 files changed

+156
-3
lines changed

LICENSE

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,9 @@ to attach them to the start of each source file to most effectively
631631
state the exclusion of warranty; and each file should have at least
632632
the "copyright" line and a pointer to where the full notice is found.
633633

634-
<one line to give the program's name and a brief idea of what it does.>
635-
Copyright (C) <year> <name of author>
634+
S2BinLib - A static library that helps resolving memory from binary file
635+
and map to absolute memory address, targeting source 2 game engine.
636+
Copyright (C) 2025 samyyc
636637

637638
This program is free software: you can redistribute it and/or modify
638639
it under the terms of the GNU General Public License as published by
@@ -652,7 +653,7 @@ Also add information on how to contact you by electronic and paper mail.
652653
If the program does terminal interaction, make it output a short
653654
notice like this when it starts in an interactive mode:
654655

655-
<program> Copyright (C) <year> <name of author>
656+
S2BinLib Copyright (C) 2025 samyyc
656657
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657658
This is free software, and you are welcome to redistribute it
658659
under certain conditions; type `show c' for details.

s2binlib.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/************************************************************************************
2+
* S2BinLib - A static library that helps resolving memory from binary file
3+
* and map to absolute memory address, targeting source 2 game engine.
4+
* Copyright (C) 2025 samyyc
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
***********************************************************************************/
19+
120
#ifndef S2BINLIB_H
221
#define S2BINLIB_H
322

src/c_bindings.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/************************************************************************************
2+
* S2BinLib - A static library that helps resolving memory from binary file
3+
* and map to absolute memory address, targeting source 2 game engine.
4+
* Copyright (C) 2025 samyyc
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
***********************************************************************************/
19+
120
use std::ffi::{CStr, c_char, c_void};
221
use std::sync::Mutex;
322
use once_cell::sync::Lazy;

src/flags.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/************************************************************************************
2+
* S2BinLib - A static library that helps resolving memory from binary file
3+
* and map to absolute memory address, targeting source 2 game engine.
4+
* Copyright (C) 2025 samyyc
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
***********************************************************************************/
19+
120
use object::SectionFlags;
221

322
pub fn is_readable(flags: SectionFlags) -> bool {

src/jit.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/************************************************************************************
2+
* S2BinLib - A static library that helps resolving memory from binary file
3+
* and map to absolute memory address, targeting source 2 game engine.
4+
* Copyright (C) 2025 samyyc
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
***********************************************************************************/
19+
120
use anyhow::Result;
221
use iced_x86::{Code, Encoder, Instruction, Register};
322
use region::{protect_with_handle, Protection};

src/lib.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/************************************************************************************
2+
* S2BinLib - A static library that helps resolving memory from binary file
3+
* and map to absolute memory address, targeting source 2 game engine.
4+
* Copyright (C) 2025 samyyc
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
***********************************************************************************/
19+
120
mod s2binlib;
221
mod pattern;
322
mod flags;

src/memory.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/************************************************************************************
2+
* S2BinLib - A static library that helps resolving memory from binary file
3+
* and map to absolute memory address, targeting source 2 game engine.
4+
* Copyright (C) 2025 samyyc
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
***********************************************************************************/
19+
120
use anyhow::Result;
221

322
#[cfg(target_os = "windows")]

src/pattern.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/************************************************************************************
2+
* S2BinLib - A static library that helps resolving memory from binary file
3+
* and map to absolute memory address, targeting source 2 game engine.
4+
* Copyright (C) 2025 samyyc
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
***********************************************************************************/
19+
120
use anyhow::Result;
221

322
#[cfg(target_arch = "x86_64")]

src/s2binlib.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/************************************************************************************
2+
* S2BinLib - A static library that helps resolving memory from binary file
3+
* and map to absolute memory address, targeting source 2 game engine.
4+
* Copyright (C) 2025 samyyc
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
***********************************************************************************/
19+
120
use std::{collections::{btree_map::VacantEntry, HashMap}, fs, path::PathBuf};
221

322
use anyhow::{anyhow, Result};

0 commit comments

Comments
 (0)