TheCodeArtist / chocosticks

2 players. 21 sticks in a row. The one who picks the last stick loses the game.
2 stars 4 forks source link

BGI ERROR: Graphics not initialized (use 'initgraph') #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run game.exe

What is the expected output? What do you see instead?
Game does NOT launch. Gives Error.
BGI ERROR: Graphics not initialized (use 'initgraph')

Original issue reported on code.google.com by cvs268 on 4 Nov 2011 at 3:40

GoogleCodeExporter commented 9 years ago
Requires BGI to be present at D:\TC\BGI\

Otherwise will fail with the following message:
BGI ERROR: Graphics not initialized (use 'initgraph')

The BGI directory is available as part of TurboC-3.0

Original comment by cvs268 on 4 Nov 2011 at 3:43

GoogleCodeExporter commented 9 years ago
After commit 210e489892bf,
GAME.exe now looks for BGI directory in current-directory of the executable.

TODO: In main modify initgraph() call to support looking for BGI directory in 
multiple PATHs.

Original comment by cvs268 on 5 Nov 2011 at 4:48