mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 11:49:09 +00:00
Add the patcher
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
add_definitions(-D_LIB) # We shouldn't actually need this here, but
|
||||
# Cyan uses it, so meh
|
||||
|
||||
add_subdirectory(plClient)
|
||||
add_subdirectory(plClientPatcher)
|
||||
add_subdirectory(plPythonPack)
|
||||
add_subdirectory(plUruLauncher)
|
||||
|
@ -0,0 +1,23 @@
|
||||
add_definitions(-D_LIB)
|
||||
|
||||
include_directories("../../CoreLib")
|
||||
include_directories("../../NucleusLib/inc")
|
||||
include_directories("../../NucleusLib")
|
||||
include_directories("../../PubUtilLib")
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
set(plClientPatcher_HEADERS
|
||||
Intern.h
|
||||
Pch.h
|
||||
UruPlayer.h
|
||||
)
|
||||
|
||||
set(plClientPatcher_SOURCES
|
||||
UruPlayer.cpp
|
||||
)
|
||||
|
||||
add_library(plClientPatcher STATIC ${plClientPatcher_HEADERS} ${plClientPatcher_SOURCES})
|
||||
|
||||
source_group("Header Files" FILES ${plClientPatcher_HEADERS})
|
||||
source_group("Source Files" FILES ${plClientPatcher_SOURCES})
|
@ -487,7 +487,7 @@ static void ProcessManifestEntry (void * param, ENetError error) {
|
||||
}
|
||||
|
||||
// if we have a file that was cached the MD5 check will be really fast throwing off our approx time remaining.
|
||||
dword t = TimeGetTime() / kTimeIntervalsPerMs - start;
|
||||
dword t = (dword)(TimeGetTime() / kTimeIntervalsPerMs - start);
|
||||
if(t < 25)
|
||||
{
|
||||
// cached file
|
||||
@ -561,7 +561,7 @@ static void ProcessManifest (void * param) {
|
||||
}
|
||||
}
|
||||
|
||||
ProcessManifestEntryParam::startTime = TimeGetTime() / kTimeIntervalsPerMs;
|
||||
ProcessManifestEntryParam::startTime = (double)(TimeGetTime() / kTimeIntervalsPerMs);
|
||||
|
||||
for (unsigned i = 0; i < entryCount && s_running; ++i){
|
||||
ProcessManifestEntry(¶ms[i], kNetSuccess);
|
||||
|
@ -0,0 +1,66 @@
|
||||
include_directories("../../Apps")
|
||||
include_directories("../../CoreLib")
|
||||
include_directories("../../NucleusLib/inc")
|
||||
include_directories("../../NucleusLib")
|
||||
include_directories("../../PubUtilLib")
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
set(plUruLauncher_HEADERS
|
||||
Intern.h
|
||||
Pch.h
|
||||
plLauncherInfo.h
|
||||
)
|
||||
|
||||
set(plUruLauncher_SOURCES
|
||||
Main.cpp
|
||||
SelfPatcher.cpp
|
||||
)
|
||||
|
||||
set(plUruLauncher_RESOURCES
|
||||
plUruLauncher.rc
|
||||
resource.h
|
||||
|
||||
banner.bmp
|
||||
Dirt.ICO
|
||||
)
|
||||
|
||||
add_executable(plUruLauncher WIN32 ${plUruLauncher_SOURCES} ${plUruLauncher_HEADERS}
|
||||
${plUruLauncher_RESOURCES})
|
||||
target_link_libraries(plUruLauncher CoreLib)
|
||||
target_link_libraries(plUruLauncher CoreLibExe)
|
||||
target_link_libraries(plUruLauncher plAudioCore)
|
||||
target_link_libraries(plUruLauncher plClientPatcher)
|
||||
target_link_libraries(plUruLauncher plCompression)
|
||||
target_link_libraries(plUruLauncher plEncryption)
|
||||
target_link_libraries(plUruLauncher plFile)
|
||||
target_link_libraries(plUruLauncher plNetClient)
|
||||
target_link_libraries(plUruLauncher plNetClientComm)
|
||||
target_link_libraries(plUruLauncher plNetGameLib)
|
||||
target_link_libraries(plUruLauncher plNetMessage)
|
||||
target_link_libraries(plUruLauncher plNetTransport)
|
||||
target_link_libraries(plUruLauncher plUnifiedTime)
|
||||
target_link_libraries(plUruLauncher pnAsyncCore)
|
||||
target_link_libraries(plUruLauncher pnAsyncCoreExe)
|
||||
target_link_libraries(plUruLauncher pnNetBase)
|
||||
target_link_libraries(plUruLauncher pnNetCli)
|
||||
target_link_libraries(plUruLauncher pnNetCommon)
|
||||
target_link_libraries(plUruLauncher pnNetProtocol)
|
||||
target_link_libraries(plUruLauncher pnProduct)
|
||||
target_link_libraries(plUruLauncher pnSimpleNet)
|
||||
target_link_libraries(plUruLauncher pnTimer)
|
||||
target_link_libraries(plUruLauncher pnUtils)
|
||||
target_link_libraries(plUruLauncher pnUtilsExe)
|
||||
|
||||
target_link_libraries(plUruLauncher ${OPENSSL_LIBRARIES})
|
||||
target_link_libraries(plUruLauncher ${Ogg_LIBRARIES})
|
||||
target_link_libraries(plUruLauncher ${Vorbis_LIBRARIES})
|
||||
target_link_libraries(plUruLauncher ws2_32)
|
||||
target_link_libraries(plUruLauncher winhttp)
|
||||
target_link_libraries(plUruLauncher rpcrt4)
|
||||
target_link_libraries(plUruLauncher dxerr9)
|
||||
target_link_libraries(plUruLauncher comctl32)
|
||||
|
||||
source_group("Source Files" FILES ${plUruLauncher_SOURCES})
|
||||
source_group("Header Files" FILES ${plUruLauncher_HEADERS})
|
||||
source_group("Resource Files" FILES ${plUruLauncher_RESOURCES})
|
@ -36,6 +36,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include <process.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#include <WinHttp.h>
|
||||
|
||||
#include "pnUtils/pnUtils.h"
|
||||
#include "pnNetBase/pnNetBase.h"
|
||||
#include "pnAsyncCore/pnAsyncCore.h"
|
||||
@ -45,9 +50,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "plEncryption/plChecksum.h"
|
||||
|
||||
#include "plCompression/plZlibStream.h"
|
||||
#include "../plClientPatcher/UruPlayer.h"
|
||||
#include "plClientPatcher/UruPlayer.h"
|
||||
|
||||
#include "plLauncherInfo.h"
|
||||
#include "Intern.h"
|
||||
#include "WinHttp.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
#include <afxres.h>
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
@ -34,7 +34,7 @@ END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"#include <afxres.h>\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
|
Reference in New Issue
Block a user