summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2019-02-17 14:00:15 -0600
committer cracyc <cracyc@users.noreply.github.com>2019-02-17 14:00:15 -0600
commit11c3b63c412e8de1e78b4a17d784311b5a22860b (patch)
tree9ff5138f7046325f4b9a9f9bd27ebccbe9bc56cb
parenta0ca95fa280ab1b5d38be5b07686af1667eb00af (diff)
plugins/hiscore: use emu.time (nw)
-rw-r--r--plugins/hiscore/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/hiscore/init.lua b/plugins/hiscore/init.lua
index bc956f61e9d..ded3f0e44d2 100644
--- a/plugins/hiscore/init.lua
+++ b/plugins/hiscore/init.lua
@@ -60,9 +60,9 @@ function hiscore.startplugin()
local function parse_table ( dsting )
local _table = {};
for line in string.gmatch(dsting, '([^\n]+)') do
- local delay = line:match('^@delay=([%d])')
+ local delay = line:match('^@delay=([.%d]*)')
if delay and #delay > 0 then
- delaytime = os.time() + tonumber(delay)
+ delaytime = emu.time() + tonumber(delay)
else
local cpu, mem;
local cputag, space, offs, len, chk_st, chk_ed, fill = string.match(line, '^@([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),?(%x?%x?)');
@@ -217,7 +217,7 @@ function hiscore.startplugin()
local function init ()
if not scores_have_been_read then
- if (delaytime <= os.time()) and check_mem( positions ) then
+ if (delaytime <= emu.time()) and check_mem( positions ) then
default_checksum = check_scores( positions );
if read_scores( positions ) then
emu.print_verbose( "hiscore: scores read OK" );