mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 20:59:09 +00:00
Add the patcher
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user