Skip to content

Commit

Permalink
Rename namespace MapLoader to Nibbler.
Browse files Browse the repository at this point in the history
Remove debug code.
  • Loading branch information
dcramer committed Apr 6, 2010
1 parent a53efc8 commit 15f3ea0
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 55 deletions.
2 changes: 1 addition & 1 deletion MapLoader/ClientSettings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion MapLoader/ClientSettings.settings
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="MapLoader" GeneratedClassName="ClientSettings"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Nibbler" GeneratedClassName="ClientSettings">
<Profiles /> <Profiles />
<Settings> <Settings>
<Setting Name="SC1_INSTALL_PATH" Type="System.String" Scope="User"> <Setting Name="SC1_INSTALL_PATH" Type="System.String" Scope="User">
Expand Down
2 changes: 1 addition & 1 deletion MapLoader/ExtensionConfiguration.cs
Expand Up @@ -6,7 +6,7 @@
using System.IO; using System.IO;
using System.Windows.Forms; using System.Windows.Forms;


namespace MapLoader namespace Nibbler
{ {
class ExtensionConfiguration class ExtensionConfiguration
{ {
Expand Down
2 changes: 1 addition & 1 deletion MapLoader/LoaderConfig.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion MapLoader/LoaderConfig.cs
Expand Up @@ -8,7 +8,7 @@
using System.Windows.Forms; using System.Windows.Forms;
using System.IO; using System.IO;


namespace MapLoader namespace Nibbler
{ {
public partial class LoaderConfig : Form public partial class LoaderConfig : Form
{ {
Expand Down
2 changes: 1 addition & 1 deletion MapLoader/LoaderForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion MapLoader/LoaderForm.cs
Expand Up @@ -11,7 +11,7 @@
using Microsoft.Win32; using Microsoft.Win32;
using System.Threading; using System.Threading;


namespace MapLoader namespace Nibbler
{ {
public partial class LoaderForm : Form public partial class LoaderForm : Form
{ {
Expand Down
5 changes: 3 additions & 2 deletions MapLoader/MapLoader.csproj
Expand Up @@ -8,8 +8,8 @@
<ProjectGuid>{B0D33570-5487-4F92-AC9F-D568215045BA}</ProjectGuid> <ProjectGuid>{B0D33570-5487-4F92-AC9F-D568215045BA}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MapLoader</RootNamespace> <RootNamespace>Nibbler</RootNamespace>
<AssemblyName>MapLoader</AssemblyName> <AssemblyName>Nibbler</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<StartupObject> <StartupObject>
Expand Down Expand Up @@ -89,6 +89,7 @@
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile> </Compile>
<None Include="app.config" /> <None Include="app.config" />
<None Include="ClientSettings.settings"> <None Include="ClientSettings.settings">
Expand Down
14 changes: 7 additions & 7 deletions MapLoader/PathFinder.cs
Expand Up @@ -8,7 +8,7 @@
using System.Windows.Forms; using System.Windows.Forms;
using Utility.ModifyRegistry; using Utility.ModifyRegistry;


namespace MapLoader namespace Nibbler
{ {
/// <summary> /// <summary>
/// This class trys to automatically find pathes to game folders etc and /// This class trys to automatically find pathes to game folders etc and
Expand Down Expand Up @@ -186,8 +186,8 @@ public string QueryUserForPath(LoaderConfig form, string pathIdentifier)
{ {
returnValue = form.openFileDialog1.FileName; returnValue = form.openFileDialog1.FileName;
returnValue = returnValue.ToLower().Replace("starcraft.exe", ""); returnValue = returnValue.ToLower().Replace("starcraft.exe", "");
MapLoader.ClientSettings.Default.SC1_INSTALL_PATH = returnValue; Nibbler.ClientSettings.Default.SC1_INSTALL_PATH = returnValue;
MapLoader.ClientSettings.Default.Save(); Nibbler.ClientSettings.Default.Save();
dictPathIdentifiers.Remove(pathIdentifier); dictPathIdentifiers.Remove(pathIdentifier);
dictPathIdentifiers.Add(pathIdentifier, returnValue); dictPathIdentifiers.Add(pathIdentifier, returnValue);
} }
Expand All @@ -201,8 +201,8 @@ public string QueryUserForPath(LoaderConfig form, string pathIdentifier)
{ {
returnValue = form.openFileDialog1.FileName; returnValue = form.openFileDialog1.FileName;
returnValue = returnValue.ToLower().Replace("warcraft iii.exe", ""); returnValue = returnValue.ToLower().Replace("warcraft iii.exe", "");
MapLoader.ClientSettings.Default.WC3_INSTALL_PATH = returnValue; Nibbler.ClientSettings.Default.WC3_INSTALL_PATH = returnValue;
MapLoader.ClientSettings.Default.Save(); Nibbler.ClientSettings.Default.Save();
dictPathIdentifiers.Remove(pathIdentifier); dictPathIdentifiers.Remove(pathIdentifier);
dictPathIdentifiers.Add(pathIdentifier, returnValue); dictPathIdentifiers.Add(pathIdentifier, returnValue);
} }
Expand All @@ -216,8 +216,8 @@ public string QueryUserForPath(LoaderConfig form, string pathIdentifier)
{ {
returnValue = form.openFileDialog1.FileName; returnValue = form.openFileDialog1.FileName;
returnValue = returnValue.ToLower().Replace("starcraft ii.exe", ""); returnValue = returnValue.ToLower().Replace("starcraft ii.exe", "");
MapLoader.ClientSettings.Default.SC2_INSTALL_PATH = returnValue; Nibbler.ClientSettings.Default.SC2_INSTALL_PATH = returnValue;
MapLoader.ClientSettings.Default.Save(); Nibbler.ClientSettings.Default.Save();
dictPathIdentifiers.Remove(pathIdentifier); dictPathIdentifiers.Remove(pathIdentifier);
dictPathIdentifiers.Add(pathIdentifier, returnValue); dictPathIdentifiers.Add(pathIdentifier, returnValue);
} }
Expand Down
10 changes: 6 additions & 4 deletions MapLoader/Program.cs
Expand Up @@ -6,7 +6,7 @@
//AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledException); //AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledException);
//static void UnhandledException(object sender, UnhandledExceptionEventArgs ex); //static void UnhandledException(object sender, UnhandledExceptionEventArgs ex);


namespace MapLoader namespace Nibbler
{ {
static class Program static class Program
{ {
Expand All @@ -16,15 +16,17 @@ static class Program
[STAThread] [STAThread]
static void Main(string[] args) static void Main(string[] args)
{ {
/*if (args.Length == 0) if (args.Length == 0)
{ {
Application.Run(new LoaderConfig()); Application.Run(new LoaderConfig());
Application.Exit(); Application.Exit();
return; return;
} }


string link = args[0];*/ string link = args[0];
string link = "nibbits://wc3.nibbits.com/maps/get/131603/".Replace("nibbits://", "http://"); //string link = "nibbits://wc3.nibbits.com/maps/get/131603/"

link = link.Replace("nibbits://", "http://");


Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Expand Down
6 changes: 3 additions & 3 deletions MapLoader/Properties/AssemblyInfo.cs
Expand Up @@ -5,11 +5,11 @@
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("MapLoader")] [assembly: AssemblyTitle("Nibbler")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("Nibbits.com")]
[assembly: AssemblyProduct("MapLoader")] [assembly: AssemblyProduct("Nibbler")]
[assembly: AssemblyCopyright("Copyright © 2010")] [assembly: AssemblyCopyright("Copyright © 2010")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
Expand Down
44 changes: 18 additions & 26 deletions MapLoader/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions MapLoader/app.config
Expand Up @@ -2,12 +2,12 @@
<configuration> <configuration>
<configSections> <configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="MapLoader.ClientSettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> <section name="Nibbler.ClientSettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<section name="MapLoader.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> <section name="Nibbler.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup> </sectionGroup>
</configSections> </configSections>
<userSettings> <userSettings>
<MapLoader.ClientSettings> <Nibbler.ClientSettings>
<setting name="SC1_INSTALL_PATH" serializeAs="String"> <setting name="SC1_INSTALL_PATH" serializeAs="String">
<value /> <value />
</setting> </setting>
Expand All @@ -17,8 +17,8 @@
<setting name="WC3_INSTALL_PATH" serializeAs="String"> <setting name="WC3_INSTALL_PATH" serializeAs="String">
<value /> <value />
</setting> </setting>
</MapLoader.ClientSettings> </Nibbler.ClientSettings>
<MapLoader.Properties.Settings> <Nibbler.Properties.Settings>
<setting name="wc3_install_path" serializeAs="String"> <setting name="wc3_install_path" serializeAs="String">
<value /> <value />
</setting> </setting>
Expand All @@ -28,6 +28,6 @@
<setting name="sc_install_path" serializeAs="String"> <setting name="sc_install_path" serializeAs="String">
<value /> <value />
</setting> </setting>
</MapLoader.Properties.Settings> </Nibbler.Properties.Settings>
</userSettings> </userSettings>
</configuration> </configuration>
Binary file modified MapLoader/loader.reg
Binary file not shown.

0 comments on commit 15f3ea0

Please sign in to comment.