Skip to content

Commit

Permalink
get_xx_filename_ext()
Browse files Browse the repository at this point in the history
  • Loading branch information
omicronrex committed Jan 6, 2025
1 parent dedeeed commit 6f75ab1
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 12 deletions.
50 changes: 38 additions & 12 deletions gm82core.gej
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"folder": "gm82",
"version": "1.6",
"author": "renex, Floogle, Lovey01, cam900, Adamcake, YellowAfterlife, Verve",
"date": "05/01/2025",
"date": "06/01/2025",
"license": "Free to use, also for commercial games.",
"description": "Part of the standard Game Maker 8.2 distribution. This extension package contains a number of helper functions that are commonly used, and also geometry functions introduced in GM:Studio. This extension is also required for using the other GM 8.2 extensions, such as Sound, Joystick, DX9 and many more.",
"helpfile": "",
Expand Down Expand Up @@ -3084,6 +3084,43 @@
],
"returntype": 2
},
{
"name": "font_add_winui",
"extname": "",
"calltype": 2,
"helpline": "font_add_winui(filename)",
"hidden": false,
"argtypes": [
2
],
"returntype": 2
},
{
"name": "get_open_filename_ext",
"extname": "",
"calltype": 2,
"helpline": "get_open_filename_ext(filter,filename,startdir)",
"hidden": false,
"argtypes": [
2,
2,
2
],
"returntype": 2
},
{
"name": "get_save_filename_ext",
"extname": "",
"calltype": 2,
"helpline": "get_save_filename_ext(filter,filename,startdir)",
"hidden": false,
"argtypes": [
2,
2,
2
],
"returntype": 2
},
{
"name": "mouse_back_button",
"extname": "",
Expand Down Expand Up @@ -3171,17 +3208,6 @@
"hidden": false,
"argtypes": [],
"returntype": 2
},
{
"name": "font_add_winui",
"extname": "",
"calltype": 2,
"helpline": "font_add_winui(filename)",
"hidden": false,
"argtypes": [
2
],
"returntype": 2
}
],
"constants": []
Expand Down
16 changes: 16 additions & 0 deletions source/system.gml
Original file line number Diff line number Diff line change
Expand Up @@ -250,5 +250,21 @@
if (file_exists(__fon)) __gm82core_addfonttemp(__fon)
else show_error("In function font_add_winui: font file '"+__fon+"' does not exist.",0)
#define get_open_filename_ext
///get_open_filename_ext(filter,filename,startdir)
var __old_wdir;__old_wdir=working_directory
set_working_directory(argument2)
get_open_filename(argument0,argument1)
set_working_directory(__old_wdir)
#define get_save_filename_ext
///get_save_filename_ext(filter,filename,startdir)
var __old_wdir;__old_wdir=working_directory
set_working_directory(argument2)
get_save_filename(argument0,argument1)
set_working_directory(__old_wdir)
//
//

0 comments on commit 6f75ab1

Please sign in to comment.