2025-01-03 12:09:23 +00:00
|
|
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System;
|
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
public class Paths
|
|
|
|
|
{
|
|
|
|
|
public static readonly string AddonLibraryPath = "res://addons/rokojori_action_library/";
|
|
|
|
|
public static readonly string RuntimePath = "res://addons/rokojori_action_library/Runtime/";
|
2026-02-06 08:59:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
public static string ProjectPath()
|
|
|
|
|
{
|
|
|
|
|
return ProjectSettings.GlobalizePath( "res://" );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string ToGlobal( string path )
|
|
|
|
|
{
|
|
|
|
|
if ( path.StartsWith( "res://" ) )
|
|
|
|
|
{
|
|
|
|
|
return path.Replace( "res://", ProjectPath() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return path;
|
|
|
|
|
}
|
2025-01-03 12:09:23 +00:00
|
|
|
}
|
|
|
|
|
}
|