File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -72,16 +72,16 @@ private unsafe void DrawBackgroundTexture() {
7272 var vanillaBgPath = $ "{ AgentMap . Instance ( ) ->SelectedMapBgPath . ToString ( ) } .tex";
7373 var vanillaFgPath = $ "{ AgentMap . Instance ( ) ->SelectedMapPath . ToString ( ) } .tex";
7474
75- var bgPath = Service . TextureSubstitutionProvider . GetSubstitutedPath ( vanillaBgPath ) ;
76- var fgPath = Service . TextureSubstitutionProvider . GetSubstitutedPath ( vanillaFgPath ) ;
75+ var moddedBgPath = Service . TextureSubstitutionProvider . GetSubstitutedPath ( vanillaBgPath ) ;
76+ var moddedFgPath = Service . TextureSubstitutionProvider . GetSubstitutedPath ( vanillaFgPath ) ;
7777
78- var bgFile = Path . IsPathRooted ( bgPath ) ?
79- Service . DataManager . GameData . GetFileFromDisk < TexFile > ( bgPath ) :
80- Service . DataManager . GetFile < TexFile > ( $ " { AgentMap . Instance ( ) -> SelectedMapBgPath . ToString ( ) } .tex" ) ;
78+ var bgFile = Path . IsPathRooted ( moddedBgPath ) ?
79+ Service . DataManager . GameData . GetFileFromDisk < TexFile > ( moddedBgPath ) :
80+ Service . DataManager . GetFile < TexFile > ( vanillaBgPath ) ;
8181
82- var fgFile = Path . IsPathRooted ( fgPath ) ?
83- Service . DataManager . GameData . GetFileFromDisk < TexFile > ( fgPath ) :
84- Service . DataManager . GetFile < TexFile > ( $ " { AgentMap . Instance ( ) -> SelectedMapPath . ToString ( ) } .tex" ) ;
82+ var fgFile = Path . IsPathRooted ( moddedFgPath ) ?
83+ Service . DataManager . GameData . GetFileFromDisk < TexFile > ( moddedFgPath ) :
84+ Service . DataManager . GetFile < TexFile > ( vanillaFgPath ) ;
8585
8686 if ( bgFile is null || fgFile is null ) {
8787 Service . Log . Warning ( "Failed to load map textures" ) ;
You can’t perform that action at this time.
0 commit comments