diff options
author | Gabriel Rodrigues Couto <gabrielrcouto@gmail.com> | 2016-02-21 13:20:37 -0300 |
---|---|---|
committer | Gabriel Rodrigues Couto <gabrielrcouto@gmail.com> | 2016-02-21 13:20:37 -0300 |
commit | 9f505bf4be66b7e8b6efef40517a88c63edf8dbc (patch) | |
tree | 1b9b08920017807dbade661db7bc377912ebf760 | |
parent | c1e3e036e2144bd57140643cdd8cf8efe63c8907 (diff) | |
download | php-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.php | 2 | ||||
-rw-r--r-- | src/Gameboy/Core.php | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); } } |