diff options
author | HASEGAWA Tomoki <github@speedstars.jp> | 2016-04-29 22:42:28 +0900 |
---|---|---|
committer | HASEGAWA Tomoki <github@speedstars.jp> | 2016-04-29 22:42:28 +0900 |
commit | afdbfae33b089620d637b052e5a7e6348b065a98 (patch) | |
tree | 14197318ebf1d8ecf99d7fa54a60da9f999010cb | |
parent | 2a05514b8ac6062d2c8fb4e4f9cf044fecba01d8 (diff) | |
download | php-terminal-gameboy-emulator-afdbfae33b089620d637b052e5a7e6348b065a98.zip php-terminal-gameboy-emulator-afdbfae33b089620d637b052e5a7e6348b065a98.tar.gz php-terminal-gameboy-emulator-afdbfae33b089620d637b052e5a7e6348b065a98.tar.bz2 |
Fix "class RuntimeException not found".
-rw-r--r-- | boot.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,13 +27,13 @@ if (PHP_VERSION_ID >= 70000) { } if (count($argv) < 2) { - throw new RuntimeException('You need to pass the ROM file name (Ex: drmario.rom)'); + throw new \RuntimeException('You need to pass the ROM file name (Ex: drmario.rom)'); } $filename = $argv[1]; if (!file_exists($filename)) { - throw new RuntimeException(sprintf('"%s" does not exist', $filename)); + throw new \RuntimeException(sprintf('"%s" does not exist', $filename)); } if (extension_loaded('xdebug')) { @@ -51,11 +51,11 @@ $keyboard = new Keyboard($core); $core->start(); if (($core->stopEmulator & 2) == 0) { - throw new RuntimeException('The GameBoy core is already running.'); + throw new \RuntimeException('The GameBoy core is already running.'); } if ($core->stopEmulator & 2 != 2) { - throw new RuntimeException('GameBoy core cannot run while it has not been initialized.'); + throw new \RuntimeException('GameBoy core cannot run while it has not been initialized.'); } $core->stopEmulator &= 1; |