Permalink
Browse files

tested if works

  • Loading branch information...
1 parent e012f98 commit afbc7bad70681da1ae8698efcae19738d05928ea @jag2011 jag2011 committed Mar 2, 2010
Showing with 13 additions and 8 deletions.
  1. +4 −4 MapLoader/Form1.cs
  2. +2 −1 MapLoader/MapLoader.csproj
  3. +2 −1 MapLoader/Program.cs
  4. +5 −2 MapLoader/extensions.xml
View
@@ -184,7 +184,7 @@ private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventA
break;
}
- string pathIdentfier = moveTo.Substring(pos1, pos2 - pos1);
+ string pathIdentfier = moveTo.Substring(pos1, pos2 - pos1 + 1);
// ==============================================
// Translate our PathIdentifier
@@ -197,12 +197,12 @@ private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventA
// 2. Check if user has defined a custom path
if (realPath == "")
{
- pathUser.GetPath(pathIdentfier);
+ realPath = pathUser.GetPath(pathIdentfier);
}
// 3. Still no path, query the user
if (realPath == "")
{
- pathUser.QueryUserForPath(this,pathIdentfier);
+ realPath = pathUser.QueryUserForPath(this, pathIdentfier);
}
// 4. Still no path?? Okay lets just save the file somewhere else
@@ -213,7 +213,7 @@ private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventA
}
- moveTo.Replace(pathIdentfier, realPath);
+ moveTo = moveTo.Replace(pathIdentfier, realPath);
}
@@ -24,7 +24,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
+ <Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
@@ -56,6 +56,7 @@
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="PathFinder.cs" />
+ <Compile Include="PathUserDefined.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
View
@@ -18,7 +18,8 @@ static void Main(string[] args)
{
//if (args.Length == 0) { Application.Exit(); return; }
//NIBBITS_LINK = args[0];
- NIBBITS_LINK = "nibbits://www.nibbits.com/sc2/maps/get/131540/";
+ NIBBITS_LINK = "nibbits://www.nibbits.com/sc/maps/get/131403/";
+ //NIBBITS_LINK = "nibbits://www.nibbits.com/sc2/maps/get/131540/";
Application.EnableVisualStyles();
View
@@ -6,10 +6,13 @@
</extension>
<!-- Starcraft 1 Maps -->
<extension type="scm">
- <default>%SC1_INSTALL_PATH\maps\BroodWar\</default>
+ <default>%SC1_INSTALL_PATH%\maps\BroodWar\</default>
+</extension>
+<extension type="scx">
+ <default>%SC1_INSTALL_PATH%\maps\BroodWar\</default>
</extension>
<!-- Starcraft 1 Replays -->
<extension type="rep">
- <default>%SC1_INSTALL_PATH\maps\replays\</default>
+ <default>%SC1_INSTALL_PATH%\maps\replays\</default>
</extension>
</extensions>

0 comments on commit afbc7ba

Please sign in to comment.