Skip to content
Snippets Groups Projects
Commit e4aeaa11 authored by Maurice Tayeb Andreas's avatar Maurice Tayeb Andreas
Browse files

part of adding AddSearchPath

parent 16695271
No related branches found
No related tags found
No related merge requests found
...@@ -258,6 +258,11 @@ namespace VA ...@@ -258,6 +258,11 @@ namespace VA
{ {
NativeSetOutputMuted(_NetClient, bMuted); 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 * Native imported functions from C++ unmanaged library declared private, so they can not be accessed
* directly through C# class method * directly through C# class method
...@@ -274,6 +279,7 @@ namespace VA ...@@ -274,6 +279,7 @@ namespace VA
[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeInitialize( IntPtr pClient ); [ DllImport( "VANetCSWrapper" ) ] private static extern void NativeInitialize( IntPtr pClient );
[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeFinalize( 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 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 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 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 int NativeLoadDirectivity( IntPtr pClient, string sFileName, string sName );
......
...@@ -75,7 +75,7 @@ public class VAUAdapter : MonoBehaviour { ...@@ -75,7 +75,7 @@ public class VAUAdapter : MonoBehaviour {
_VA = new VANet(); _VA = new VANet();
Init(); Init();
DeactivateUnitySound(); DeactivateUnitySound();
_VA.AddSearchPath; _VA.AddSearchPath(Application.dataPath + "/..");
} }
void OnEnable() void OnEnable()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment