From dfb187126a859ccd46cae90b12592e4ddf8d4792 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 23 Mar 2014 20:26:29 +0100 Subject: [PATCH] Changed: Create .sh file under Unix --HG-- branch : compatibility --- code/ryzom/client/src/client.cpp | 3 +++ code/ryzom/client/src/login_patch.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 368afe0ee..01e3e08b0 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -540,6 +540,9 @@ int main(int argc, char **argv) // ignore signal SIGPIPE generated by libwww signal(SIGPIPE, sigHandler); + // Delete the .sh file because it s not useful anymore + if (NLMISC::CFile::fileExists("updt_nl.sh")) + NLMISC::CFile::deleteFile("updt_nl.sh"); #endif // initialize patch manager and set the ryzom full path, before it's used diff --git a/code/ryzom/client/src/login_patch.cpp b/code/ryzom/client/src/login_patch.cpp index a51f2c1d5..4c45f7781 100644 --- a/code/ryzom/client/src/login_patch.cpp +++ b/code/ryzom/client/src/login_patch.cpp @@ -168,7 +168,11 @@ CPatchManager::CPatchManager() : State("t_state"), DataScanState("t_data_scan_st { DescFilename = "ryzom_xxxxx.idx"; +#ifdef NL_OS_WINDOWS UpdateBatchFilename = "updt_nl.bat"; +#else + UpdateBatchFilename = "updt_nl.sh"; +#endif // use current directory by default setClientRootPath("./");