Skip to content

Commit

Permalink
version 3.1
Browse files Browse the repository at this point in the history
fixed issue where backing out of a folder doesn't update audio files present
  • Loading branch information
James A. Clark committed Sep 15, 2022
1 parent a153998 commit ae89829
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build.bat
build-run.bat
pdxinfobuilder.py
Games/
musik.pdx/pdxinfo
9 changes: 9 additions & 0 deletions src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ function playdate.update()
swapScreenMode()
else
if string.find(files[curRow],"%.mp3") ~= nil or string.find(files[curRow],"%.pda") ~= nil then
audioFiles = {}
for i=1,#files do
if string.find(files[curRow],"%.mp3") ~= nil or string.find(files[curRow],"%.pda") ~= nil then
table.insert(audioFiles,files[i])
Expand Down Expand Up @@ -227,6 +228,14 @@ function playdate.update()

fileList:setSelectedRow(1)
end

audioFiles = {}

for i=1,#files do
if string.find(files[curRow],"%.mp3") ~= nil or string.find(files[curRow],"%.pda") ~= nil then
table.insert(audioFiles,files[i])
end
end
end
elseif screenMode == 1 then
playingMenuItem:setTitle("files")
Expand Down
2 changes: 1 addition & 1 deletion src/pdxinfo
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ author=nanobot567
description=simple music player for playdate
bundleID=com.nano.musik
version=3.0
buildNumber=715
buildNumber=718
imagePath=SystemAssets

0 comments on commit ae89829

Please sign in to comment.