Skip to content

Commit bd8c82b

Browse files
committed
first commit
0 parents  commit bd8c82b

19 files changed

+894587
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
files/*.bin
2+
files/*.json
3+
4+
debug/
5+
target/
6+
7+
Cargo.lock
8+
9+
**/*.rs.bk
10+
11+
*.pdb
12+
13+
.vscode/

BinReader-Rust_image.png

34.4 KB
Loading

Cargo.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "binreader-rust"
3+
version = "0.1.0"
4+
authors = ["autergame"]
5+
6+
[dependencies]
7+
byteorder = "1.4.3"
8+
json = "0.12.4"
9+
dtoa = "1.0.2"
10+
clap = "3.2.15"

LICENCE.md

+325
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,325 @@
1+
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
2+
International Public License
3+
4+
By exercising the Licensed Rights (defined below), You accept and agree
5+
to be bound by the terms and conditions of this Creative Commons
6+
Attribution-NonCommercial-NoDerivatives 4.0 International Public
7+
License ("Public License"). To the extent this Public License may be
8+
interpreted as a contract, You are granted the Licensed Rights in
9+
consideration of Your acceptance of these terms and conditions, and the
10+
Licensor grants You such rights in consideration of benefits the
11+
Licensor receives from making the Licensed Material available under
12+
these terms and conditions.
13+
14+
15+
Section 1 -- Definitions.
16+
17+
a. Adapted Material means material subject to Copyright and Similar
18+
Rights that is derived from or based upon the Licensed Material
19+
and in which the Licensed Material is translated, altered,
20+
arranged, transformed, or otherwise modified in a manner requiring
21+
permission under the Copyright and Similar Rights held by the
22+
Licensor. For purposes of this Public License, where the Licensed
23+
Material is a musical work, performance, or sound recording,
24+
Adapted Material is always produced where the Licensed Material is
25+
synched in timed relation with a moving image.
26+
27+
b. Copyright and Similar Rights means copyright and/or similar rights
28+
closely related to copyright including, without limitation,
29+
performance, broadcast, sound recording, and Sui Generis Database
30+
Rights, without regard to how the rights are labeled or
31+
categorized. For purposes of this Public License, the rights
32+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
33+
Rights.
34+
35+
c. Effective Technological Measures means those measures that, in the
36+
absence of proper authority, may not be circumvented under laws
37+
fulfilling obligations under Article 11 of the WIPO Copyright
38+
Treaty adopted on December 20, 1996, and/or similar international
39+
agreements.
40+
41+
d. Exceptions and Limitations means fair use, fair dealing, and/or
42+
any other exception or limitation to Copyright and Similar Rights
43+
that applies to Your use of the Licensed Material.
44+
45+
e. Licensed Material means the artistic or literary work, database,
46+
or other material to which the Licensor applied this Public
47+
License.
48+
49+
f. Licensed Rights means the rights granted to You subject to the
50+
terms and conditions of this Public License, which are limited to
51+
all Copyright and Similar Rights that apply to Your use of the
52+
Licensed Material and that the Licensor has authority to license.
53+
54+
g. Licensor means the individual(s) or entity(ies) granting rights
55+
under this Public License.
56+
57+
h. NonCommercial means not primarily intended for or directed towards
58+
commercial advantage or monetary compensation. For purposes of
59+
this Public License, the exchange of the Licensed Material for
60+
other material subject to Copyright and Similar Rights by digital
61+
file-sharing or similar means is NonCommercial provided there is
62+
no payment of monetary compensation in connection with the
63+
exchange.
64+
65+
i. Share means to provide material to the public by any means or
66+
process that requires permission under the Licensed Rights, such
67+
as reproduction, public display, public performance, distribution,
68+
dissemination, communication, or importation, and to make material
69+
available to the public including in ways that members of the
70+
public may access the material from a place and at a time
71+
individually chosen by them.
72+
73+
j. Sui Generis Database Rights means rights other than copyright
74+
resulting from Directive 96/9/EC of the European Parliament and of
75+
the Council of 11 March 1996 on the legal protection of databases,
76+
as amended and/or succeeded, as well as other essentially
77+
equivalent rights anywhere in the world.
78+
79+
k. You means the individual or entity exercising the Licensed Rights
80+
under this Public License. Your has a corresponding meaning.
81+
82+
83+
Section 2 -- Scope.
84+
85+
a. License grant.
86+
87+
1. Subject to the terms and conditions of this Public License,
88+
the Licensor hereby grants You a worldwide, royalty-free,
89+
non-sublicensable, non-exclusive, irrevocable license to
90+
exercise the Licensed Rights in the Licensed Material to:
91+
92+
a. reproduce and Share the Licensed Material, in whole or
93+
in part, for NonCommercial purposes only; and
94+
95+
b. produce and reproduce, but not Share, Adapted Material
96+
for NonCommercial purposes only.
97+
98+
2. Exceptions and Limitations. For the avoidance of doubt, where
99+
Exceptions and Limitations apply to Your use, this Public
100+
License does not apply, and You do not need to comply with
101+
its terms and conditions.
102+
103+
3. Term. The term of this Public License is specified in Section
104+
6(a).
105+
106+
4. Media and formats; technical modifications allowed. The
107+
Licensor authorizes You to exercise the Licensed Rights in
108+
all media and formats whether now known or hereafter created,
109+
and to make technical modifications necessary to do so. The
110+
Licensor waives and/or agrees not to assert any right or
111+
authority to forbid You from making technical modifications
112+
necessary to exercise the Licensed Rights, including
113+
technical modifications necessary to circumvent Effective
114+
Technological Measures. For purposes of this Public License,
115+
simply making modifications authorized by this Section 2(a)
116+
(4) never produces Adapted Material.
117+
118+
5. Downstream recipients.
119+
120+
a. Offer from the Licensor -- Licensed Material. Every
121+
recipient of the Licensed Material automatically
122+
receives an offer from the Licensor to exercise the
123+
Licensed Rights under the terms and conditions of this
124+
Public License.
125+
126+
b. No downstream restrictions. You may not offer or impose
127+
any additional or different terms or conditions on, or
128+
apply any Effective Technological Measures to, the
129+
Licensed Material if doing so restricts exercise of the
130+
Licensed Rights by any recipient of the Licensed
131+
Material.
132+
133+
6. No endorsement. Nothing in this Public License constitutes or
134+
may be construed as permission to assert or imply that You
135+
are, or that Your use of the Licensed Material is, connected
136+
with, or sponsored, endorsed, or granted official status by,
137+
the Licensor or others designated to receive attribution as
138+
provided in Section 3(a)(1)(A)(i).
139+
140+
b. Other rights.
141+
142+
1. Moral rights, such as the right of integrity, are not
143+
licensed under this Public License, nor are publicity,
144+
privacy, and/or other similar personality rights; however, to
145+
the extent possible, the Licensor waives and/or agrees not to
146+
assert any such rights held by the Licensor to the limited
147+
extent necessary to allow You to exercise the Licensed
148+
Rights, but not otherwise.
149+
150+
2. Patent and trademark rights are not licensed under this
151+
Public License.
152+
153+
3. To the extent possible, the Licensor waives any right to
154+
collect royalties from You for the exercise of the Licensed
155+
Rights, whether directly or through a collecting society
156+
under any voluntary or waivable statutory or compulsory
157+
licensing scheme. In all other cases the Licensor expressly
158+
reserves any right to collect such royalties, including when
159+
the Licensed Material is used other than for NonCommercial
160+
purposes.
161+
162+
163+
Section 3 -- License Conditions.
164+
165+
Your exercise of the Licensed Rights is expressly made subject to the
166+
following conditions.
167+
168+
a. Attribution.
169+
170+
1. If You Share the Licensed Material, You must:
171+
172+
a. retain the following if it is supplied by the Licensor
173+
with the Licensed Material:
174+
175+
i. identification of the creator(s) of the Licensed
176+
Material and any others designated to receive
177+
attribution, in any reasonable manner requested by
178+
the Licensor (including by pseudonym if
179+
designated);
180+
181+
ii. a copyright notice;
182+
183+
iii. a notice that refers to this Public License;
184+
185+
iv. a notice that refers to the disclaimer of
186+
warranties;
187+
188+
v. a URI or hyperlink to the Licensed Material to the
189+
extent reasonably practicable;
190+
191+
b. indicate if You modified the Licensed Material and
192+
retain an indication of any previous modifications; and
193+
194+
c. indicate the Licensed Material is licensed under this
195+
Public License, and include the text of, or the URI or
196+
hyperlink to, this Public License.
197+
198+
For the avoidance of doubt, You do not have permission under
199+
this Public License to Share Adapted Material.
200+
201+
2. You may satisfy the conditions in Section 3(a)(1) in any
202+
reasonable manner based on the medium, means, and context in
203+
which You Share the Licensed Material. For example, it may be
204+
reasonable to satisfy the conditions by providing a URI or
205+
hyperlink to a resource that includes the required
206+
information.
207+
208+
3. If requested by the Licensor, You must remove any of the
209+
information required by Section 3(a)(1)(A) to the extent
210+
reasonably practicable.
211+
212+
213+
Section 4 -- Sui Generis Database Rights.
214+
215+
Where the Licensed Rights include Sui Generis Database Rights that
216+
apply to Your use of the Licensed Material:
217+
218+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
219+
to extract, reuse, reproduce, and Share all or a substantial
220+
portion of the contents of the database for NonCommercial purposes
221+
only and provided You do not Share Adapted Material;
222+
223+
b. if You include all or a substantial portion of the database
224+
contents in a database in which You have Sui Generis Database
225+
Rights, then the database in which You have Sui Generis Database
226+
Rights (but not its individual contents) is Adapted Material; and
227+
228+
c. You must comply with the conditions in Section 3(a) if You Share
229+
all or a substantial portion of the contents of the database.
230+
231+
For the avoidance of doubt, this Section 4 supplements and does not
232+
replace Your obligations under this Public License where the Licensed
233+
Rights include other Copyright and Similar Rights.
234+
235+
236+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
237+
238+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
239+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
240+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
241+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
242+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
243+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
244+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
245+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
246+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
247+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
248+
249+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
250+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
251+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
252+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
253+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
254+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
255+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
256+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
257+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
258+
259+
c. The disclaimer of warranties and limitation of liability provided
260+
above shall be interpreted in a manner that, to the extent
261+
possible, most closely approximates an absolute disclaimer and
262+
waiver of all liability.
263+
264+
265+
Section 6 -- Term and Termination.
266+
267+
a. This Public License applies for the term of the Copyright and
268+
Similar Rights licensed here. However, if You fail to comply with
269+
this Public License, then Your rights under this Public License
270+
terminate automatically.
271+
272+
b. Where Your right to use the Licensed Material has terminated under
273+
Section 6(a), it reinstates:
274+
275+
1. automatically as of the date the violation is cured, provided
276+
it is cured within 30 days of Your discovery of the
277+
violation; or
278+
279+
2. upon express reinstatement by the Licensor.
280+
281+
For the avoidance of doubt, this Section 6(b) does not affect any
282+
right the Licensor may have to seek remedies for Your violations
283+
of this Public License.
284+
285+
c. For the avoidance of doubt, the Licensor may also offer the
286+
Licensed Material under separate terms or conditions or stop
287+
distributing the Licensed Material at any time; however, doing so
288+
will not terminate this Public License.
289+
290+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
291+
License.
292+
293+
294+
Section 7 -- Other Terms and Conditions.
295+
296+
a. The Licensor shall not be bound by any additional or different
297+
terms or conditions communicated by You unless expressly agreed.
298+
299+
b. Any arrangements, understandings, or agreements regarding the
300+
Licensed Material not stated herein are separate from and
301+
independent of the terms and conditions of this Public License.
302+
303+
304+
Section 8 -- Interpretation.
305+
306+
a. For the avoidance of doubt, this Public License does not, and
307+
shall not be interpreted to, reduce, limit, restrict, or impose
308+
conditions on any use of the Licensed Material that could lawfully
309+
be made without permission under this Public License.
310+
311+
b. To the extent possible, if any provision of this Public License is
312+
deemed unenforceable, it shall be automatically reformed to the
313+
minimum extent necessary to make it enforceable. If the provision
314+
cannot be reformed, it shall be severed from this Public License
315+
without affecting the enforceability of the remaining terms and
316+
conditions.
317+
318+
c. No term or condition of this Public License will be waived and no
319+
failure to comply consented to unless expressly agreed to by the
320+
Licensor.
321+
322+
d. Nothing in this Public License constitutes or may be interpreted
323+
as a limitation upon, or waiver of, any privileges and immunities
324+
that apply to the Licensor or You, including from the legal
325+
processes of any jurisdiction or authority.

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# BinReader-Rust
2+
League Of Legends Bin Reader And Writter In Rust
3+
4+
### Hashes at:
5+
* https://github.com/CommunityDragon/CDTB/tree/master/cdragontoolbox
6+
7+
## Help From:
8+
* https://github.com/autergame/BinReader
9+
* https://github.com/moonshadow565/ritobin
10+
* https://github.com/LoL-Fantome/LeagueToolkit
11+
* https://github.com/CommunityDragon/CDTB
12+
* https://github.com/DaveGamble/cJSON
13+
14+
## How to use:
15+
16+
decode bin to json:
17+
```
18+
binreader-rust decode skin0.bin skin0.json
19+
```
20+
21+
encode json to bin:
22+
```
23+
binreader-rust encode skin0.json skin0.bin
24+
```
25+
26+
![alt text](BinReader-Rust_image.png)

0 commit comments

Comments
 (0)