diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/README.md | 2 | ||||
-rw-r--r-- | plugins/cheat/plugin.json | 6 | ||||
-rw-r--r-- | plugins/cheatfind/plugin.json | 6 | ||||
-rw-r--r-- | plugins/console/plugin.json | 6 | ||||
-rw-r--r-- | plugins/data/load_dat.lua | 2 | ||||
-rw-r--r-- | plugins/data/plugin.json | 6 | ||||
-rw-r--r-- | plugins/dummy/plugin.json | 8 | ||||
-rw-r--r-- | plugins/hiscore/plugin.json | 8 | ||||
-rw-r--r-- | plugins/json/plugin.json | 8 | ||||
-rw-r--r-- | plugins/layout/plugin.json | 6 | ||||
-rw-r--r-- | plugins/timer/init.lua | 22 | ||||
-rw-r--r-- | plugins/timer/plugin.json | 6 |
12 files changed, 43 insertions, 43 deletions
diff --git a/plugins/README.md b/plugins/README.md index bb222b77f68..de97ed84391 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -1,3 +1,3 @@ # **Plugins** # -LUA plugins contains code from various sources so license is per file.
\ No newline at end of file +LUA plugins contains code from various sources so license is per file. diff --git a/plugins/cheat/plugin.json b/plugins/cheat/plugin.json index 4067fdbc479..08f77a68793 100644 --- a/plugins/cheat/plugin.json +++ b/plugins/cheat/plugin.json @@ -1,9 +1,9 @@ { "plugin": { - "name": "cheat", + "name": "cheat", "description": "Cheat plugin", - "version": "0.0.1", - "author": "Carl", + "version": "0.0.1", + "author": "Carl", "type": "plugin", "start": "false" } diff --git a/plugins/cheatfind/plugin.json b/plugins/cheatfind/plugin.json index 8316cb5f334..a4ecb052712 100644 --- a/plugins/cheatfind/plugin.json +++ b/plugins/cheatfind/plugin.json @@ -1,9 +1,9 @@ { "plugin": { - "name": "cheatfind", + "name": "cheatfind", "description": "Cheat finder helper library", - "version": "0.0.1", - "author": "Carl", + "version": "0.0.1", + "author": "Carl", "type": "plugin", "start": "false" } diff --git a/plugins/console/plugin.json b/plugins/console/plugin.json index 182bb887785..6ada19c52a8 100644 --- a/plugins/console/plugin.json +++ b/plugins/console/plugin.json @@ -1,9 +1,9 @@ { "plugin": { - "name": "console", + "name": "console", "description": "Console plugin", - "version": "0.0.1", - "author": "Carl", + "version": "0.0.1", + "author": "Carl", "type": "plugin", "start": "false" } diff --git a/plugins/data/load_dat.lua b/plugins/data/load_dat.lua index 881ed40f5b3..4a9fa9b67b6 100644 --- a/plugins/data/load_dat.lua +++ b/plugins/data/load_dat.lua @@ -49,7 +49,7 @@ function datfile.open(file, vertag, fixupcb) dbver = stmt:get_value(0) end stmt:finalize() - + if not dbver then db:exec("CREATE TABLE \"" .. file .. [[_idx" ( type VARCHAR NOT NULL, diff --git a/plugins/data/plugin.json b/plugins/data/plugin.json index 89c36d6bd36..d2f64d0efc7 100644 --- a/plugins/data/plugin.json +++ b/plugins/data/plugin.json @@ -1,9 +1,9 @@ { "plugin": { - "name": "data", + "name": "data", "description": "Data plugin", - "version": "0.0.1", - "author": "Carl", + "version": "0.0.1", + "author": "Carl", "type": "plugin", "start": "true" } diff --git a/plugins/dummy/plugin.json b/plugins/dummy/plugin.json index 45c14b019e7..9ce532139aa 100644 --- a/plugins/dummy/plugin.json +++ b/plugins/dummy/plugin.json @@ -1,10 +1,10 @@ { "plugin": { - "name": "dummy", + "name": "dummy", "description": "Dummy test plugin", - "version": "0.0.1", - "author": "Miodrag Milanovic", + "version": "0.0.1", + "author": "Miodrag Milanovic", "type": "plugin", "start": "false" } -}
\ No newline at end of file +} diff --git a/plugins/hiscore/plugin.json b/plugins/hiscore/plugin.json index 38d81289a63..62e02e431d6 100644 --- a/plugins/hiscore/plugin.json +++ b/plugins/hiscore/plugin.json @@ -1,10 +1,10 @@ { "plugin": { - "name": "hiscore", + "name": "hiscore", "description": "Hiscore support", - "version": "1.0.0", - "author": "borgar@borgar.net", + "version": "1.0.0", + "author": "borgar@borgar.net", "type": "plugin", "start": "false" } -}
\ No newline at end of file +} diff --git a/plugins/json/plugin.json b/plugins/json/plugin.json index c089e2cf178..28ddb388fcc 100644 --- a/plugins/json/plugin.json +++ b/plugins/json/plugin.json @@ -1,9 +1,9 @@ { "plugin": { - "name": "json", + "name": "json", "description": "json library", - "version": "2.5.0", - "author": "David Kolf", + "version": "2.5.0", + "author": "David Kolf", "type": "library" } -}
\ No newline at end of file +} diff --git a/plugins/layout/plugin.json b/plugins/layout/plugin.json index e50da000893..996e09d6a07 100644 --- a/plugins/layout/plugin.json +++ b/plugins/layout/plugin.json @@ -1,9 +1,9 @@ { "plugin": { - "name": "layout", + "name": "layout", "description": "Layout helper plugin", - "version": "0.0.1", - "author": "Carl", + "version": "0.0.1", + "author": "Carl", "type": "plugin", "start": "false" } diff --git a/plugins/timer/init.lua b/plugins/timer/init.lua index c0f47836398..b5b6d355a03 100644 --- a/plugins/timer/init.lua +++ b/plugins/timer/init.lua @@ -23,18 +23,18 @@ function timer.startplugin() total_time = total_time + (os.time() - start_time) local db = assert(sqlite3.open(timer_db)) - + local insert_stmt = assert( db:prepare("INSERT OR IGNORE INTO timer VALUES (?, ?, 0, 0)") ) insert_stmt:bind_values(emu.romname(), emu.softname()) insert_stmt:step() insert_stmt:reset() - + local update_stmt = assert( db:prepare("UPDATE timer SET total_time=?, play_count=? WHERE driver=? AND software=?") ) update_stmt:bind_values(total_time, play_count,emu.romname(), emu.softname()) update_stmt:step() update_stmt:reset() - - assert(db:close() == sqlite3.OK) + + assert(db:close() == sqlite3.OK) end @@ -48,13 +48,13 @@ function timer.startplugin() local db = assert(sqlite3.open(timer_db)) local found=false db:exec([[select * from sqlite_master where name='timer';]], function(...) found=true return 0 end) - if not found then + if not found then db:exec[[ CREATE TABLE timer ( - driver VARCHAR(32) PRIMARY KEY, - software VARCHAR(40), - total_time INTEGER NOT NULL, - play_count INTEGER NOT NULL - ); ]] + driver VARCHAR(32) PRIMARY KEY, + software VARCHAR(40), + total_time INTEGER NOT NULL, + play_count INTEGER NOT NULL + ); ]] end local stmt, row @@ -69,7 +69,7 @@ function timer.startplugin() total_time = 0 end - assert(db:close() == sqlite3.OK) + assert(db:close() == sqlite3.OK) start_time = os.time() play_count = play_count + 1 diff --git a/plugins/timer/plugin.json b/plugins/timer/plugin.json index 3c4629ba60d..005a0fad9a4 100644 --- a/plugins/timer/plugin.json +++ b/plugins/timer/plugin.json @@ -1,9 +1,9 @@ { "plugin": { - "name": "timer", + "name": "timer", "description": "Timer plugin", - "version": "0.0.1", - "author": "Carl", + "version": "0.0.1", + "author": "Carl", "type": "plugin", "start": "false" } |