mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'record-audio' permission
This commit is contained in:
parent
97d2623a06
commit
b3ae6eb59a
6 changed files with 25 additions and 6 deletions
|
|
@ -67,5 +67,8 @@ function on_open()
|
|||
table.insert(devices, {value=name, text=name})
|
||||
end
|
||||
selectbox.options = devices
|
||||
selectbox.value = audio.__get_input_info().device_specifier
|
||||
local info = audio.__get_input_info()
|
||||
if info then
|
||||
selectbox.value = info.device_specifier
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
name = "default"
|
||||
base_packs = ["base"]
|
||||
permissions = [
|
||||
"network"
|
||||
"network",
|
||||
"record-audio"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue