File tree Expand file tree Collapse file tree 9 files changed +156
-3
lines changed Expand file tree Collapse file tree 9 files changed +156
-3
lines changed Original file line number Diff line number Diff line change @@ -631,8 +631,9 @@ to attach them to the start of each source file to most effectively
631631state the exclusion of warranty; and each file should have at least
632632the "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
653654notice 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.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+
120use std:: ffi:: { CStr , c_char, c_void} ;
221use std:: sync:: Mutex ;
322use once_cell:: sync:: Lazy ;
Original file line number Diff line number Diff line change 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+
120use object:: SectionFlags ;
221
322pub fn is_readable ( flags : SectionFlags ) -> bool {
Original file line number Diff line number Diff line change 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+
120use anyhow:: Result ;
221use iced_x86:: { Code , Encoder , Instruction , Register } ;
322use region:: { protect_with_handle, Protection } ;
Original file line number Diff line number Diff line change 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+
120mod s2binlib;
221mod pattern;
322mod flags;
Original file line number Diff line number Diff line change 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+
120use anyhow:: Result ;
221
322#[ cfg( target_os = "windows" ) ]
Original file line number Diff line number Diff line change 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+
120use anyhow:: Result ;
221
322#[ cfg( target_arch = "x86_64" ) ]
Original file line number Diff line number Diff line change 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+
120use std:: { collections:: { btree_map:: VacantEntry , HashMap } , fs, path:: PathBuf } ;
221
322use anyhow:: { anyhow, Result } ;
You can’t perform that action at this time.
0 commit comments