diff options
Diffstat (limited to 'PE')
-rw-r--r-- | PE/Aya.bmp | bin | 0 -> 12342 bytes | |||
-rw-r--r-- | PE/Aya.ico | bin | 26238 -> 26238 bytes | |||
-rw-r--r-- | PE/pepatch-res.h | 29 | ||||
-rw-r--r-- | PE/pepatch.cpp | 0 | ||||
-rw-r--r-- | PE/pepatch.rc | 191 | ||||
-rw-r--r-- | PE/reinsert-res.h | 6 | ||||
-rw-r--r-- | PE/reinsert.cpp | 30 | ||||
-rw-r--r-- | PE/reinsert.rc | 4 |
8 files changed, 240 insertions, 20 deletions
diff --git a/PE/Aya.bmp b/PE/Aya.bmp Binary files differBinary files differnew file mode 100644 index 0000000..773f1c1 --- /dev/null +++ b/PE/Aya.bmp diff --git a/PE/pepatch-res.h b/PE/pepatch-res.h new file mode 100644 index 0000000..7b296e5 --- /dev/null +++ b/PE/pepatch-res.h @@ -0,0 +1,29 @@ +//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by pepatch.rc
+//
+#define IDI_ICON 101
+#define IDD_PROGRESS 102
+#define IDB_BITMAP1 106
+#define IDB_AYA 106
+#define IDD_ABOUT 107
+#define IDC_FILLOUT1 1001
+#define IDC_FILLIN1 1002
+#define IDC_FILLOUT2 1003
+#define IDC_FILLIN2 1004
+#define IDC_INFO1 1008
+#define IDC_INFO2 1009
+#define IDC_CHECK1 1009
+#define IDC_INFO3 1010
+#define IDC_RICHEDIT21 1011
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 108
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1012
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/PE/pepatch.cpp b/PE/pepatch.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/PE/pepatch.cpp diff --git a/PE/pepatch.rc b/PE/pepatch.rc new file mode 100644 index 0000000..46e5dc4 --- /dev/null +++ b/PE/pepatch.rc @@ -0,0 +1,191 @@ +// Microsoft Visual C++ generated resource script.
+//
+#include "pepatch-res.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "pepatch-res.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+#endif // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////////////////////////////////
+// French (France) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
+#ifdef _WIN32
+LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
+#pragma code_page(1252)
+#endif //_WIN32
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// 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 patch français pour Parasite Eve"
+ VALUE "CompanyName", "Rpg-T - http://rpgplayer.uhrft.org/"
+ VALUE "FileDescription", "Programme de patch français pour Parasite Eve"
+ VALUE "FileVersion", "1, 0, 0, 0"
+ VALUE "InternalName", "pepatch"
+ VALUE "LegalCopyright", "Copyright © 2003 Nicolas ""Pixel"" Noble / Rpg-T"
+ VALUE "OriginalFilename", "pepatch.rc"
+ VALUE "ProductName", "pepatch"
+ VALUE "ProductVersion", "1, 0, 0, 0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x40c, 1200
+ END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_PROGRESS DIALOGEX 0, 0, 288, 119
+STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_FIXEDSYS | DS_CENTER |
+ WS_POPUP | WS_CAPTION
+EXSTYLE WS_EX_TOPMOST | WS_EX_TOOLWINDOW
+CAPTION "Patch en cours..."
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
+BEGIN
+ CONTROL "",IDC_FILLOUT1,"Static",SS_ETCHEDFRAME,15,30,258,16
+ CONTROL "",IDC_FILLIN1,"Static",SS_GRAYRECT,55,33,181,9
+ LTEXT "Progression du patch:",IDC_STATIC,15,10,132,10
+ CONTROL "",IDC_FILLOUT2,"Static",SS_ETCHEDFRAME,15,51,258,16
+ CONTROL "",IDC_FILLIN2,"Static",SS_GRAYRECT,55,54,181,9
+ LTEXT "Info1",IDC_INFO1,15,71,258,12
+ LTEXT "Info2",IDC_INFO2,15,84,258,10
+ LTEXT "Info3",IDC_INFO3,15,97,258,12
+END
+
+IDD_ABOUT DIALOGEX 0, 0, 316, 159
+STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_FIXEDSYS | DS_CENTER |
+ WS_POPUP | WS_CAPTION
+EXSTYLE WS_EX_TOPMOST | WS_EX_TOOLWINDOW
+CAPTION
+"Traduction de Parasite Eve en Français - © 2003 Rpg-t - http://rpgplayer.uhrft.org"
+
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
+BEGIN
+ DEFPUSHBUTTON "Créer",IDOK,259,6,50,14
+ PUSHBUTTON "Quitter",IDCANCEL,259,24,50,14
+ CONTROL 106,IDC_STATIC,"Static",SS_BITMAP,269,118,43,39
+ CONTROL "Inclure le sélecteur PAL/NTSC",IDC_CHECK1,"Button",
+ BS_AUTOCHECKBOX | WS_TABSTOP,6,141,114,14
+ CONTROL "",IDC_STATIC,"Static",SS_ETCHEDFRAME,1,1,314,157
+ LTEXT "Static",IDC_STATIC,5,4,252,137
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO
+BEGIN
+ IDD_PROGRESS, DIALOG
+ BEGIN
+ LEFTMARGIN, 15
+ RIGHTMARGIN, 273
+ TOPMARGIN, 10
+ BOTTOMMARGIN, 109
+ END
+END
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Bitmap
+//
+
+IDB_AYA BITMAP "Aya.bmp"
+#endif // French (France) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/PE/reinsert-res.h b/PE/reinsert-res.h index 797517a..c881b35 100644 --- a/PE/reinsert-res.h +++ b/PE/reinsert-res.h @@ -6,15 +6,15 @@ #define IDD_ABOUT 102
#define IDC_FILLOUT 1005
#define IDC_FILLIN 1006
-#define IDC_CUSTOM1 1007
+#define IDC_BLAHBLAH 1008
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NEXT_RESOURCE_VALUE 103
+#define _APS_NEXT_RESOURCE_VALUE 104
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1008
+#define _APS_NEXT_CONTROL_VALUE 1009
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
diff --git a/PE/reinsert.cpp b/PE/reinsert.cpp index da6225b..28b7c75 100644 --- a/PE/reinsert.cpp +++ b/PE/reinsert.cpp @@ -5,27 +5,22 @@ #include "cdutils.h" #include "reinsert-res.h" -#include <afxres.h> +#include <windowsx.h> #define index 0x838da #define offset 0x83b78 -
-BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam)
-{
+ +BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam) {
Base::printm(M_STATUS, "AboutDlgProc: uMsg = %i (0x%x)\n", uMsg, uMsg);
- switch(uMsg)
- {
- case WM_COMMAND:
- {
- switch(LOWORD(wParam))
- {
- case IDCANCEL: DestroyWindow(hW);return TRUE;
- case IDOK: DestroyWindow(hW);return TRUE;
- }
+ switch (uMsg) {
+ case WM_COMMAND:
+ switch (LOWORD(wParam)) {
+ case IDCANCEL: DestroyWindow(hW); return TRUE;
+ case IDOK: DestroyWindow(hW); return TRUE;
+ }
}
- }
- return FALSE;
+ return FALSE;
}
void LaisserSouffler(HWND Dlg) {
@@ -56,6 +51,9 @@ void UpdateProgress(HWND Dlg, float percent) { r.right = percent * r.right / 100;
MoveWindow(ctrl, r.left, r.top, r.right, r.bottom, TRUE);
InvalidateRect(ctrl, NULL, TRUE);
+ ctrl = GetDlgItem(Dlg, IDC_BLAHBLAH);
+ Static_SetText(ctrl, "Toto");
+ InvalidateRect(ctrl, NULL, TRUE);
UpdateWindow(Dlg);
}
@@ -67,6 +65,8 @@ virtual int startup() throw (GeneralException) { Handle * iw; cdutils * cd; +// new Archive(*argv, ARCHIVE_EXECUTABLE); + verbosity = M_INFO; ShowWindow(Dlg = CreateDialog(0, MAKEINTRESOURCE(IDD_ABOUT), GetActiveWindow(), AboutDlgProc), SW_SHOWDEFAULT); diff --git a/PE/reinsert.rc b/PE/reinsert.rc index 82b9a28..576b53e 100644 --- a/PE/reinsert.rc +++ b/PE/reinsert.rc @@ -120,8 +120,8 @@ CAPTION "Patch en cours..." FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILLOUT,"Static",SS_ETCHEDFRAME,7,30,195,31
- CONTROL "",IDC_FILLIN,"Static",SS_GRAYRECT,13,36,181,20
- LTEXT "Progression:",IDC_STATIC,19,17,132,10
+ CONTROL "",IDC_FILLIN,"Static",SS_GRAYRECT,7,25,181,20
+ LTEXT "Progression:",IDC_BLAHBLAH,19,17,132,10
END
|