mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-14 02:54:16 -04:00
Replace C++/CLI components with P/Invoke components (#562)
* Replace C++/CLI components with P/Invoke * Deleted C++/CLI projects * Use Utf8StringHandle to marshal UTF-8 strings * Use plaform-default calling convention * Handle DLL preloading on Linux and macOS * Change intermediate and output directories of native projects * Improve P/Invoke documentation
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
using AssetStudio.PInvoke;
|
||||
|
||||
namespace FMOD
|
||||
{
|
||||
@ -1587,6 +1588,12 @@ namespace FMOD
|
||||
*/
|
||||
public class Factory
|
||||
{
|
||||
|
||||
static Factory()
|
||||
{
|
||||
DllLoader.PreloadDll(VERSION.dll);
|
||||
}
|
||||
|
||||
public static RESULT System_Create(out System system)
|
||||
{
|
||||
system = null;
|
||||
|
Reference in New Issue
Block a user