summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2003-10-09 02:42:57 +0000
committerpixel <pixel>2003-10-09 02:42:57 +0000
commit89cc07d85a624225b34e7c92ea41b268d6684cc9 (patch)
tree9ae4b43d7180f0033a768778a0d9f65df082bb21
parent000f0a624a68f67a39fee42ba8f7bf913b1b357b (diff)
On continue à jouer avec les ressources :-P
-rw-r--r--PE/Aya.icobin26238 -> 26238 bytes
-rw-r--r--PE/nmakefile4
-rw-r--r--PE/reinsert-res.h17
-rw-r--r--PE/reinsert.cpp21
-rw-r--r--PE/reinsert.rc79
5 files changed, 117 insertions, 4 deletions
diff --git a/PE/Aya.ico b/PE/Aya.ico
index 164b739..f70fa83 100644
--- a/PE/Aya.ico
+++ b/PE/Aya.ico
Binary files differ
diff --git a/PE/nmakefile b/PE/nmakefile
index e6ca13d..bafe2fe 100644
--- a/PE/nmakefile
+++ b/PE/nmakefile
@@ -1,8 +1,8 @@
_CCFLAGS = /I ..\includes /I ..\generic\include /I ..\..\zlib
!IFDEF DEBUG
-_LIBS = "..\MSVC\Baltisot - generic\Debug\Baltisot - generic.lib" "..\MSVC\PSX-Bundle - library\Debug\PSX-Bundle - library.lib" ..\..\zlib\dll32\zlib.lib ..\..\zlib\static32\zlibstat.lib
+_LIBS = "..\MSVC\Baltisot - generic\Debug\Baltisot - generic.lib" "..\MSVC\PSX-Bundle - library\Debug\PSX-Bundle - library.lib" ..\..\zlib\dll32\zlib.lib ..\..\zlib\static32\zlibstat.lib comdlg32.lib user32.lib
!ELSE
-_LIBS = "..\MSVC\Baltisot - generic\Release\Baltisot - generic.lib" "..\MSVC\PSX-Bundle - library\Release\PSX-Bundle - library.lib" ..\..\zlib\dll32\zlib.lib ..\..\zlib\static32\zlibstat.lib
+_LIBS = "..\MSVC\Baltisot - generic\Release\Baltisot - generic.lib" "..\MSVC\PSX-Bundle - library\Release\PSX-Bundle - library.lib" ..\..\zlib\dll32\zlib.lib ..\..\zlib\static32\zlibstat.lib comdlg32.lib user32.lib
!ENDIF
!include ..\MSVC\Tools\master.mak
diff --git a/PE/reinsert-res.h b/PE/reinsert-res.h
new file mode 100644
index 0000000..49a5da7
--- /dev/null
+++ b/PE/reinsert-res.h
@@ -0,0 +1,17 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by reinsert.rc
+//
+#define IDI_ICON 101
+#define IDD_ABOUT 102
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 103
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1001
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/PE/reinsert.cpp b/PE/reinsert.cpp
index 0e63d2d..3a8244b 100644
--- a/PE/reinsert.cpp
+++ b/PE/reinsert.cpp
@@ -4,9 +4,28 @@
#include <Main.h>
#include "cdutils.h"
+#include "reinsert-res.h"
+
#define index 0x838da
#define offset 0x83b78
+
+BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam)
+{
+ switch(uMsg)
+ {
+ case WM_COMMAND:
+ {
+ switch(LOWORD(wParam))
+ {
+ case IDCANCEL: EndDialog(hW,FALSE);return TRUE;
+ case IDOK: EndDialog(hW,FALSE);return TRUE;
+ }
+ }
+ }
+ return FALSE;
+}
+
CODE_BEGINS
virtual int startup() throw (GeneralException) {
@@ -14,6 +33,8 @@ virtual int startup() throw (GeneralException) {
Handle * iw;
cdutils * cd;
+ DialogBox(0, MAKEINTRESOURCE(IDD_ABOUT), GetActiveWindow(), AboutDlgProc);
+
verbosity = M_INFO;
ir = new Input("PE1.bin");
diff --git a/PE/reinsert.rc b/PE/reinsert.rc
index 0814abb..6721ee5 100644
--- a/PE/reinsert.rc
+++ b/PE/reinsert.rc
@@ -1,6 +1,6 @@
// Microsoft Visual C++ generated resource script.
//
-#include "resource.h"
+#include "reinsert-res.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
1 TEXTINCLUDE
BEGIN
- "resource.h\0"
+ "reinsert-res.h\0"
END
2 TEXTINCLUDE
@@ -67,6 +67,81 @@ LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON ICON "aya.ico"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,0,0
+ PRODUCTVERSION 1,0,0,0
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040c04b0"
+ BEGIN
+ VALUE "Comments", "Programme de réinsertion pour Parasite Eve - Commentaires"
+ VALUE "CompanyName", "NOBIS"
+ VALUE "FileDescription", "Programme de réinsertion pour Parasite Eve"
+ VALUE "FileVersion", "1, 0, 0, 0"
+ VALUE "InternalName", "reinsert"
+ VALUE "LegalCopyright", "Copyright (C) 2003 Nicolas ""Pixel"" Noble"
+ VALUE "OriginalFilename", "reinsert.rc"
+ VALUE "ProductName", " reinsert"
+ VALUE "ProductVersion", "1, 0, 0, 0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x40c, 1200
+ END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_ABOUT DIALOGEX 0, 0, 186, 95
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
+ WS_SYSMENU
+CAPTION "Dialog"
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
+BEGIN
+ DEFPUSHBUTTON "OK",IDOK,129,7,50,14
+ PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO
+BEGIN
+ IDD_ABOUT, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 179
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 88
+ END
+END
+#endif // APSTUDIO_INVOKED
+
#endif // French (France) resources
/////////////////////////////////////////////////////////////////////////////