Skip to content

Commit

Permalink
[HaCreator] Fixed an issue loading BGM (Sound002.wz) -- KMS v351
Browse files Browse the repository at this point in the history
  • Loading branch information
lastbattle committed Jul 24, 2021
1 parent b9b09a8 commit 1e84dda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
13 changes: 3 additions & 10 deletions HaCreator/GUI/New.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,16 @@
using MapleLib.WzLib;
using MapleLib.WzLib.WzProperties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using XNA = Microsoft.Xna.Framework;

namespace HaCreator.GUI
{
public partial class New : Form
{
private MultiBoard multiBoard;
private System.Windows.Controls.TabControl Tabs;
private System.Windows.RoutedEventHandler[] rightClickHandler;
private readonly MultiBoard multiBoard;
private readonly System.Windows.Controls.TabControl Tabs;
private readonly System.Windows.RoutedEventHandler[] rightClickHandler;

public New(MultiBoard board, System.Windows.Controls.TabControl Tabs, System.Windows.RoutedEventHandler[] rightClickHandler)
{
Expand Down
11 changes: 6 additions & 5 deletions HaCreator/Wz/WzFileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ namespace HaCreator.Wz
public class WzFileManager
{
#region Constants
public static readonly string[] MOB_WZ_FILES = {
public static readonly string[] MOB_WZ_FILES = {
"Mob",
"Mob001",
"Mob2" };
public static readonly string[] MAP_WZ_FILES = {
public static readonly string[] MAP_WZ_FILES = {
"Map",
"Map001",
"Map002", //kms now stores main map key here
"Map2"
};
public static readonly string[] SOUND_WZ_FILES = {
public static readonly string[] SOUND_WZ_FILES = {
"Sound",
"Sound001",
"Sound2"
"Sound2",
"Sound002"
};

public static readonly string[] COMMON_MAPLESTORY_DIRECTORY = new string[] {
Expand All @@ -54,7 +55,7 @@ public class WzFileManager
public Dictionary<WzFile, bool> wzFilesUpdated = new Dictionary<WzFile, bool>(); // flag for the list of WZ files changed to be saved later via Repack
public HashSet<WzImage> updatedImages = new HashSet<WzImage>();
public Dictionary<string, WzMainDirectory> wzDirs = new Dictionary<string, WzMainDirectory>();
private WzMapleVersion version;
private readonly WzMapleVersion version;

public WzFileManager(string directory, WzMapleVersion version)
{
Expand Down

0 comments on commit 1e84dda

Please sign in to comment.