diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-06-05 08:46:29 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-06-05 08:46:29 +0000 |
commit | 9fa6b7e2ded58330d0181321acb6b56ee61fb234 (patch) | |
tree | 161687b8f27abb75f0aa61a82843b062605ed4a1 /nGenEx/D3DXImage.cpp | |
parent | 0335f59fba3849e15290a6f58528e50a1e739197 (diff) | |
download | starshatter-9fa6b7e2ded58330d0181321acb6b56ee61fb234.zip starshatter-9fa6b7e2ded58330d0181321acb6b56ee61fb234.tar.gz starshatter-9fa6b7e2ded58330d0181321acb6b56ee61fb234.tar.bz2 |
Add VS2012 configs to the project files.
Diffstat (limited to 'nGenEx/D3DXImage.cpp')
-rw-r--r-- | nGenEx/D3DXImage.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nGenEx/D3DXImage.cpp b/nGenEx/D3DXImage.cpp index c83c2c4..a10eac3 100644 --- a/nGenEx/D3DXImage.cpp +++ b/nGenEx/D3DXImage.cpp @@ -12,7 +12,8 @@ D3DX image file loader
*/
-
+#include <string>
+#include "afxdlgs.h"
#include "MemDebug.h"
#include "D3DXImage.h"
#include "VideoDX9.h"
@@ -53,8 +54,14 @@ bool D3DXImage::Load(char *filename) FILE* f;
fopen_s(&f, filename,"rb");
- if (f == NULL)
- return success;
+ if (f == NULL) {
+ std::string errstring = "Magic was unable to locate the following texture: ";
+ errstring += filename;
+ errstring += "\nPlease locate the texture, and copy it to the same directory the Magic executable is in.";
+
+ MessageBox(NULL, errstring.c_str(), "Help!", MB_ICONWARNING | MB_OK);
+ return success;
+ }
int len = 0;
BYTE* buf = 0;
|