我从未尝试过,但这就是我的猜测(假设您无法覆盖正在执行的文件。如果可以,这一切都比较简单)
Updater A checks if its the newest versionIf launcher isnt the newest version Download the differences (to save bandwidth) to file B Apply the delta to own pre into file C Launch file C. CloseIf file C exists (update happened recently) Try to delete C (update was previous launch, delete temporary file) If delete fails (We are C, means A is out of date) Copy C over A (update launcher) Note that you can keep going, dont have to restart even though we are C.If game isnt newest version Download the differences (to save bandwidth) to file B Apply the delta to game into file D delete game Rename D -> gameRun game
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)