summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHASEGAWA Tomoki <github@speedstars.jp>2016-04-29 22:42:28 +0900
committerHASEGAWA Tomoki <github@speedstars.jp>2016-04-29 22:42:28 +0900
commitafdbfae33b089620d637b052e5a7e6348b065a98 (patch)
tree14197318ebf1d8ecf99d7fa54a60da9f999010cb
parent2a05514b8ac6062d2c8fb4e4f9cf044fecba01d8 (diff)
downloadphp-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.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/boot.php b/boot.php
index 55c356b..54d707a 100644
--- a/boot.php
+++ b/boot.php
@@ -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;