Skip to content

Commit 6292eeb

Browse files
committed
Change settings file path to a macro
1 parent 14d54a7 commit 6292eeb

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

scripts/control_create/control_create.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ if (check_update)
338338
update_http = http_get("https://api.github.com/repos/HielkeMinecraft/OpenNoteBlockStudio/releases/latest")
339339
else
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
}

scripts/load_settings/load_settings.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// load_settings()
22
var a;
33
log("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
88
for (a = 0; a < 11; a += 1) {

scripts/macros/macros.gml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
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

scripts/save_settings/save_settings.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// save_settings()
22
var a;
33

4-
ini_open(data_directory + "settings.ini")
4+
ini_open(settings_file)
55

66
// Recent songs
77
for (a = 0; a < 11; a += 1) {

0 commit comments

Comments
 (0)