Compare commits

...

2 commits

Author SHA1 Message Date
5440e129de
chg: rename package 2023-04-30 20:14:04 +08:00
05f70828f9
move: sdk path 2023-04-30 20:12:11 +08:00
5 changed files with 19 additions and 19 deletions

4
.gitmodules vendored
View file

@ -1,3 +1,3 @@
[submodule "sdk"] [submodule "scs_rs/sdk"]
path = sdk path = scs_rs/sdk
url = https://git.rainplus.org/LuoRain/scs-sdk.git url = https://git.rainplus.org/LuoRain/scs-sdk.git

16
Cargo.lock generated
View file

@ -189,14 +189,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
[[package]]
name = "scs-rs"
version = "0.2.0"
dependencies = [
"bindgen",
"scs-rs-proc-macros",
]
[[package]] [[package]]
name = "scs-rs-proc-macros" name = "scs-rs-proc-macros"
version = "0.1.0" version = "0.1.0"
@ -205,6 +197,14 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "scs-sdk-rs"
version = "0.2.0"
dependencies = [
"bindgen",
"scs-rs-proc-macros",
]
[[package]] [[package]]
name = "shlex" name = "shlex"
version = "1.1.0" version = "1.1.0"

View file

@ -1,5 +1,5 @@
[package] [package]
name = "scs-rs" name = "scs-sdk-rs"
version = "0.2.0" version = "0.2.0"
edition = "2021" edition = "2021"
authors = ["LuoRain <luotianyi@luotianyi.me>"] authors = ["LuoRain <luotianyi@luotianyi.me>"]

View file

View file

@ -1,13 +1,13 @@
/* America Truck Simulator */ /* America Truck Simulator */
#include "../sdk/include/amtrucks/scssdk_ats.h" #include "./sdk/include/amtrucks/scssdk_ats.h"
#include "../sdk/include/amtrucks/scssdk_input_ats.h" #include "./sdk/include/amtrucks/scssdk_input_ats.h"
#include "../sdk/include/amtrucks/scssdk_telemetry_ats.h" #include "./sdk/include/amtrucks/scssdk_telemetry_ats.h"
/* Euro Truck Simulator 2 */ /* Euro Truck Simulator 2 */
#include "../sdk/include/eurotrucks2/scssdk_eut2.h" #include "./sdk/include/eurotrucks2/scssdk_eut2.h"
#include "../sdk/include/eurotrucks2/scssdk_input_eut2.h" #include "./sdk/include/eurotrucks2/scssdk_input_eut2.h"
#include "../sdk/include/eurotrucks2/scssdk_telemetry_eut2.h" #include "./sdk/include/eurotrucks2/scssdk_telemetry_eut2.h"
/* SDK */ /* SDK */
#include "../sdk/include/scssdk_input.h" #include "./sdk/include/scssdk_input.h"
#include "../sdk/include/scssdk_telemetry.h" #include "./sdk/include/scssdk_telemetry.h"