ReiLuaGui File explorer.

This commit is contained in:
jussi
2022-12-08 18:24:41 +02:00
parent 79fbb36d2a
commit 973d902a16
16 changed files with 473 additions and 86 deletions

View File

@@ -2243,6 +2243,24 @@ int lcoreChangeDirectory( lua_State *L ) {
return 1;
}
/*
> isFile = RL_IsPathFile( string path )
Check if a given path is a file or a directory
- Failure return nil
- Success return bool
*/
int lcoreIsPathFile( lua_State *L ) {
if ( !lua_isstring( L, -1 ) ) {
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsPathFile( string path )" );
lua_pushnil( L );
return 1;
}
lua_pushboolean( L, IsPathFile( lua_tostring( L, -1 ) ) );
return 1;
}
/*
> fileDropped = RL_IsFileDropped()