Skip to content

Commit

Permalink
Fixed bug where holding A would take multiple screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceinpalth committed Jun 20, 2017
1 parent 9a570e6 commit bc19c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion romfs/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ while true do

filepath = ""
-- Screenshot if A is pressed
if Controls.check(pad, KEY_A) then
if Controls.check(pad, KEY_A) and not (Controls.check(oldpad,KEY_A)) then
day_value, day, month, year = System.getDate() -- all ints
filepath = "/" .. "3dfetch_" .. day .. "_" .. month .. "_" .. year .. "_" .. photoNum
lastfp = "/" .. "3dfetch_" .. day .. "_" .. month .. "_" .. year .. "_" .. photoNum
Expand Down

0 comments on commit bc19c7e

Please sign in to comment.