diff --git a/grub-play.csv b/grub-play.csv index b4167ab..1c42eb8 100644 --- a/grub-play.csv +++ b/grub-play.csv @@ -1 +1,2 @@ +Option;Tone code ubbeep;1 22 333 4444 5555 \ No newline at end of file diff --git a/source/ubl-settings-bootloader.cc b/source/ubl-settings-bootloader.cc index a7cd686..b776f7b 100755 --- a/source/ubl-settings-bootloader.cc +++ b/source/ubl-settings-bootloader.cc @@ -717,7 +717,7 @@ void MainWindow::set_init_data_superuser(std::map &map_temp) { void MainWindow::set_data_csv_melody() { string path_name = ""; - path_name = path_name + path_resources + "/" + path_melody; + path_name = path_name + path_resources + "/" + melody_csv; string line; string all_melody = ""; string all_melody_old = ""; @@ -765,7 +765,7 @@ void MainWindow::set_init_data_melody(std::map &map_temp) { list_store_melody = Gtk::ListStore::create(m_columns_melody); treeViewMelody->set_model(list_store_melody); string path_name = ""; - path_name = path_name + path_resources + "/" + path_melody; + path_name = path_name + path_resources + "/" + melody_csv; vector> vec_melody = Utils::read_csv_melody(path_name); bool flag = false; string cgf_code_melody = map_temp["GRUB_PLAY"]; diff --git a/source/ubl-settings-bootloader.h b/source/ubl-settings-bootloader.h index f65e43b..36ece7a 100644 --- a/source/ubl-settings-bootloader.h +++ b/source/ubl-settings-bootloader.h @@ -132,7 +132,7 @@ void me_thread(string cmd); #define icon_checked "com.ublinux.ubl-settings-bootloader.checked" #define icon_warning "com.ublinux.ubl-settings-bootloader.warning" #define kernel_csv "grub-cmdline-linux.csv" -#define path_melody "grub-play.csv" +#define melody_csv "grub-play.csv" #define IPT_csv "grub-terminal-input.csv" #define OTT_csv "grub-terminal-output.csv" #define path_app "/usr/bin/" diff --git a/source/util.cc b/source/util.cc index 943146d..61c7688 100644 --- a/source/util.cc +++ b/source/util.cc @@ -63,6 +63,7 @@ vector> read_csv_melody(const string& filename) { ifstream file(filename); string line; char delimiter = ';'; + getline(file, line); while (getline(file, line)) { stringstream stream(line); string name;