diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2013-11-15 10:10:48 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2013-11-15 10:10:48 +0100 |
commit | 1f08d9e98e44acd50a8bf05f9d3aed0f42481cf7 (patch) | |
tree | 62cdb9d3b0d33dace01e8f1c9fb6f58973793503 | |
parent | 17ef33a3fc62a31565193320f1f5583077403b19 (diff) |
Cleanup
-rw-r--r--[-rwxr-xr-x] | scripts/slipro_gus.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/slipro_gus.lua b/scripts/slipro_gus.lua index cd281d6..fa6f1f7 100755..100644 --- a/scripts/slipro_gus.lua +++ b/scripts/slipro_gus.lua @@ -50,6 +50,7 @@ function global_custom_enterSessionEvent(devType) --print (string.format("session: %s",GetContextInfo("session")))
print ()
if GetContextInfo("ospcustom") then print ("has ospcustom") end
+
print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod")))
print (string.format("ospmethod : %s",GetContextInfo("ospmethod")))
print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod")))
@@ -57,7 +58,7 @@ function global_custom_enterSessionEvent(devType) end
function global_custom_exitSessionEvent(devType)
- -- type your custom script on session ending, here
+ -- type your custom script on session ending, here
if GetContextInfo("ospcustom") then print ("has ospcustom") end
print ()
print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod")))
@@ -65,7 +66,13 @@ function global_custom_exitSessionEvent(devType) print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod")))
print ( "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^")
print ()
- return 2
+
+ --my_setups=io.open("gus_cars.cfg", "a")
+ --my_setups:write(GetContextInfo("carname"), " shiftligts ", GetContextInfo("shiftlightsmethod"), "\n")
+ --my_setups:write(GetContextInfo("carname"), " speedlimiter ", GetContextInfo("speedlimitermethod"), "\n")
+ --my_setups:close()
+
+ return 2
end
|