@@ -33,6 +33,9 @@ class netcore
3333	char  *dotnet_loader_assembly_path;
3434
3535public: 
36+ 	execution_path_w *core_execution_path_w;
37+ 	execution_path_c *core_execution_path_c;
38+ 
3639	load_from_source_w *core_load_from_source_w;
3740	load_from_source_c *core_load_from_source_c;
3841
@@ -53,6 +56,9 @@ class netcore
5356	const  CHARSTRING *class_name = W(" CSLoader.MetacallEntryPoint"  );
5457	const  CHARSTRING *assembly_name = W(" CSLoader"  );
5558
59+ 	const  CHARSTRING *delegate_execution_path_w = W(" ExecutionPathW"  );
60+ 	const  CHARSTRING *delegate_execution_path_c = W(" ExecutionPathW"  );
61+ 
5662	const  CHARSTRING *delegate_load_source_w = W(" LoadSourceW"  );
5763	const  CHARSTRING *delegate_load_source_c = W(" LoadSourceC"  );
5864
@@ -75,20 +81,23 @@ class netcore
7581	virtual  bool  start () = 0;
7682	virtual  void  stop () = 0;
7783
78- 	bool  load_source (wchar_t  *source);
79- 	bool  load_source (char  *source);
84+ 	bool  execution_path (const  wchar_t  *path);
85+ 	bool  execution_path (const  char  *path);
86+ 
87+ 	bool  load_source (const  wchar_t  *source);
88+ 	bool  load_source (const  char  *source);
8089
81- 	bool  load_files (wchar_t  **source, size_t  size);
82- 	bool  load_files (char  **source, size_t  size);
90+ 	bool  load_files (const   wchar_t  **source, size_t  size);
91+ 	bool  load_files (const   char  **source, size_t  size);
8392
84- 	bool  load_assembly (wchar_t  *source);
85- 	bool  load_assembly (char  *source);
93+ 	bool  load_assembly (const   wchar_t  *source);
94+ 	bool  load_assembly (const   char  *source);
8695
87- 	execution_result *execute (char  *function);
88- 	execution_result *execute (wchar_t  *function);
96+ 	execution_result *execute (const   char  *function);
97+ 	execution_result *execute (const   wchar_t  *function);
8998
90- 	execution_result *execute_with_params (char  *function, parameters *params);
91- 	execution_result *execute_with_params (wchar_t  *function, parameters *params);
99+ 	execution_result *execute_with_params (const   char  *function, parameters *params);
100+ 	execution_result *execute_with_params (const   wchar_t  *function, parameters *params);
92101
93102	bool  create_delegates ();
94103
0 commit comments