Commit e4aeaa11 authored by Maurice Tayeb Andreas's avatar Maurice Tayeb Andreas
Browse files

part of adding AddSearchPath

parent 16695271
......@@ -258,6 +258,11 @@ namespace VA
{
NativeSetOutputMuted(_NetClient, bMuted);
}
public bool AddSearchPath(string SearchPath)
{
return NativeAddSearchPath(_NetClient, SearchPath);
}
/*
* Native imported functions from C++ unmanaged library declared private, so they can not be accessed
* directly through C# class method
......@@ -274,6 +279,7 @@ namespace VA
[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeInitialize( IntPtr pClient );
[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeFinalize( IntPtr pClient );
[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeReset( IntPtr pClient );
[ DllImport( "VANetCSWrapper" ) ] private static extern bool NativeAddSearchPath(IntPtr pClient, string sSearchPath);
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeEnumerateModules( IntPtr pClient, std::vector<CVAModuleInfo>& viModuleInfos );
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeCallModule( IntPtr pClient, char pcModuleID, const CVAStruct& oArgs, CVAStruct& oReturn );
[ DllImport( "VANetCSWrapper" ) ] private static extern int NativeLoadDirectivity( IntPtr pClient, string sFileName, string sName );
......
......@@ -75,7 +75,7 @@ public class VAUAdapter : MonoBehaviour {
_VA = new VANet();
Init();
DeactivateUnitySound();
_VA.AddSearchPath;
_VA.AddSearchPath(Application.dataPath + "/..");
}
void OnEnable()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment