Commit: e3385bed72d066aaa3f06416a8da183ad66bff6a Parent: 367cbdf9e8209722ca95d9fef06375db5a0d4cf1 Author: Vi Grey Date: 2020-09-16 16:19 UTC Summary: Turn double space into tabs consistently bin/lua/fceux.lua | 22 +++++++++++----------- bin/lua/mesen.lua | 20 ++++++++++---------- lua/fceux.lua | 22 +++++++++++----------- lua/mesen.lua | 20 ++++++++++---------- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/bin/lua/fceux.lua b/bin/lua/fceux.lua index 8547a14..2d3cab4 100644 --- a/bin/lua/fceux.lua +++ b/bin/lua/fceux.lua @@ -6,10 +6,10 @@ -- are met: -- -- 1. Redistributions of source code must retain the above copyright --- notice, this list of conditions and the following disclaimer. +-- notice, this list of conditions and the following disclaimer. -- 2. Redistributions in binary form must reproduce the above copyright --- notice, this list of conditions and the following disclaimer in the --- documentation and/or other materials provided with the distribution. +-- notice, this list of conditions and the following disclaimer in the +-- documentation and/or other materials provided with the distribution. -- -- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE @@ -49,7 +49,7 @@ function writeBlankFrame() memory.writebyte(1280+i-1, 0) end socket.sleep(5) - tcpCheckLastTimestamp = 0 + tcpCheckLastTimestamp = 0 end -- Write second worth of ISS tracking data to input memory bytes @@ -64,20 +64,20 @@ function writeSecondData(partial) timestamp = os.time(os.date("!*t")) socket.sleep(0.1) end - dataLastTimestamp = timestamp + dataLastTimestamp = timestamp end -- Run at beginning of frame function handleFrame() memory.writebyte(0, 1) - second = second + 1 + second = second + 1 local timestampNow = os.time(os.date("!*t")) - if (timestampNow - dataLastTimestamp > 10) or - (timestampNow - tcpCheckLastTimestamp > 59) then - tcpCheckLastTimestamp = timestampNow + if (timestampNow - dataLastTimestamp > 10) or + (timestampNow - tcpCheckLastTimestamp > 59) then + tcpCheckLastTimestamp = timestampNow partial = getISSData() - second = 3 - end + second = 3 + end if string.len(partial) > 600 then writeSecondData(partial) else diff --git a/bin/lua/mesen.lua b/bin/lua/mesen.lua index 72e39f0..e618b4f 100644 --- a/bin/lua/mesen.lua +++ b/bin/lua/mesen.lua @@ -6,10 +6,10 @@ -- are met: -- -- 1. Redistributions of source code must retain the above copyright --- notice, this list of conditions and the following disclaimer. +-- notice, this list of conditions and the following disclaimer. -- 2. Redistributions in binary form must reproduce the above copyright --- notice, this list of conditions and the following disclaimer in the --- documentation and/or other materials provided with the distribution. +-- notice, this list of conditions and the following disclaimer in the +-- documentation and/or other materials provided with the distribution. -- -- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE @@ -49,7 +49,7 @@ function writeBlankFrame() emu.write(1280+i-1, 0, emu.memType.cpu) end socket.sleep(5) - tcpCheckLastTimestamp = 0 + tcpCheckLastTimestamp = 0 end -- Write second worth of ISS tracking data to input memory bytes @@ -64,19 +64,19 @@ function writeSecondData(partial) timestamp = os.time(os.date("!*t")) socket.sleep(0.1) end - dataLastTimestamp = timestamp + dataLastTimestamp = timestamp end -- Run at beginning of frame function handleFrame() emu.write(0, 1, emu.memType.cpu) - second = second + 1 + second = second + 1 local timestampNow = os.time(os.date("!*t")) - if (timestampNow - dataLastTimestamp > 10) or - (timestampNow - tcpCheckLastTimestamp > 59) then - tcpCheckLastTimestamp = timestampNow + if (timestampNow - dataLastTimestamp > 10) or + (timestampNow - tcpCheckLastTimestamp > 59) then + tcpCheckLastTimestamp = timestampNow partial = getISSData() - second = 3 + second = 3 end if string.len(partial) > 600 then writeSecondData(partial) diff --git a/lua/fceux.lua b/lua/fceux.lua index 8547a14..2d3cab4 100644 --- a/lua/fceux.lua +++ b/lua/fceux.lua @@ -6,10 +6,10 @@ -- are met: -- -- 1. Redistributions of source code must retain the above copyright --- notice, this list of conditions and the following disclaimer. +-- notice, this list of conditions and the following disclaimer. -- 2. Redistributions in binary form must reproduce the above copyright --- notice, this list of conditions and the following disclaimer in the --- documentation and/or other materials provided with the distribution. +-- notice, this list of conditions and the following disclaimer in the +-- documentation and/or other materials provided with the distribution. -- -- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE @@ -49,7 +49,7 @@ function writeBlankFrame() memory.writebyte(1280+i-1, 0) end socket.sleep(5) - tcpCheckLastTimestamp = 0 + tcpCheckLastTimestamp = 0 end -- Write second worth of ISS tracking data to input memory bytes @@ -64,20 +64,20 @@ function writeSecondData(partial) timestamp = os.time(os.date("!*t")) socket.sleep(0.1) end - dataLastTimestamp = timestamp + dataLastTimestamp = timestamp end -- Run at beginning of frame function handleFrame() memory.writebyte(0, 1) - second = second + 1 + second = second + 1 local timestampNow = os.time(os.date("!*t")) - if (timestampNow - dataLastTimestamp > 10) or - (timestampNow - tcpCheckLastTimestamp > 59) then - tcpCheckLastTimestamp = timestampNow + if (timestampNow - dataLastTimestamp > 10) or + (timestampNow - tcpCheckLastTimestamp > 59) then + tcpCheckLastTimestamp = timestampNow partial = getISSData() - second = 3 - end + second = 3 + end if string.len(partial) > 600 then writeSecondData(partial) else diff --git a/lua/mesen.lua b/lua/mesen.lua index 72e39f0..e618b4f 100644 --- a/lua/mesen.lua +++ b/lua/mesen.lua @@ -6,10 +6,10 @@ -- are met: -- -- 1. Redistributions of source code must retain the above copyright --- notice, this list of conditions and the following disclaimer. +-- notice, this list of conditions and the following disclaimer. -- 2. Redistributions in binary form must reproduce the above copyright --- notice, this list of conditions and the following disclaimer in the --- documentation and/or other materials provided with the distribution. +-- notice, this list of conditions and the following disclaimer in the +-- documentation and/or other materials provided with the distribution. -- -- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE @@ -49,7 +49,7 @@ function writeBlankFrame() emu.write(1280+i-1, 0, emu.memType.cpu) end socket.sleep(5) - tcpCheckLastTimestamp = 0 + tcpCheckLastTimestamp = 0 end -- Write second worth of ISS tracking data to input memory bytes @@ -64,19 +64,19 @@ function writeSecondData(partial) timestamp = os.time(os.date("!*t")) socket.sleep(0.1) end - dataLastTimestamp = timestamp + dataLastTimestamp = timestamp end -- Run at beginning of frame function handleFrame() emu.write(0, 1, emu.memType.cpu) - second = second + 1 + second = second + 1 local timestampNow = os.time(os.date("!*t")) - if (timestampNow - dataLastTimestamp > 10) or - (timestampNow - tcpCheckLastTimestamp > 59) then - tcpCheckLastTimestamp = timestampNow + if (timestampNow - dataLastTimestamp > 10) or + (timestampNow - tcpCheckLastTimestamp > 59) then + tcpCheckLastTimestamp = timestampNow partial = getISSData() - second = 3 + second = 3 end if string.len(partial) > 600 then writeSecondData(partial)