Skip to content

Commit bb8bffe

Browse files
author
Samuel Venable
authored
Update Create_0.gml
1 parent cf6b919 commit bb8bffe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

objects/obj_controller/Create_0.gml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
// set parent window of dialogs to be game window
1+
// Set parent window of dialogs to be game window
22
if (os_type = os_windows || os_type = os_macosx || os_type = os_linux) widget_set_owner(string(int64(window_handle())))
33

4-
// copy defaults into sandbox to allow modification
4+
// Copy defaults into sandbox to allow modification
55
directory_create(game_save_id)
6-
if (os_type != os_windows) {
7-
if (!directory_exists(data_directory)) execute_program("cp", @'-fR "' + filename_dir(bundled_data_directory) + @'" "' + filename_dir(data_directory) + @'"', true)
8-
if (!directory_exists(songs_directory)) execute_program("cp", @'-fR "' + filename_dir(bundled_songs_directory) + @'" "' + filename_dir(songs_directory) + @'"', true)
9-
if (!directory_exists(pattern_directory)) execute_program("cp", @'-fR "' + filename_dir(bundled_pattern_directory) + @'" "' + filename_dir(pattern_directory) + @'"', true)
10-
} else if (os_type = os_macosx || os_type = os_linux) {
6+
if (os_type = os_windows) {
117
if (!directory_exists(data_directory)) execute_program("Xcopy", @'/E /I "' + filename_dir(bundled_data_directory) + @'" "' + filename_dir(data_directory) + @'"', true)
128
if (!directory_exists(songs_directory)) execute_program("Xcopy", @'/E /I "' + filename_dir(bundled_songs_directory) + @'" "' + filename_dir(songs_directory) + @'"', true)
139
if (!directory_exists(pattern_directory)) execute_program("Xcopy", @'/E /I "' + filename_dir(bundled_pattern_directory) + @'" "' + filename_dir(pattern_directory) + @'"', true)
10+
} if (os_type = os_macosx || os_type = os_linux) {
11+
if (!directory_exists(data_directory)) execute_program("cp", @'-fR "' + filename_dir(bundled_data_directory) + @'" "' + filename_dir(data_directory) + @'"', true)
12+
if (!directory_exists(songs_directory)) execute_program("cp", @'-fR "' + filename_dir(bundled_songs_directory) + @'" "' + filename_dir(songs_directory) + @'"', true)
13+
if (!directory_exists(pattern_directory)) execute_program("cp", @'-fR "' + filename_dir(bundled_pattern_directory) + @'" "' + filename_dir(pattern_directory) + @'"', true)
1414
}
1515

16-
// maximize game window on startup
16+
// Maximize game window on startup
1717
window_zoom(window_handle());
1818

1919
// Do everything else for create event...

0 commit comments

Comments
 (0)