Skip to content

Commit

Permalink
Change bin directory to sm64ex-coop, copy lang dir
Browse files Browse the repository at this point in the history
  • Loading branch information
djoslin0 committed Apr 1, 2023
1 parent c18874e commit df36466
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion coop-compiler/BuildUtil.cs
Expand Up @@ -242,7 +242,7 @@ public async Task<bool> BuildAsync(bool buildDirectX)

// cleanup old files
SetStage("cleanup old files");
string binDir = dirUtil.WritePathNear("bin");
string binDir = dirUtil.WritePathNear("sm64ex-coop");
string downloadsDir = dirUtil.WritePath("downloads");
string environmentDir = dirUtil.WritePath("environment");
string tmpDir = dirUtil.WritePath("tmp");
Expand Down Expand Up @@ -337,6 +337,7 @@ public async Task<bool> BuildAsync(bool buildDirectX)
if (!File.Exists(exePath)) { throw new Exception("Could not find exe") ; }
if (Directory.Exists(buildDir + @"\res")) { await CopyDirectoryAsync(buildDir + @"\res", binDir + @"\res"); }
if (Directory.Exists(buildDir + @"\dynos")) { await CopyDirectoryAsync(buildDir + @"\dynos", binDir + @"\dynos"); }
if (Directory.Exists(buildDir + @"\lang")) { await CopyDirectoryAsync(buildDir + @"\lang", binDir + @"\lang"); }
foreach (string f in Directory.GetFiles(buildDir))
{
if (f.ToLower().EndsWith(".exe") || f.ToLower().EndsWith(".dll") || f.ToLower().EndsWith(".map"))
Expand Down
2 changes: 1 addition & 1 deletion coop-compiler/DirUtil.cs
Expand Up @@ -55,7 +55,7 @@ private string FindFile(string filename)

public void FindFiles()
{
exePath = FindFile("bin\\sm64.us.f3dex2e.exe");
exePath = FindFile("sm64ex-coop\\sm64.us.f3dex2e.exe");
romPath = FindFile("rom\\baserom.us.z64");
if (romPath != null && !MiscUtil.ValidRom(romPath))
{
Expand Down
2 changes: 1 addition & 1 deletion coop-compiler/coop-compiler.csproj
Expand Up @@ -6,7 +6,7 @@
<RootNamespace>coop_builder</RootNamespace>
<UseWindowsForms>true</UseWindowsForms>
<PlatformTarget>x86</PlatformTarget>
<AssemblyVersion>1.0.0.7</AssemblyVersion>
<AssemblyVersion>1.0.0.8</AssemblyVersion>
<Platforms>AnyCPU;x86;x64</Platforms>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
Expand Down

0 comments on commit df36466

Please sign in to comment.