summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Rodrigues Couto <gabrielrcouto@gmail.com>2016-02-21 13:20:37 -0300
committerGabriel Rodrigues Couto <gabrielrcouto@gmail.com>2016-02-21 13:20:37 -0300
commit9f505bf4be66b7e8b6efef40517a88c63edf8dbc (patch)
tree1b9b08920017807dbade661db7bc377912ebf760
parentc1e3e036e2144bd57140643cdd8cf8efe63c8907 (diff)
downloadphp-terminal-gameboy-emulator-9f505bf4be66b7e8b6efef40517a88c63edf8dbc.zip
php-terminal-gameboy-emulator-9f505bf4be66b7e8b6efef40517a88c63edf8dbc.tar.gz
php-terminal-gameboy-emulator-9f505bf4be66b7e8b6efef40517a88c63edf8dbc.tar.bz2
lastIteration bug solved
running pokemon again!
-rw-r--r--boot.php2
-rw-r--r--src/Gameboy/Core.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index ef2d8b6..c052438 100644
--- a/boot.php
+++ b/boot.php
@@ -6,7 +6,7 @@ use GameBoy\Core;
use GameBoy\Keyboard;
use GameBoy\Settings;
-$rom = base64_decode(file_get_contents('drmario.rom'));
+$rom = base64_decode(file_get_contents('pokemon.rom'));
$core = new Core($rom);
$keyboard = new Keyboard($core);
diff --git a/src/Gameboy/Core.php b/src/Gameboy/Core.php
index 2ff3ff8..83405b6 100644
--- a/src/Gameboy/Core.php
+++ b/src/Gameboy/Core.php
@@ -1492,7 +1492,7 @@ class Core
Settings::$settings[4]--;
}
}
- $this->lastIteration = (int) (microtime() * 1000);
+ $this->lastIteration = (int) (microtime(true) * 1000);
}
}