mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
12 lines
299 B
C#
12 lines
299 B
C#
namespace MonoGame.Extended.Content.Pipeline
|
|
{
|
|
internal static class PathHelper
|
|
{
|
|
public static string RemoveExtension(string path)
|
|
{
|
|
var dotIndex = path.LastIndexOf('.');
|
|
return dotIndex > 0 ? path.Substring(0, dotIndex) : path;
|
|
}
|
|
}
|
|
}
|