Skip to content

Commit

Permalink
Updated to UnitDoorstop 4.3.0 .
Browse files Browse the repository at this point in the history
  • Loading branch information
CptMoore committed Dec 28, 2024
1 parent 2326d6b commit a409545
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ModTek.Preloader/ModTek.Preloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

<Target Name="DoorstopFetch" BeforeTargets="CopyFilesToGame" Condition="!Exists('$(BattleTechGameDir)\winhttp.dll')">
<PropertyGroup>
<DoorstopUrl>https://github.com/BattletechModders/UnityDoorstop/releases/download/4.2.0steamfix/doorstop_all_4.2.0steamfix.zip</DoorstopUrl>
<DoorstopUrl>https://github.com/BattletechModders/UnityDoorstop/releases/download/4.3.0steamfix/doorstop_all_4.3.0steamfix.zip</DoorstopUrl>
<DoorstopIntDir>$(MSBuildProjectExtensionsPath)\doorstop</DoorstopIntDir>
</PropertyGroup>
<DownloadFile SourceUrl="$(DoorstopUrl)" DestinationFolder="$(DoorstopIntDir)" />
<Unzip SourceFiles="$(DoorstopIntDir)\doorstop_all_4.2.0steamfix.zip" DestinationFolder="$(DoorstopIntDir)" />
<Unzip SourceFiles="$(DoorstopIntDir)\doorstop_all_4.3.0steamfix.zip" DestinationFolder="$(DoorstopIntDir)" />
<Copy SourceFiles="$(DoorstopIntDir)\doorstop_win_release\x64\winhttp.dll" DestinationFolder="$(BattleTechGameDir)" />
<Copy SourceFiles="$(DoorstopIntDir)\doorstop_linux_release\x64\libdoorstop.so" DestinationFolder="$(BattleTechGameDir)" />
<Copy SourceFiles="$(DoorstopIntDir)\doorstop_macos_release\x64\libdoorstop.dylib" DestinationFolder="$(BattleTechGameDir)" />
Expand Down
2 changes: 2 additions & 0 deletions ModTek.Preloader/doorstop_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ target_assembly=Mods\ModTek\lib\ModTek.Preloader.dll
redirect_output_log=false
# Options specific to running under Unity Mono runtime
[UnityMono]
# Overrides default Mono DLL search path
dll_search_path_override=Mods\ModTek\lib\
# If true, Mono debugger server will be enabled
debug_enabled=false
# When debug_enabled is true, specifies the address to use for the debugger server
Expand Down
12 changes: 7 additions & 5 deletions ModTek.Preloader/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ fi

# get doorstop settings for linux/mac from the ini (why does doorstop not do this for us?)
doorstop_config() { grep "^${1}=" "${BASEDIR}/doorstop_config.ini" | cut -d= -f2- ; }
doorstop_bool() { sed s@true@1@ | sed s@false@0@ ; }
export DOORSTOP_MONO_DEBUG_ENABLED="$(doorstop_config debug_enabled | doorstop_bool)"
doorstop_convert_bool() { sed s@true@1@ | sed s@false@0@ ; }
doorstop_convert_path() { tr '\\' '/' ; }
export DOORSTOP_MONO_DEBUG_ENABLED="$(doorstop_config debug_enabled | doorstop_convert_bool)"
export DOORSTOP_MONO_DEBUG_ADDRESS="$(doorstop_config debug_address)"
export DOORSTOP_MONO_DEBUG_SUSPEND="$(doorstop_config debug_suspend | doorstop_bool)"
export DOORSTOP_ENABLED="$(doorstop_config enabled | doorstop_bool)"
export DOORSTOP_TARGET_ASSEMBLY="$(doorstop_config target_assembly | tr '\\' '/' )"
export DOORSTOP_MONO_DEBUG_SUSPEND="$(doorstop_config debug_suspend | doorstop_convert_bool)"
export DOORSTOP_ENABLED="$(doorstop_config enabled | doorstop_convert_bool)"
export DOORSTOP_TARGET_ASSEMBLY="$(doorstop_config target_assembly | doorstop_convert_path)"
export DOORSTOP_MONO_DLL_SEARCH_PATH_OVERRIDE="$(doorstop_config dll_search_path_override | doorstop_convert_path)"

# check if the first parameter is the executable, e.g. as forwarded through Steam
if [ -n "${1:-}" ] && [ -x "$1" ]
Expand Down

0 comments on commit a409545

Please sign in to comment.