Skip to content

Commit 15f8064

Browse files
committed
split lua files into DCS-gRPC and Hooks
To reduce confusion when developing on DCS-gRPC, I've moved the Lua files around to map the directory structure once installed as a mod into DCS more closely. This means: - move `lua/lua5.1` to `src/lua5.1` as it is only necessary to build the Rust code (which also lives inside of `src/) - move all other lua files from `lua/*.lua` into `lua/DCS-gRPC` - except `grpc-hook.lua`, which is moved into `lua/Hooks` This creates a directory where `DCS-gRPC` and `Hooks` live side-by-side as they also do once installed as a mod into DCS.
1 parent c0e8aa3 commit 15f8064

25 files changed

+4
-4
lines changed

.cargo/config.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[env]
22
LUA_LIB_NAME = "lua"
3-
LUA_LIB = { value = "lua/lua5.1/", relative = true }
4-
LUA_INC = { value = "lua/lua5.1/include", relative = true }
3+
LUA_LIB = { value = "src/lua5.1/", relative = true }
4+
LUA_INC = { value = "src/lua5.1/include", relative = true }

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lua/lua5.1/** linguist-vendored
1+
src/lua5.1/** linguist-vendored

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ For development, update the previously added line in `DCS World\Scripts\MissionS
168168
- dofile(lfs.writedir()..[[Scripts\DCS-gRPC\grpc-mission.lua]])
169169
+ GRPC = {
170170
+ dllPath = [[C:\Development\DCS-gRPC\rust-server\target\debug\]],
171-
+ luaPath = [[C:\Development\DCS-gRPC\rust-server\lua\]]
171+
+ luaPath = [[C:\Development\DCS-gRPC\rust-server\lua\DCS-gRPC]]
172172
+ }
173173
+ dofile(GRPC.luaPath .. [[grpc-mission.lua]])
174174
```
File renamed without changes.
File renamed without changes.

lua/grpc.lua lua/DCS-gRPC/grpc.lua

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)