diff options
author | Henrique Moody <henriquemoody@gmail.com> | 2016-02-23 13:35:18 -0300 |
---|---|---|
committer | Henrique Moody <henriquemoody@gmail.com> | 2016-02-23 13:38:39 -0300 |
commit | 36b40d9a3e1720997e2c438cef20c1339afb1a8c (patch) | |
tree | 765202761a0a13f8a4cdca0212aac0271d88296b /boot.php | |
parent | 67eb2fed8059813fbaf46fd96593d5d30e8b50bf (diff) | |
download | php-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.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); |