Skip to content

Commit

Permalink
Update gamemaker.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
time-killer-games committed Jun 17, 2022
1 parent b323d6a commit 1ec30a5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions gamemaker.cpp
Expand Up @@ -45,6 +45,42 @@ char *directory_get_temporary_path() {
return (char *)result.c_str();
}

char *directory_get_desktop_path() {
static string result;
result = ngs::fs::directory_get_desktop_path();
return (char *)result.c_str();
}

char *directory_get_documents_path() {
static string result;
result = ngs::fs::directory_get_documents_path();
return (char *)result.c_str();
}

char *directory_get_downloads_path() {
static string result;
result = ngs::fs::directory_get_downloads_path();
return (char *)result.c_str();
}

char *directory_get_music_path() {
static string result;
result = ngs::fs::directory_get_music_path();
return (char *)result.c_str();
}

char *directory_get_pictures_path() {
static string result;
result = ngs::fs::directory_get_pictures_path();
return (char *)result.c_str();
}

char *directory_get_videos_path() {
static string result;
result = ngs::fs::directory_get_videos_path();
return (char *)result.c_str();
}

char *executable_get_directory() {
static string result;
result = ngs::fs::executable_get_directory();
Expand Down

0 comments on commit 1ec30a5

Please sign in to comment.