summaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorHenrique Moody <henriquemoody@gmail.com>2016-02-23 13:35:18 -0300
committerHenrique Moody <henriquemoody@gmail.com>2016-02-23 13:38:39 -0300
commit36b40d9a3e1720997e2c438cef20c1339afb1a8c (patch)
tree765202761a0a13f8a4cdca0212aac0271d88296b /boot.php
parent67eb2fed8059813fbaf46fd96593d5d30e8b50bf (diff)
downloadphp-terminal-gameboy-emulator-36b40d9a3e1720997e2c438cef20c1339afb1a8c.zip
php-terminal-gameboy-emulator-36b40d9a3e1720997e2c438cef20c1339afb1a8c.tar.gz
php-terminal-gameboy-emulator-36b40d9a3e1720997e2c438cef20c1339afb1a8c.tar.bz2
Create a warning when Xdebug is enabled
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index c7eb425..b652f0d 100644
--- a/boot.php
+++ b/boot.php
@@ -20,6 +20,12 @@ if (!file_exists($filename)) {
throw new RuntimeException(sprintf('"%s" does not exist', $filename));
}
+if (extension_loaded('xdebug')) {
+ fwrite(STDERR, 'Running php-gameboy with Xdebug enabled reduces its speed considerably.'.PHP_EOL);
+ fwrite(STDERR, 'You should consider to disable it before execute php-gameboy.'.PHP_EOL);
+ sleep(1);
+}
+
$rom = file_get_contents($filename);
$canvas = new TerminalCanvas();