@@ -26,33 +26,38 @@ public static void DeleteSystemLibs() {
2626 public static void SetupNativeLibs ( ) {
2727 string [ ] libSrcs ; // Later entries take priority
2828 string libDstDir ;
29+ string steamworksLibSrc ;
2930 Dictionary < string , string > dllMap = new Dictionary < string , string > ( ) ;
3031
3132 switch ( Globals . Platform ) {
3233 case Globals . InstallPlatform . Windows : {
3334 // Setup Windows native libs
3435 if ( Environment . Is64BitOperatingSystem ) {
36+ steamworksLibSrc = Path . Combine ( Globals . PathEverestLib , "lib64-win-x64" , "Steamworks.NET.dll" ) ;
3537 libSrcs = new string [ ] { Path . Combine ( Globals . PathEverestLib , "lib64-win-x64" ) , Path . Combine ( Globals . PathGame , "runtimes" , "win-x64" , "native" ) } ;
3638 libDstDir = Path . Combine ( Globals . PathGame , "lib64-win-x64" ) ;
3739 dllMap . Add ( "fmodstudio64.dll" , "fmodstudio.dll" ) ;
3840 } else {
3941 // We can take some native libraries from the vanilla install
42+ steamworksLibSrc = Path . Combine ( Globals . PathEverestLib , "lib64-win-x86" , "Steamworks.NET.dll" ) ;
4043 libSrcs = new string [ ] {
41- Path . Combine ( Globals . PathOrig , "fmod.dll" ) , Path . Combine ( Globals . PathOrig , "fmodstudio.dll" ) , Path . Combine ( Globals . PathOrig , "steam_api.dll" ) ,
44+ Path . Combine ( Globals . PathOrig , "fmod.dll" ) , Path . Combine ( Globals . PathOrig , "fmodstudio.dll" ) ,
4245 Path . Combine ( Globals . PathEverestLib , "lib64-win-x86" ) , Path . Combine ( Globals . PathGame , "runtimes" , "win-x86" , "native" )
4346 } ;
4447 libDstDir = Path . Combine ( Globals . PathGame , "lib64-win-x86" ) ;
4548 }
4649 } break ;
4750 case Globals . InstallPlatform . Linux : {
4851 // Setup Linux native libs
52+ steamworksLibSrc = Path . Combine ( Globals . PathEverestLib , "lib64-linux" , "Steamworks.NET.dll" ) ;
4953 libSrcs = new string [ ] { Path . Combine ( Globals . PathOrig , "lib64" ) , Path . Combine ( Globals . PathEverestLib , "lib64-linux" ) , Path . Combine ( Globals . PathGame , "runtimes" , "linux-x64" , "native" ) } ;
5054 libDstDir = Path . Combine ( Globals . PathGame , "lib64-linux" ) ;
5155 MiscUtil . ParseMonoNativeLibConfig ( Path . Combine ( Globals . PathOrig , "Celeste.exe.config" ) , "linux" , dllMap , "lib{0}.so" ) ;
5256 MiscUtil . ParseMonoNativeLibConfig ( Path . Combine ( Globals . PathOrig , "FNA.dll.config" ) , "linux" , dllMap , "lib{0}.so" ) ;
5357 } break ;
5458 case Globals . InstallPlatform . MacOS : {
5559 // Setup MacOS native libs
60+ steamworksLibSrc = Path . Combine ( Globals . PathEverestLib , "lib64-osx" , "Steamworks.NET.dll" ) ;
5661 libSrcs = new string [ ] { Path . Combine ( Globals . PathOrig , "osx" ) , Path . Combine ( Globals . PathEverestLib , "lib64-osx" ) , Path . Combine ( Globals . PathGame , "runtimes" , "osx" , "native" ) } ;
5762 libDstDir = Path . Combine ( Globals . PathGame , "lib64-osx" ) ;
5863 MiscUtil . ParseMonoNativeLibConfig ( Path . Combine ( Globals . PathOrig , "Celeste.exe.config" ) , "osx" , dllMap , "lib{0}.dylib" ) ;
@@ -99,6 +104,11 @@ void CopyNativeLib(string src, string dst) {
99104 }
100105 }
101106
107+ // Copy our Steamworks.NET.dll
108+ string steamworksLibDst = Path . Combine ( Globals . PathGame , "Steamworks.NET.dll" ) ;
109+ File . Delete ( steamworksLibDst ) ;
110+ File . Copy ( steamworksLibSrc , steamworksLibDst ) ;
111+
102112 // Delete old libraries
103113 foreach ( string libFile in Globals . WindowsNativeLibFileNames )
104114 File . Delete ( Path . Combine ( Globals . PathGame , libFile ) ) ;
@@ -270,4 +280,4 @@ public static void SetupAppHosts(string appExe, string appDll, string resDll = n
270280 } break ;
271281 }
272282 }
273- }
283+ }
0 commit comments