diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-14 16:31:42 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-14 16:31:42 +0100 |
commit | 390ae12c9d9b6a14cec03d6cc74b8e3d2f18027f (patch) | |
tree | 48bd4b9be6951a7636022979eb8514b1636d8bac | |
parent | 8cf7d3505ec951bf41c4340a0ca5fc29c5daa69f (diff) | |
download | RustAndDust-390ae12c9d9b6a14cec03d6cc74b8e3d2f18027f.zip RustAndDust-390ae12c9d9b6a14cec03d6cc74b8e3d2f18027f.tar.gz |
DB: from(DatabaseCursor) -> gameFrom(DatabaseCursor)
-rw-r--r-- | core/src/ch/asynk/rustanddust/util/DB.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/util/DB.java b/core/src/ch/asynk/rustanddust/util/DB.java index 3b769a2..452b512 100644 --- a/core/src/ch/asynk/rustanddust/util/DB.java +++ b/core/src/ch/asynk/rustanddust/util/DB.java @@ -298,7 +298,7 @@ public class DB DatabaseCursor cursor = query(String.format(LOAD_GAME, game)); if (cursor.getCount() > 0) { cursor.next(); - r = from(cursor); + r = gameFrom(cursor); if (!r.hash.equals(getDigest(r.payload))) { RustAndDust.error(String.format("corrupted game %d", game)); r = null; @@ -338,7 +338,7 @@ public class DB DatabaseCursor cursor = query(GET_GAMES); if (cursor.getCount() > 0) { while(cursor.next()) { - GameRecord r = from(cursor); + GameRecord r = gameFrom(cursor); if (r != null) GameRecord.list.add(r); } @@ -346,7 +346,7 @@ public class DB } catch (SQLiteGdxException e) { RustAndDust.error("loadGames"); } } - private GameRecord from(DatabaseCursor cursor) + private GameRecord gameFrom(DatabaseCursor cursor) { GameRecord r = GameRecord.get(); |