File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -533,6 +533,10 @@ public void Start()
533533 return true ;
534534 }
535535 string gameDataDir = CoreService . coreVars . AndroidAppLocation + package ;
536+ if ( Directory . Exists ( backupDir + "obb/" + package ) )
537+ {
538+ FileManager . DirectoryCopy ( backupDir + "obb/" + package , CoreService . coreVars . AndroidObbLocation + package , true ) ;
539+ }
536540 serverRequest . SendString ( Directory . Exists ( backupDir + package ) . ToString ( ) , "text/plain" , 200 ) ;
537541 return true ;
538542 } ) ) ;
@@ -586,12 +590,6 @@ public void Start()
586590 serverRequest . SendString ( "Game data of " + package + " was unable to be restored: " + e . Message , "text/plain" , 500 ) ;
587591 return true ;
588592 }
589-
590- if ( Directory . Exists ( backupDir + "obb/" + package ) )
591- {
592- FileManager . DirectoryCopy ( backupDir + "obb/" + package , CoreService . coreVars . AndroidObbLocation + package , true ) ;
593- }
594-
595593 serverRequest . SendString ( "Game data restored" , "text/plain" , 200 ) ;
596594 return true ;
597595 } ) ) ;
You can’t perform that action at this time.
0 commit comments