2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-05 11:19:39 -04:00

changeDirectory fix for FX, not sure if works with core.

This commit is contained in:
Mikael Rasmussen 2018-10-24 20:06:57 +02:00
parent a9b598e254
commit 0ad83579fa

View File

@ -19,8 +19,7 @@ namespace Examples
var name = Path.GetFileNameWithoutExtension(filePath); var name = Path.GetFileNameWithoutExtension(filePath);
Console.WriteLine("Running example " + filePath); Console.WriteLine("Running example " + filePath);
ChangeDirectory(Path.GetDirectoryName(filePath));
ChangeDirectory(filePath);
Type.GetType(name)?.GetMethod("Main")?.Invoke(null, args); Type.GetType(name)?.GetMethod("Main")?.Invoke(null, args);
Console.WriteLine(); Console.WriteLine();