2022-05-14 20:43:22 +02:00
|
|
|
|
using BeatSaber_Versions.controller;
|
2022-05-15 01:04:38 +02:00
|
|
|
|
using BeatSaber_Versions.controller.helper;
|
2022-05-14 20:43:22 +02:00
|
|
|
|
using System;
|
2022-05-14 19:00:01 +02:00
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
namespace BeatSaber_Versions
|
|
|
|
|
{
|
|
|
|
|
public partial class BeatSaberFolders_Modal : Form
|
|
|
|
|
{
|
|
|
|
|
public BeatSaberFolders_Modal()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2022-05-14 20:43:22 +02:00
|
|
|
|
songsFolder.Text = Storage.Config.beatsabersongs;
|
|
|
|
|
beatSaberFolder.Text = Storage.Config.beatsaberfolder;
|
|
|
|
|
|
2022-05-14 19:00:01 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void label2_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2022-05-14 20:43:22 +02:00
|
|
|
|
|
|
|
|
|
private void setBSSongsFolder_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
DialogResult folder = setCustomSongsFolder.ShowDialog();
|
|
|
|
|
if (folder == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("" + setCustomSongsFolder.SelectedPath);
|
|
|
|
|
songsFolder.Text = setCustomSongsFolder.SelectedPath;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setBSFolder_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
DialogResult folder = setNormalBeatSaberFolder.ShowDialog();
|
|
|
|
|
if (folder == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("" + setNormalBeatSaberFolder.SelectedPath);
|
|
|
|
|
beatSaberFolder.Text = setNormalBeatSaberFolder.SelectedPath;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void saveModal_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
String bsFolder = beatSaberFolder.Text;
|
|
|
|
|
String songFolder = songsFolder.Text;
|
|
|
|
|
|
|
|
|
|
Storage.Config.beatsaberfolder = bsFolder;
|
|
|
|
|
Storage.Config.beatsabersongs = songFolder;
|
|
|
|
|
|
|
|
|
|
Storage.CC.writeConfig();
|
|
|
|
|
}
|
2022-05-15 01:04:38 +02:00
|
|
|
|
|
|
|
|
|
private void chkBSBasicFolderViaSteam_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
beatSaberFolder.Text = getNormalBeatSaberFolder.getBSFolder();
|
|
|
|
|
}
|
2022-05-14 19:00:01 +02:00
|
|
|
|
}
|
|
|
|
|
}
|