Skip to content

Commit a36a8b5

Browse files
committed
fix deprecated sim.getStringParameter
1 parent e709fd3 commit a36a8b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Events capture.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ function sysCall_event(eventData)
3737
end
3838

3939
function export()
40-
local scenePath = sim.getStringParameter(sim.stringparam_scene_path)
41-
local sceneName = sim.getStringParameter(sim.stringparam_scene_name):match("(.+)%..+")
40+
local scenePath = sim.getStringParam(sim.stringparam_scene_path)
41+
local sceneName = sim.getStringParam(sim.stringparam_scene_name):match("(.+)%..+")
4242
if sceneName == nil then sceneName = 'untitled' end
4343
local fileNames = simUI.fileDialog(
4444
simUI.filedialog_type.save, 'Export events dump...', scenePath,

Events dump exporter.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function sysCall_event(data)
1616
end
1717

1818
function export()
19-
local scenePath = sim.getStringParameter(sim.stringparam_scene_path)
20-
local sceneName = sim.getStringParameter(sim.stringparam_scene_name):match("(.+)%..+")
19+
local scenePath = sim.getStringParam(sim.stringparam_scene_path)
20+
local sceneName = sim.getStringParam(sim.stringparam_scene_name):match("(.+)%..+")
2121
if sceneName == nil then sceneName = 'untitled' end
2222
local fileNames = simUI.fileDialog(
2323
simUI.filedialog_type.save, 'Export events dump...', scenePath,

0 commit comments

Comments
 (0)