diff options
-rw-r--r-- | MSVC/CD-Tool/CD-Tool.vcproj | 16 | ||||
-rw-r--r-- | MSVC/LuaPatch/.cvsignore | 1 | ||||
-rw-r--r-- | MSVC/LuaPatch/LuaPatch.vcproj | 198 | ||||
-rw-r--r-- | MSVC/PSX-Bundle.sln | 10 | ||||
-rw-r--r-- | cd-tool.cpp | 6 | ||||
-rw-r--r-- | luapatch-languages.h | 160 | ||||
-rw-r--r-- | luapatch-res.h | 71 | ||||
-rw-r--r-- | luapatch.cpp | 52 | ||||
-rw-r--r-- | luapatch.rc | 27 |
9 files changed, 393 insertions, 148 deletions
diff --git a/MSVC/CD-Tool/CD-Tool.vcproj b/MSVC/CD-Tool/CD-Tool.vcproj index ef2c42c..405b48c 100644 --- a/MSVC/CD-Tool/CD-Tool.vcproj +++ b/MSVC/CD-Tool/CD-Tool.vcproj @@ -169,7 +169,7 @@ </References>
<Files>
<Filter
- Name="Source Files"
+ Name="Sources"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
@@ -178,17 +178,7 @@ >
</File>
</Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
- >
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
- >
- </Filter>
</Files>
+ <Globals>
+ </Globals>
</VisualStudioProject>
diff --git a/MSVC/LuaPatch/.cvsignore b/MSVC/LuaPatch/.cvsignore new file mode 100644 index 0000000..1ead615 --- /dev/null +++ b/MSVC/LuaPatch/.cvsignore @@ -0,0 +1 @@ +Debug
\ No newline at end of file diff --git a/MSVC/LuaPatch/LuaPatch.vcproj b/MSVC/LuaPatch/LuaPatch.vcproj new file mode 100644 index 0000000..22fea58 --- /dev/null +++ b/MSVC/LuaPatch/LuaPatch.vcproj @@ -0,0 +1,198 @@ +<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8,00"
+ Name="LuaPatch"
+ ProjectGUID="{6BE81B31-B5A4-42B3-AD54-85C0F41AEE09}"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="Debug"
+ IntermediateDirectory="Debug"
+ ConfigurationType="1"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="..\getopt;..\..\generic\include;..\..\generic\lib\zlib\include;..\..\generic\lib\lua\include;..\..\includes;..\..\psxdev;..\"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="TRUE"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="1"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="TRUE"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ OutputFile="$(OutDir)/LuaPatch.exe"
+ LinkIncremental="2"
+ GenerateDebugInformation="TRUE"
+ ProgramDatabaseFile="$(OutDir)/LuaPatch.pdb"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="Release"
+ IntermediateDirectory="Release"
+ ConfigurationType="1"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="3"
+ AdditionalIncludeDirectories="..\getopt;..\..\generic\include;..\..\generic\lib\zlib\include;..\..\generic\lib\lua\include;..\..\includes;..\..\psxdev;..\"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="TRUE"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ OutputFile="$(OutDir)/LuaPatch.exe"
+ LinkIncremental="1"
+ GenerateDebugInformation="TRUE"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath="..\..\luapatch.cpp"
+ >
+ </File>
+ <File
+ RelativePath="..\..\luapatch.rc"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/MSVC/PSX-Bundle.sln b/MSVC/PSX-Bundle.sln index 25bd3ec..e387637 100644 --- a/MSVC/PSX-Bundle.sln +++ b/MSVC/PSX-Bundle.sln @@ -31,6 +31,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CD-Tool", "CD-Tool\CD-Tool. {0A2CD193-F270-4F2B-943C-F8BDF792D25C} = {0A2CD193-F270-4F2B-943C-F8BDF792D25C}
EndProjectSection
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LuaPatch", "LuaPatch\LuaPatch.vcproj", "{6BE81B31-B5A4-42B3-AD54-85C0F41AEE09}"
+ ProjectSection(ProjectDependencies) = postProject
+ {879D8D90-9A7E-4F3C-9B4E-F1648C8AE927} = {879D8D90-9A7E-4F3C-9B4E-F1648C8AE927}
+ {0A2CD193-F270-4F2B-943C-F8BDF792D25C} = {0A2CD193-F270-4F2B-943C-F8BDF792D25C}
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -61,6 +67,10 @@ Global {1AA995DB-BF26-4CCF-9D5B-D3AD698B8483}.Debug|Win32.Build.0 = Debug|Win32
{1AA995DB-BF26-4CCF-9D5B-D3AD698B8483}.Release|Win32.ActiveCfg = Release|Win32
{1AA995DB-BF26-4CCF-9D5B-D3AD698B8483}.Release|Win32.Build.0 = Release|Win32
+ {6BE81B31-B5A4-42B3-AD54-85C0F41AEE09}.Debug|Win32.ActiveCfg = Debug|Win32
+ {6BE81B31-B5A4-42B3-AD54-85C0F41AEE09}.Debug|Win32.Build.0 = Debug|Win32
+ {6BE81B31-B5A4-42B3-AD54-85C0F41AEE09}.Release|Win32.ActiveCfg = Release|Win32
+ {6BE81B31-B5A4-42B3-AD54-85C0F41AEE09}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/cd-tool.cpp b/cd-tool.cpp index 2affbf4..85f4a8a 100644 --- a/cd-tool.cpp +++ b/cd-tool.cpp @@ -1,6 +1,6 @@ /* * PSX-Tools Bundle Pack - * Copyright (C) 2002-2003 Nicolas "Pixel" Noble + * Copyright (C) 2002-2005 Nicolas "Pixel" Noble * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cd-tool.cpp,v 1.37 2004-12-18 13:14:52 pixel Exp $ */ +/* $Id: cd-tool.cpp,v 1.38 2004-12-21 11:14:16 pixel Exp $ */ #define WIP @@ -388,7 +388,7 @@ Lua * start_full_lua(void) { void showbanner() { printm(M_BARE, -"CD-Tool version " VERSION " (c) 2003-2004 Nicolas \"Pixel\" Noble\n" +"CD-Tool version " VERSION " (c) 2003-2005 Nicolas \"Pixel\" Noble\n" #ifdef WIP "Special version Work In Progress, compiled the " __DATE__ " at " __TIME__ "\n" #endif diff --git a/luapatch-languages.h b/luapatch-languages.h index 0d9d5a5..1e85a09 100644 --- a/luapatch-languages.h +++ b/luapatch-languages.h @@ -1,3 +1,24 @@ +/* + * PSX-Tools Bundle Pack + * Copyright (C) 2002-2005 Nicolas "Pixel" Noble + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: luapatch-languages.h,v 1.3 2004-12-21 11:14:16 pixel Exp $ */ + enum strings_e { ISOFILE, CDDRIVE, @@ -22,7 +43,7 @@ struct texts_t { }; struct texts_t t_english[] = { - {-1, IDD_ABOUT, "About..."},
+ {-1, IDD_ABOUT, "About..."}, {IDC_ABOUTTEXT, IDD_ABOUT, "LuaPatch version 0.4.0\n" "Hand made special MFC version\n\n" @@ -34,6 +55,7 @@ struct texts_t t_english[] = { {IDOK, IDD_FILESELECT, "OK"}, {IDCANCEL, IDD_FILESELECT, "Quit"}, {IDC_ABOUT, IDD_FILESELECT, "About"}, + {IDC_OPTIONS, IDD_FILESELECT, "Options"}, {IDC_ST_SOURCETYPE, IDD_FILESELECT, "Source type:"}, {IDC_ST_SOURCE, IDD_FILESELECT, "Source:"}, {IDC_ST_DEST, IDD_FILESELECT, "Destination file:"}, @@ -58,7 +80,7 @@ struct texts_t t_english[] = { }; struct texts_t t_french[] = { - {-1, IDD_ABOUT, "A propos de..."},
+ {-1, IDD_ABOUT, "A propos de..."}, {IDC_ABOUTTEXT, IDD_ABOUT, "LuaPatch version 0.4.0\n" "Version artisanale spéciale MFC\n\n" @@ -118,77 +140,77 @@ struct texts_t t_german[] = { {-1, 0} }; -struct texts_t t_spanish[] = {
- {-1, IDD_ABOUT, "Acerca de..."},
- {IDC_ABOUTTEXT, IDD_ABOUT,
-"LuaPatch versión 0.4.0\n"
-"Versión especial MFC hecha a mano\n\n"
-"Un sistema de parcheo de CD\n\n"
-"Copyrignt © 2003-2005 Nicolas \"Pixel\" Noble / NOBIS\n\n"
-"http://www.nobis-crew.org/luapatch/\n"
-"http://www.nobis-crew.org/"},
+struct texts_t t_spanish[] = { + {-1, IDD_ABOUT, "Acerca de..."}, + {IDC_ABOUTTEXT, IDD_ABOUT, +"LuaPatch versión 0.4.0\n" +"Versión especial MFC hecha a mano\n\n" +"Un sistema de parcheo de CD\n\n" +"Copyrignt © 2003-2005 Nicolas \"Pixel\" Noble / NOBIS\n\n" +"http://www.nobis-crew.org/luapatch/\n" +"http://www.nobis-crew.org/"}, {IDOK, IDD_ABOUT, "Aceptar"}, {IDOK, IDD_FILESELECT, "Aceptar"}, - {IDCANCEL, IDD_FILESELECT, "Salir"},
- {IDC_ABOUT, IDD_FILESELECT, "Acerca de"},
- {IDC_ST_SOURCETYPE, IDD_FILESELECT, "Tipo de fuente:"},
- {IDC_ST_SOURCE, IDD_FILESELECT, "Fuente:"},
- {IDC_ST_DEST, IDD_FILESELECT, "Archivo de destino:"},
- {IDC_ST_PATCH, IDD_FILESELECT, "Parche:"},
-
- {ISOFILE, 0, "Archivo ISO"},
- {CDDRIVE, 0, "Unidad de CD"},
- {ISODEST, 0, "Imagen 2352-raw (*.bin)\0*.BIN\0\0\0"},
- {ISOSOURCE, 0, "Imagen 2352-raw (*.bin, *.iso, *.img)\0*.BIN;*.ISO;*.IMG\0\0\0"},
- {PATCH, 0, "Fichero PAQ (*.paq)\0*.PAQ\0\0\0"},
- {MSGERROR, 0, "Error"},
- {NO_DESTINATION, 0, "No hay archivo de destino."},
- {NO_SOURCE, 0, "No hay archivo fuente."},
- {NO_PATCH, 0, "No hay parche."},
- {PARASITE_EVE, 0, "Error cargando archivo de configuración, cambiando a viejo estilo Parasite Eve.\n"},
- {VERBOSE_CFG_ERROR, 0, "Algo está mal con ese parche: archivo de configuración inválido.\n"},
- {CFG_ERROR, 0, "No se encontró archivo de configuración válido."},
- {END_MSG, 0, "¡Parche aplicado satisfactoriamente!"},
- {END_TITLE, 0, "Hecho"},
-
- {-1, 0}
-};
-
-struct texts_t t_portuguese[] = {
- {-1, IDD_ABOUT, "Sobre..."},
- {IDC_ABOUTTEXT, IDD_ABOUT,
-"LuaPatch versão 0.4.0\n"
-"Feito em uma versão especial da MFC\n\n"
-"Um sistema de Patchs para para CDs\n\n"
-"Copyrignt © 2003-2005 Nicolas \"Pixel\" Noble / NOBIS\n\n"
-"http://www.nobis-crew.org/luapatch/\n"
-"http://www.nobis-crew.org/"},
+ {IDCANCEL, IDD_FILESELECT, "Salir"}, + {IDC_ABOUT, IDD_FILESELECT, "Acerca de"}, + {IDC_ST_SOURCETYPE, IDD_FILESELECT, "Tipo de fuente:"}, + {IDC_ST_SOURCE, IDD_FILESELECT, "Fuente:"}, + {IDC_ST_DEST, IDD_FILESELECT, "Archivo de destino:"}, + {IDC_ST_PATCH, IDD_FILESELECT, "Parche:"}, + + {ISOFILE, 0, "Archivo ISO"}, + {CDDRIVE, 0, "Unidad de CD"}, + {ISODEST, 0, "Imagen 2352-raw (*.bin)\0*.BIN\0\0\0"}, + {ISOSOURCE, 0, "Imagen 2352-raw (*.bin, *.iso, *.img)\0*.BIN;*.ISO;*.IMG\0\0\0"}, + {PATCH, 0, "Fichero PAQ (*.paq)\0*.PAQ\0\0\0"}, + {MSGERROR, 0, "Error"}, + {NO_DESTINATION, 0, "No hay archivo de destino."}, + {NO_SOURCE, 0, "No hay archivo fuente."}, + {NO_PATCH, 0, "No hay parche."}, + {PARASITE_EVE, 0, "Error cargando archivo de configuración, cambiando a viejo estilo Parasite Eve.\n"}, + {VERBOSE_CFG_ERROR, 0, "Algo está mal con ese parche: archivo de configuración inválido.\n"}, + {CFG_ERROR, 0, "No se encontró archivo de configuración válido."}, + {END_MSG, 0, "¡Parche aplicado satisfactoriamente!"}, + {END_TITLE, 0, "Hecho"}, + + {-1, 0} +}; + +struct texts_t t_portuguese[] = { + {-1, IDD_ABOUT, "Sobre..."}, + {IDC_ABOUTTEXT, IDD_ABOUT, +"LuaPatch versão 0.4.0\n" +"Feito em uma versão especial da MFC\n\n" +"Um sistema de Patchs para para CDs\n\n" +"Copyrignt © 2003-2005 Nicolas \"Pixel\" Noble / NOBIS\n\n" +"http://www.nobis-crew.org/luapatch/\n" +"http://www.nobis-crew.org/"}, {IDOK, IDD_ABOUT, "Aceitar"}, {IDOK, IDD_FILESELECT, "Aceitar"}, - {IDCANCEL, IDD_FILESELECT, "Sair"},
- {IDC_ABOUT, IDD_FILESELECT, "Sobre"},
- {IDC_ST_SOURCETYPE, IDD_FILESELECT, "Tipo do arquivo:"},
- {IDC_ST_SOURCE, IDD_FILESELECT, "Fonte:"},
- {IDC_ST_DEST, IDD_FILESELECT, "Arquivo de destino:"},
- {IDC_ST_PATCH, IDD_FILESELECT, "Arquivo de Patch:"},
-
- {ISOFILE, 0, "Arquivo ISO"},
- {CDDRIVE, 0, "Drive de CD"},
- {ISODEST, 0, "2352-raw image (*.bin)\0*.BIN\0\0\0"},
- {ISOSOURCE, 0, "2352-raw image (*.bin, *.iso, *.img)\0*.BIN;*.ISO;*.IMG\0\0\0"},
- {PATCH, 0, "Arquivo PAQ (*.paq)\0*.PAQ\0\0\0"},
- {MSGERROR, 0, "Erro"},
- {NO_DESTINATION, 0, "Arquivo de destino não especificado."},
- {NO_SOURCE, 0, "Arquivo de origem não especificado."},
- {NO_PATCH, 0, "Arquivo de patch não especificado."},
- {PARASITE_EVE, 0, "Erro carregando o arquivo de configuração... mudando para as configurações do Parasite Eve.\n"},
- {VERBOSE_CFG_ERROR, 0, "Há algo errado com o patch: nenhum arquivo de configuração válido foi encontrado.\n"},
- {CFG_ERROR, 0, "Nenhum arquivo de configuração válido foi encontrado."},
- {END_MSG, 0, "Patch aplicado com sucesso!"},
- {END_TITLE, 0, "Pronto"},
-
- {-1, 0}
-};
+ {IDCANCEL, IDD_FILESELECT, "Sair"}, + {IDC_ABOUT, IDD_FILESELECT, "Sobre"}, + {IDC_ST_SOURCETYPE, IDD_FILESELECT, "Tipo do arquivo:"}, + {IDC_ST_SOURCE, IDD_FILESELECT, "Fonte:"}, + {IDC_ST_DEST, IDD_FILESELECT, "Arquivo de destino:"}, + {IDC_ST_PATCH, IDD_FILESELECT, "Arquivo de Patch:"}, + + {ISOFILE, 0, "Arquivo ISO"}, + {CDDRIVE, 0, "Drive de CD"}, + {ISODEST, 0, "2352-raw image (*.bin)\0*.BIN\0\0\0"}, + {ISOSOURCE, 0, "2352-raw image (*.bin, *.iso, *.img)\0*.BIN;*.ISO;*.IMG\0\0\0"}, + {PATCH, 0, "Arquivo PAQ (*.paq)\0*.PAQ\0\0\0"}, + {MSGERROR, 0, "Erro"}, + {NO_DESTINATION, 0, "Arquivo de destino não especificado."}, + {NO_SOURCE, 0, "Arquivo de origem não especificado."}, + {NO_PATCH, 0, "Arquivo de patch não especificado."}, + {PARASITE_EVE, 0, "Erro carregando o arquivo de configuração... mudando para as configurações do Parasite Eve.\n"}, + {VERBOSE_CFG_ERROR, 0, "Há algo errado com o patch: nenhum arquivo de configuração válido foi encontrado.\n"}, + {CFG_ERROR, 0, "Nenhum arquivo de configuração válido foi encontrado."}, + {END_MSG, 0, "Patch aplicado com sucesso!"}, + {END_TITLE, 0, "Pronto"}, + + {-1, 0} +}; struct trad_t { int langid; diff --git a/luapatch-res.h b/luapatch-res.h index 2d6d917..936bbcf 100644 --- a/luapatch-res.h +++ b/luapatch-res.h @@ -1,34 +1,37 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by luapatch.rc -// -#define IDD_FILESELECT 101 -#define IDD_ABOUT 102 -#define ID_FILE_QUIT 104 -#define IDI_ICON 105 -#define IDC_ABOUTTEXT 1001 -#define IDC_ABOUT 1003 -#define IDC_ST_SOURCETYPE 1004 -#define IDC_SOURCETYPE 1007 -#define IDC_ST_SOURCE 1008 -#define IDC_DRIVE 1009 -#define IDC_DEST 1010 -#define IDC_DEST_SELECT 1011 -#define IDC_ST_DEST 1012 -#define IDC_PATCH 1013 -#define IDC_ST_PATCH 1014 -#define IDC_PATCH_SELECT 1015 -#define IDC_SOURCE 1016 -#define IDC_SOURCEFILE_SELECT 1017 -#define IDC_SOURCE_SELECT 1017 - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 107 -#define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1015 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif +//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by luapatch.rc
+//
+#define IDD_FILESELECT 101
+#define IDD_ABOUT 102
+#define ID_FILE_QUIT 104
+#define IDI_ICON 105
+#define IDC_ABOUTTEXT 1001
+#define IDC_ABOUT 1003
+#define IDC_ST_SOURCETYPE 1004
+#define IDC_OPTIONS 1005
+#define IDC_SOURCETYPE 1007
+#define IDC_ST_SOURCE 1008
+#define IDC_DRIVE 1009
+#define IDC_DEST 1010
+#define IDC_DEST_SELECT 1011
+#define IDC_ST_DEST 1012
+#define IDC_PATCH 1013
+#define IDC_ST_PATCH 1014
+#define IDC_PATCH_SELECT 1015
+#define IDC_SOURCE 1016
+#define IDC_SOURCEFILE_SELECT 1017
+#define IDC_SOURCE_SELECT 1017
+#define IDC_ST_PATCH_TITLE 1018
+#define IDC_CUSTOM1 1019
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 107
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1020
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/luapatch.cpp b/luapatch.cpp index 07e129d..1491856 100644 --- a/luapatch.cpp +++ b/luapatch.cpp @@ -1,3 +1,24 @@ +/* + * PSX-Tools Bundle Pack + * Copyright (C) 2002-2005 Nicolas "Pixel" Noble + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: luapatch.cpp,v 1.10 2004-12-21 11:14:16 pixel Exp $ */ + #include <windowsx.h> #include <Input.h> @@ -366,7 +387,8 @@ bool Verify(HWND hW) { CODE_BEGINS virtual int startup(void) throw (GeneralException) { verbosity = M_INFO; - printm(M_BARE, "LuaPatch (C) 2003-2005 Nicolas \"Pixel\" Noble - front-end starting.\n"); + printm(M_BARE, "CD-Tool core (C) 2003-2005 Nicolas \"Pixel\" Noble\nCompiled the " __DATE__ " at " __TIME__ "\n\n"); + printm(M_BARE, "LuaPatch (C) 2003-2005 Nicolas \"Pixel\" Noble\nFront-end starting.\n"); int lang; lang = GetUserDefaultLangID(); @@ -423,25 +445,21 @@ virtual int startup(void) throw (GeneralException) { config_file = new Input("patch.ini"); } catch (IOGeneral e) { + printm(M_WARNING, GetString(PARASITE_EVE)); + config_file = new Buffer(true); + (*config_file) << +"[patch]\n" +"type=rebuild\n" +"filename=main\n" +"command=\n"; } - if (!config_file) { - printm(M_WARNING, GetString(PARASITE_EVE)); - try { - L->load(&Input("main")); - } - catch (IOGeneral e) { - printm(M_ERROR, GetString(VERBOSE_CFG_ERROR)); - throw GeneralException(GetString(CFG_ERROR)); - } - } else { - ConfigFile cfg(config_file); - Buffer cmd; + ConfigFile cfg(config_file); + Buffer cmd; - L->load(&Input(cfg["patch"]["filename"])); - cmd << cfg["patch"]["command"]; - L->load(&cmd); - } + L->load(&Input(cfg["patch"]["filename"])); + cmd << cfg["patch"]["command"]; + L->load(&cmd); delete config_file; diff --git a/luapatch.rc b/luapatch.rc index 6fe744f..0987039 100644 --- a/luapatch.rc +++ b/luapatch.rc @@ -112,29 +112,32 @@ END // Dialog
//
-IDD_FILESELECT DIALOGEX 0, 0, 188, 167
+IDD_FILESELECT DIALOGEX 0, 0, 188, 194
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP |
WS_CAPTION | WS_SYSMENU
CAPTION "LuaPatch"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- DEFPUSHBUTTON "OK",IDOK,58,146,50,14,BS_FLAT
- PUSHBUTTON "Quit",IDCANCEL,131,146,50,14,BS_FLAT
- PUSHBUTTON "About",IDC_ABOUT,7,146,50,14,BS_FLAT
- LTEXT "Source type:",IDC_ST_SOURCETYPE,7,7,174,11
+ DEFPUSHBUTTON "OK",IDOK,58,173,50,14,BS_FLAT | WS_DISABLED
+ PUSHBUTTON "Quit",IDCANCEL,131,173,50,14,BS_FLAT
+ PUSHBUTTON "About",IDC_ABOUT,7,173,50,14,BS_FLAT
+ LTEXT "Source type:",IDC_ST_SOURCETYPE,7,7,174,11,WS_DISABLED
COMBOBOX IDC_SOURCETYPE,7,18,174,78,CBS_DROPDOWNLIST |
- CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
- LTEXT "Source:",IDC_ST_SOURCE,7,40,174,8
+ CBS_AUTOHSCROLL | WS_DISABLED | WS_VSCROLL | WS_TABSTOP
+ LTEXT "Source:",IDC_ST_SOURCE,7,40,174,8,WS_DISABLED
COMBOBOX IDC_DRIVE,7,50,174,55,CBS_DROPDOWNLIST | CBS_SORT | NOT
- WS_VISIBLE | WS_VSCROLL | WS_TABSTOP
- LTEXT "Destination file:",IDC_ST_DEST,7,73,174,8
- EDITTEXT IDC_DEST,7,84,156,14,ES_AUTOHSCROLL
- PUSHBUTTON "...",IDC_DEST_SELECT,166,84,15,14
+ WS_VISIBLE | WS_DISABLED | WS_VSCROLL | WS_TABSTOP
+ LTEXT "Destination file:",IDC_ST_DEST,7,73,174,8,WS_DISABLED
+ EDITTEXT IDC_DEST,7,84,156,14,ES_AUTOHSCROLL | WS_DISABLED
+ PUSHBUTTON "...",IDC_DEST_SELECT,166,84,15,14,WS_DISABLED
LTEXT "Patch file:",IDC_ST_PATCH,7,110,174,8
EDITTEXT IDC_PATCH,7,121,156,14,ES_AUTOHSCROLL
PUSHBUTTON "...",IDC_PATCH_SELECT,166,121,15,14
EDITTEXT IDC_SOURCE,7,49,156,14,ES_AUTOHSCROLL
PUSHBUTTON "...",IDC_SOURCE_SELECT,166,49,15,14
+ LTEXT "",IDC_ST_PATCH_TITLE,7,147,174,8
+ PUSHBUTTON "Options",IDC_OPTIONS,131,158,50,14,BS_FLAT |
+ WS_DISABLED
END
IDD_ABOUT DIALOGEX 0, 0, 215, 106
@@ -163,7 +166,7 @@ BEGIN LEFTMARGIN, 7
RIGHTMARGIN, 181
TOPMARGIN, 7
- BOTTOMMARGIN, 160
+ BOTTOMMARGIN, 187
END
IDD_ABOUT, DIALOG
|