Skip to content

Commit

Permalink
Metadata Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
WarLord211 authored May 28, 2020
1 parent d0c6517 commit d6a4da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Scripts/DCS-BIOS/lib/MetadataEnd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

BIOS.protocol.beginModule("MetadataEnd", 0xfffe)

local defineString = BIOS.util.defineString
local defineIntegerFromGetter = BIOS.util.defineIntegerFromGetter

-- "data" will be set by the Protocol module
Expand All @@ -25,4 +24,4 @@ local data = moduleBeingDefined.data
defineIntegerFromGetter("_UPDATE_COUNTER", function() return data.updateCounter end, 255, "Metadata", "Update Counter")
defineIntegerFromGetter("_UPDATE_SKIP_COUNTER", function() return data.updateSkipCounter end, 255, "Metadata", "Update Skip Counter")

BIOS.protocol.endModule()
BIOS.protocol.endModule()
3 changes: 1 addition & 2 deletions Scripts/DCS-BIOS/lib/MetadataStart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
BIOS.protocol.beginModule("MetadataStart", 0x0000)

local defineString = BIOS.util.defineString
local defineIntegerFromGetter = BIOS.util.defineIntegerFromGetter

-- "data" will be set by the Protocol module
moduleBeingDefined.data = {}
local data = moduleBeingDefined.data

defineString("_ACFT_NAME", function() return data.acftName .. string.char(0) end, 24, "Metadata", "Aircraft Name (or NONE), null-terminated")

BIOS.protocol.endModule()
BIOS.protocol.endModule()

0 comments on commit d6a4da2

Please sign in to comment.