aboutsummaryrefslogtreecommitdiff
path: root/files.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-06-08 14:32:57 -0700
committer1029chris <1029chris@gmail.com>2016-06-08 14:32:57 -0700
commit7b0bc171d659ff4a0dddc724860fdd09f42b08b3 (patch)
treeb0a0a6961d838ffade9773ed85f1b902f7c6ddce /files.lua
parent0c3a6ca6190ad47e5fbe1dfaa45c45aa07b4ced9 (diff)
Added video player
Added 1 video for video player to play
Diffstat (limited to 'files.lua')
-rw-r--r--files.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/files.lua b/files.lua
index 1192333..fe6e130 100644
--- a/files.lua
+++ b/files.lua
@@ -84,6 +84,13 @@ function updateFiles()
end
openFileWindow(7)
elseif files == f.videos then
+ if i == 1 and vplay.v ~= video.attacktortoise then
+ if vplay.v ~= 0 then
+ vplay.v:stop()
+ end
+ vplay.v = video.attacktortoise
+ vplay.p = true
+ end
openFileWindow(8)
elseif files == f.music then
if i == 1 and mplay.m ~= music.chill then