commit 0e4f45ed4ef71ac144631181ad1d086db5a6e30c parent ccccaa3d5723ba6eeca8232d4ab825c63a942c64 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Sep 2 20:51:17 +0300 Windows launcher hack Diffstat:
launcher/main.cc | | | 7 | +++++++ |
diff --git a/launcher/main.cc b/launcher/main.cc @@ -532,7 +532,14 @@ static WORK_QUEUE_CALLBACK( install_update ) { rename( launcher_path, old.c_str() ); } recursive_mkdir( NULL, file_name.c_str() ); + // TODO: put this somewhere proper +#if PLATFORM_WINDOWS + MoveFileEx( ( "update/" + file_name ).c_str(), file_name.c_str(), MOVEFILE_REPLACE_EXISTING ); +#elif PLATFORM_UNIX rename( ( "update/" + file_name ).c_str(), file_name.c_str() ); +#else +#error new platform +#endif }