File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ if (check_update)
338338 update_http = http_get(" https://api.github.com/repos/HielkeMinecraft/OpenNoteBlockStudio/releases/latest" )
339339else
340340 update_http = -1
341- if (file_exists_lib(data_directory + " settings.onbs " ) && vers != version) {
341+ if (file_exists_lib(settings_file ) && vers != version) {
342342 window = w_update
343343 update = 3
344344}
Original file line number Diff line number Diff line change 11// load_settings()
22var a;
33log (" Load settings" )
4- if (!file_exists(data_directory + " settings.ini " )) return 0
5- ini_open(data_directory + " settings.ini " )
4+ if (!file_exists(settings_file )) return 0
5+ ini_open(settings_file )
66
77// Recent songs
88for (a = 0 ; a < 11 ; a += 1 ) {
Original file line number Diff line number Diff line change 1414#macro pattern_directory data_directory + " Patterns\\ "
1515#macro log_file file_directory + " log.txt"
1616#macro temp_file file_directory + " tmp.file"
17+ #macro settings_file file_directory + " settings.ini"
1718#macro backup_file file_directory + " backup.nbs"
1819
1920#macro h_stereoize 12
Original file line number Diff line number Diff line change 11// save_settings()
22var a;
33
4- ini_open (data_directory + " settings.ini " )
4+ ini_open (settings_file )
55
66// Recent songs
77for (a = 0 ; a < 11 ; a += 1 ) {
You can’t perform that action at this time.
0 commit comments