Migrated limewireExe to i2pExe

This commit is contained in:
str4d
2013-04-03 01:52:14 +00:00
parent b65898e0dd
commit 51f072cc72
16 changed files with 47 additions and 53 deletions

View File

@ -1,6 +1,6 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource1.h"
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
@ -53,8 +53,8 @@ END
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,2
PRODUCTVERSION 1,0,0,2
FILEVERSION 0,9,5,1
PRODUCTVERSION 0,9,5,1
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -69,15 +69,15 @@ BEGIN
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "The easiest and safest way to get music"
VALUE "CompanyName", "The MuWire Project"
VALUE "FileDescription", "MuWire"
VALUE "FileVersion", "1, 0, 0, 2"
VALUE "InternalName", "MuWire"
VALUE "LegalCopyright", "GPL"
VALUE "OriginalFilename", "MuWire.exe"
VALUE "ProductName", " MuWire"
VALUE "ProductVersion", "1, 0, 0, 2"
VALUE "Comments", "Anonymity for the masses"
VALUE "CompanyName", "The I2P Project"
VALUE "FileDescription", "I2P"
VALUE "FileVersion", "0, 9, 5, 1"
VALUE "InternalName", "I2P"
VALUE "LegalCopyright", "Public Domain"
VALUE "OriginalFilename", "I2P.exe"
VALUE "ProductName", " I2P"
VALUE "ProductVersion", "0, 9, 5, 1"
END
END
BLOCK "VarFileInfo"
@ -94,8 +94,7 @@ END
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON "merged icon.ico"
IDI_ICON2 ICON "torrent.ico"
IDI_ICON1 ICON "start.ico"
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////

View File

@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LimeWire3", "LimeWire3.vcproj", "{0A74F3D1-C70A-4CF0-9390-C676025ED12F}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "I2P", "I2P.vcproj", "{0A74F3D1-C70A-4CF0-9390-C676025ED12F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

BIN
installer/c/i2pExe/I2P.suo Normal file

Binary file not shown.

View File

@ -2,9 +2,9 @@
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="LimeWire3"
Name="I2P"
ProjectGUID="{0A74F3D1-C70A-4CF0-9390-C676025ED12F}"
RootNamespace="LimeWire3"
RootNamespace="I2P"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
@ -64,10 +64,10 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="Shlwapi.lib"
OutputFile="$(OutDir)/LimeWire.exe"
OutputFile="$(OutDir)/I2P.exe"
LinkIncremental="2"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)/LimeWire3.pdb"
ProgramDatabaseFile="$(OutDir)/I2P.pdb"
SubSystem="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
@ -78,7 +78,7 @@
/>
<Tool
Name="VCManifestTool"
AdditionalManifestFiles="LimeWire.exe.manifest"
AdditionalManifestFiles="I2P.exe.manifest"
/>
<Tool
Name="VCXDCMakeTool"
@ -143,7 +143,7 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="shlwapi.lib"
OutputFile="$(OutDir)/MuWire.exe"
OutputFile="$(OutDir)/I2P.exe"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
@ -223,7 +223,7 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="shlwapi.lib"
OutputFile="$(OutDir)/LimeWire.exe"
OutputFile="$(OutDir)/I2P.exe"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
@ -264,6 +264,10 @@
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\i2p.c"
>
</File>
<File
RelativePath=".\java.c"
>
@ -272,10 +276,6 @@
RelativePath=".\java_md.c"
>
</File>
<File
RelativePath=".\limewire.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
@ -303,7 +303,7 @@
>
</File>
<File
RelativePath=".\resource1.h"
RelativePath=".\resource.h"
>
</File>
</Filter>
@ -313,15 +313,11 @@
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".\LimeWire31.rc"
RelativePath=".\I2P.rc"
>
</File>
<File
RelativePath=".\merged icon.ico"
>
</File>
<File
RelativePath=".\torrent.ico"
RelativePath="..\..\resources\start.ico"
>
</File>
</Filter>

View File

@ -1,5 +1,5 @@
#ifndef _LIME_ERRORS_H
#define _LIME_ERRORS_h
#ifndef _I2P_ERRORS_H
#define _I2P_ERRORS_h
#define ERROR_COULDNT_LOAD_JVM 6
@ -8,4 +8,4 @@
#define ERROR_STARTING_PROGRAM 9
#define ERROR_COULDNT_FIND_JVM 10
#endif /* _LIME_ERRORS_H */
#endif /* _I2P_ERRORS_H */

View File

@ -1,8 +1,8 @@
/**
* Customized LimeWire launcher.
* Customized I2P launcher.
* Launches the JRE within the process, to allow Task Manager to show
* "LimeWire.exe" as the process, and firewalls to control access of
* "LimeWire.exe".
* "I2P.exe" as the process, and firewalls to control access of
* "I2P.exe".
*/
#include "errors.h"
@ -53,7 +53,7 @@ main(int argc, char** argv) {
for(i = 1; i <= read_options_size; i++)
new_argv[i] = read_options[i-1];
// copy argv arguments as arguments after the properties file
// (generally used as arguments for LimeWire)
// (generally used as arguments for I2P)
for(current_argc = 1; current_argc < argc; current_argc++)
new_argv[i++] = argv[current_argc];
@ -69,20 +69,20 @@ main(int argc, char** argv) {
case ERROR_COULDNT_FIND_JVM:
case ERROR_COULDNT_INITIALIZE_JVM:
case ERROR_COULDNT_LOAD_JVM:
if (MessageBox(NULL, "MuWire needs the Java Runtime Environment 6.0 or above. Click OK to go to www.java.com, where you can install Java.",
"MuWire Launcher Error",
if (MessageBox(NULL, "I2P needs the Java Runtime Environment 5.0 or above. Click OK to go to www.java.com, where you can install Java.",
"I2P Launcher Error",
MB_ICONWARNING | MB_OKCANCEL) == IDOK)
ShellExecute(NULL, NULL, "http://www.java.com/", "", "", SW_SHOWNORMAL);
break;
case ERROR_COULDNT_PARSE_ARGUMENTS:
MessageBox(NULL, "MuWire failed to parse the commandline arguments to Java.\n"
"Please download and install MuWire again.",
"MuWire Launcher Error", MB_OK);
MessageBox(NULL, "I2P failed to parse the commandline arguments to Java.\n"
"Please download and install I2P again.",
"I2P Launcher Error", MB_OK);
break;
case ERROR_STARTING_PROGRAM:
MessageBox(NULL, "MuWire was unable to load.\n"
"Please download and install MuWire again.",
"MuWire Launcher Error", MB_OK);
MessageBox(NULL, "I2P was unable to load.\n"
"Please download and install I2P again.",
"I2P Launcher Error", MB_OK);
break;
}
return ret;
@ -128,7 +128,7 @@ void readOptions(char*** options, int* size) {
#pragma message ("\n\n!!!!!!!!!!!!!! building ALPHA !!!!!!!!!!!!!!\n\n")
(*options)[(*size) - 3] = "-agentlib:yjpagent=port=11111";
(*options)[(*size) - 2] = "-jar";
(*options)[(*size) - 1] = "LimeWire.jar";
(*options)[(*size) - 1] = "I2P.jar";
#endif
return;
}
@ -165,7 +165,7 @@ void readOptions(char*** options, int* size) {
}
/*
* Sets the current working directory to wherever LimeWire.exe is located
* Sets the current working directory to wherever I2P.exe is located
*/
static void
SetWorkingDirectory(char *path) {
@ -231,4 +231,4 @@ WinMain(HINSTANCE inst, HINSTANCE previnst, LPSTR cmdline, int cmdshow)
ret = main(__argc, __argv);
return ret;
}
}

View File

@ -1,9 +1,8 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by LimeWire31.rc
// Used by I2P.rc
//
#define IDI_ICON1 111
#define IDI_ICON2 112
// Next default values for new objects
//

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB