Changed: Improvements in patch system
This commit is contained in:
parent
81aa2a236a
commit
4011c6c70c
4 changed files with 29 additions and 24 deletions
|
@ -236,8 +236,6 @@ MACRO(NL_SETUP_DEFAULT_OPTIONS)
|
||||||
OPTION(WITH_COVERAGE "With Code Coverage Support" OFF)
|
OPTION(WITH_COVERAGE "With Code Coverage Support" OFF)
|
||||||
OPTION(WITH_PCH "With Precompiled Headers" ON )
|
OPTION(WITH_PCH "With Precompiled Headers" ON )
|
||||||
OPTION(FINAL_VERSION "Build in Final Version mode" ON )
|
OPTION(FINAL_VERSION "Build in Final Version mode" ON )
|
||||||
OPTION(WITH_PERFHUD "Build with NVIDIA PerfHUD support" OFF )
|
|
||||||
OPTION(WITH_PATCH_SUPPORT "Build with in-game Patch Support" OFF )
|
|
||||||
|
|
||||||
# Default to static building on Windows.
|
# Default to static building on Windows.
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
|
@ -325,6 +323,7 @@ MACRO(NL_SETUP_NEL_DEFAULT_OPTIONS)
|
||||||
|
|
||||||
OPTION(WITH_LIBOVR "With LibOVR support" OFF)
|
OPTION(WITH_LIBOVR "With LibOVR support" OFF)
|
||||||
OPTION(WITH_LIBVR "With LibVR support" OFF)
|
OPTION(WITH_LIBVR "With LibVR support" OFF)
|
||||||
|
OPTION(WITH_PERFHUD "With NVIDIA PerfHUD support" OFF)
|
||||||
ENDMACRO(NL_SETUP_NEL_DEFAULT_OPTIONS)
|
ENDMACRO(NL_SETUP_NEL_DEFAULT_OPTIONS)
|
||||||
|
|
||||||
MACRO(NL_SETUP_NELNS_DEFAULT_OPTIONS)
|
MACRO(NL_SETUP_NELNS_DEFAULT_OPTIONS)
|
||||||
|
@ -343,6 +342,7 @@ MACRO(NL_SETUP_RYZOM_DEFAULT_OPTIONS)
|
||||||
OPTION(WITH_RYZOM_TOOLS "Build Ryzom Core Tools" ON )
|
OPTION(WITH_RYZOM_TOOLS "Build Ryzom Core Tools" ON )
|
||||||
OPTION(WITH_RYZOM_SERVER "Build Ryzom Core Services" ON )
|
OPTION(WITH_RYZOM_SERVER "Build Ryzom Core Services" ON )
|
||||||
OPTION(WITH_RYZOM_SOUND "Enable Ryzom Core Sound" ON )
|
OPTION(WITH_RYZOM_SOUND "Enable Ryzom Core Sound" ON )
|
||||||
|
OPTION(WITH_RYZOM_PATCH "Enable Ryzom in-game patch support" OFF)
|
||||||
|
|
||||||
###
|
###
|
||||||
# Optional support
|
# Optional support
|
||||||
|
|
|
@ -4,8 +4,12 @@ ADD_SUBDIRECTORY(client_sheets)
|
||||||
|
|
||||||
IF(WITH_RYZOM_CLIENT)
|
IF(WITH_RYZOM_CLIENT)
|
||||||
|
|
||||||
|
IF(WITH_RYZOM_PATCH)
|
||||||
|
ADD_DEFINITIONS(-DRZ_USE_PATCH)
|
||||||
|
ENDIF(WITH_RYZOM_PATCH)
|
||||||
|
|
||||||
# These are Windows/MFC apps
|
# These are Windows/MFC apps
|
||||||
SET(SEVENZIP_LIBRARY "ryzom_sevenzip")
|
SET(SEVENZIP_LIBRARY "ryzom_sevenzip")
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(seven_zip)
|
ADD_SUBDIRECTORY(seven_zip)
|
||||||
|
|
||||||
|
|
|
@ -422,16 +422,16 @@ CClientConfig::CClientConfig()
|
||||||
MouseOverFX = "sfx_selection_mouseover.ps";
|
MouseOverFX = "sfx_selection_mouseover.ps";
|
||||||
SelectionFXSize = 0.8f;
|
SelectionFXSize = 0.8f;
|
||||||
|
|
||||||
// only force patching under Windows by default
|
#if RZ_PATCH
|
||||||
#if WITH_PATCH_SUPPORT
|
PatchWanted = true;
|
||||||
PatchWanted = true;
|
#else
|
||||||
#else
|
PatchWanted = false;
|
||||||
PatchWanted = false;
|
#endif
|
||||||
#endif
|
|
||||||
PatchUrl = "";
|
PatchUrl.clear();
|
||||||
PatchletUrl = "";
|
PatchletUrl.clear();
|
||||||
PatchVersion = "";
|
PatchVersion.clear();
|
||||||
PatchServer = "";
|
PatchServer.clear();
|
||||||
|
|
||||||
WebIgMainDomain = "atys.ryzom.com";
|
WebIgMainDomain = "atys.ryzom.com";
|
||||||
WebIgTrustedDomains.push_back(WebIgMainDomain);
|
WebIgTrustedDomains.push_back(WebIgMainDomain);
|
||||||
|
|
|
@ -18,16 +18,14 @@
|
||||||
// Includes
|
// Includes
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include "stdpch.h"
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifndef NL_OS_WINDOWS
|
||||||
//windows doesnt have unistd.h
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stdpch.h"
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
@ -46,10 +44,10 @@
|
||||||
#include "nel/misc/big_file.h"
|
#include "nel/misc/big_file.h"
|
||||||
#include "nel/misc/i18n.h"
|
#include "nel/misc/i18n.h"
|
||||||
|
|
||||||
#define NL_USE_SEVENZIP 1
|
#define RZ_USE_SEVENZIP 1
|
||||||
|
|
||||||
// 7 zip includes
|
// 7 zip includes
|
||||||
#ifdef NL_USE_SEVENZIP
|
#ifdef RZ_USE_SEVENZIP
|
||||||
#include "seven_zip/7zCrc.h"
|
#include "seven_zip/7zCrc.h"
|
||||||
#include "seven_zip/7zIn.h"
|
#include "seven_zip/7zIn.h"
|
||||||
#include "seven_zip/7zExtract.h"
|
#include "seven_zip/7zExtract.h"
|
||||||
|
@ -746,7 +744,6 @@ void CPatchManager::deleteBatchFile()
|
||||||
// ****************************************************************************
|
// ****************************************************************************
|
||||||
void CPatchManager::createBatchFile(CProductDescriptionForClient &descFile, bool wantRyzomRestart, bool useBatchFile)
|
void CPatchManager::createBatchFile(CProductDescriptionForClient &descFile, bool wantRyzomRestart, bool useBatchFile)
|
||||||
{
|
{
|
||||||
|
|
||||||
uint nblab = 0;
|
uint nblab = 0;
|
||||||
|
|
||||||
FILE *fp = NULL;
|
FILE *fp = NULL;
|
||||||
|
@ -920,7 +917,7 @@ void CPatchManager::createBatchFile(CProductDescriptionForClient &descFile, bool
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
fprintf(fp, "start %s %%1 %%2 %%3\n", RyzomFilename.c_str());
|
fprintf(fp, "start %s %%1 %%2 %%3\n", RyzomFilename.c_str());
|
||||||
#else
|
#else
|
||||||
fprintf(fp, "/opt/tita/%s $1 $2 $3\n", RyzomFilename.c_str());
|
fprintf(fp, "%s $1 $2 $3\n", RyzomFilename.c_str());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1010,7 +1007,9 @@ void CPatchManager::executeBatchFile()
|
||||||
{
|
{
|
||||||
int errsv = errno;
|
int errsv = errno;
|
||||||
nlerror("Execl Error: %d %s", errsv, strCmdLine.c_str(), (char *) NULL);
|
nlerror("Execl Error: %d %s", errsv, strCmdLine.c_str(), (char *) NULL);
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
nlinfo("Ran batch file r2Mode Success");
|
nlinfo("Ran batch file r2Mode Success");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1020,7 +1019,9 @@ void CPatchManager::executeBatchFile()
|
||||||
{
|
{
|
||||||
int errsv = errno;
|
int errsv = errno;
|
||||||
nlerror("Execl r2mode Error: %d %s", errsv, strCmdLine.c_str());
|
nlerror("Execl r2mode Error: %d %s", errsv, strCmdLine.c_str());
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
nlinfo("Ran batch file Success");
|
nlinfo("Ran batch file Success");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue