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

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,9 +279,10 @@ 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 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 );
[ 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 );
[ DllImport( "VANetCSWrapper" ) ] private static extern bool NativeFreeDirectivity( IntPtr pClient, int iDirID );
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeGetDirectivityInfo( IntPtr pClient, int iDirID, CVADirectivityInfo& );
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeGetDirectivityInfos( IntPtr pClient, std::vector<CVADirectivityInfo>& vdiDest );
......
......@@ -75,7 +75,7 @@ public class VAUAdapter : MonoBehaviour {
_VA = new VANet();
Init();
DeactivateUnitySound();
_VA.AddSearchPath;
_VA.AddSearchPath(Application.dataPath + "/..");
}
void OnEnable()
......
Markdown is supported
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