Re-simplify exceptions.

This commit is contained in:
Glenn Maynard
2003-07-23 20:19:22 +00:00
parent 7cfed78e24
commit 541b21145e
2 changed files with 14 additions and 8 deletions
+1 -6
View File
@@ -407,12 +407,7 @@ RageDisplay *CreateDisplay()
error += "Initializing Direct3D...\n";
try {
return new RageDisplay_D3D( params );
} catch(RageException_D3DNotInstalled e) {
error += "DirectX 8.1 or greater is not installed. You can download it from:\n"+D3DURL+"\n\n";
} catch(RageException_D3DNoAcceleration e) {
error += "Your system is reporting that Direct3D hardware acceleration is not available. "
"Please obtain an updated driver from your video card manufacturer.\n\n";
} catch(RageException e) {
} catch( const exception &e ) {
error += CString(e.what()) + "\n";
};
#endif