File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ public override void OnInspectorGUI() {
214
214
}
215
215
}
216
216
217
- private bool HideRepairMissingScripts ( ) {
217
+ private static bool HideRepairMissingScripts ( ) {
218
218
var docPath = Application . dataPath + "/FbxExporters/FBX_Exporter_User_Guide_v1.1.0b1.pdf" ;
219
219
return File . Exists ( docPath ) ? false : true ;
220
220
}
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public static bool ReplaceGUIDInTextAssets ()
65
65
private static bool ReplaceGUIDInFile ( string path )
66
66
{
67
67
// try to read file, assume it's a text file for now
68
- int modified = 0 ;
68
+ bool modified = false ;
69
69
70
70
try {
71
71
var sr = new StreamReader ( path ) ;
@@ -90,8 +90,8 @@ private static bool ReplaceGUIDInFile (string path)
90
90
var line = sr . ReadLine ( ) ;
91
91
92
92
if ( line . Contains ( ForumPackageSearchID ) ) {
93
- modified ++ ;
94
93
line = line . Replace ( ForumPackageSearchID , CurrentPackageSearchID ) ;
94
+ modified |= true ;
95
95
}
96
96
97
97
sw . WriteLine ( line ) ;
@@ -100,7 +100,7 @@ private static bool ReplaceGUIDInFile (string path)
100
100
sr . Close ( ) ;
101
101
sw . Close ( ) ;
102
102
103
- if ( modified > 0 ) {
103
+ if ( modified ) {
104
104
File . Delete ( path ) ;
105
105
File . Move ( path + ".remap" , path ) ;
106
106
return true ;
You can’t perform that action at this time.
0 commit comments