Skip to content

Commit 5e68039

Browse files
authored
Fixed Bug with copier
1 parent d24809a commit 5e68039

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

SoundBlox/Backend.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static class vars
1515
public static string RobloxSoundDir;
1616
public static string MOTD_DIR = CurrentPath + @"\.motd";
1717
public static string MOTD;
18-
public static int CurrentVersion = 4;
18+
public static int CurrentVersion = 5;
1919

2020
}
2121
public static class OINT

SoundBlox/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private void MainForm_Load(object sender, EventArgs e)
4949

5050

5151
WebClient wc = new WebClient();
52-
RobloxSoundDir = wc.DownloadString(@"https://raw.githubusercontent.com/Awire9966/SoundBlox/main/roblox").Replace("{APPDATA}", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)).Replace("{LOCALAPPDATA}", Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData));
52+
RobloxSoundDir = (wc.DownloadString(@"https://raw.githubusercontent.com/Awire9966/SoundBlox/main/roblox").Replace("{APPDATA}", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)).Replace("{LOCALAPPDATA}", Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)));
5353
int LatestVers = int.Parse(wc.DownloadString("https://raw.githubusercontent.com/Awire9966/SoundBlox/main/version"));
5454
vars.MOTD = wc.DownloadString("https://raw.githubusercontent.com/Awire9966/SoundBlox/main/message");
5555
if (!File.Exists(vars.MOTD_DIR))

SoundBlox/TransferSounds.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ private void TransferSounds_Load(object sender, EventArgs e)
3636
}
3737
private void button1_Click(object sender, EventArgs e)
3838
{
39-
File.Copy(vars.SoundBloxDir_Sounds + comboBox1.Text, vars.RobloxSoundDir + comboBox2.Text);
39+
File.Delete((vars.RobloxSoundDir + @"\" + comboBox2.Text).Replace("\a", "").Replace("\b", "").Replace("\f", "").Replace("\n", "").Replace("\r", "").Replace("\t", "").Replace("\v", ""));
40+
File.Copy((vars.SoundBloxDir_Sounds + @"\"+ comboBox1.Text).Replace("\a", "").Replace("\b", "").Replace("\f", "").Replace("\n", "").Replace("\r", "").Replace("\t", "").Replace("\v", ""), (vars.RobloxSoundDir +@"\"+ comboBox2.Text).Replace("\a", "").Replace("\b", "").Replace("\f", "").Replace("\n", "").Replace("\r", "").Replace("\t", "").Replace("\v", "")); ;
4041
}
4142
}
4243
}

0 commit comments

Comments
 (0)