From cf49aeae19f192f34d41760a1a566d2ac0c7102b Mon Sep 17 00:00:00 2001
From: JupiterRider <60042618+JupiterRider@users.noreply.github.com>
Date: Tue, 3 Dec 2024 20:24:18 +0100
Subject: [PATCH] IsFileNameValid method added
---
Raylib-cs/interop/Raylib.cs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs
index a81ba4e..1a8fbaa 100644
--- a/Raylib-cs/interop/Raylib.cs
+++ b/Raylib-cs/interop/Raylib.cs
@@ -627,6 +627,10 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern CBool IsPathFile(sbyte* path);
+ /// Check if fileName is valid for the platform/OS
+ [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
+ public static extern CBool IsFileNameValid(sbyte* fileName);
+
/// Change working directory, return true on success
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern CBool ChangeDirectory(sbyte* dir);