Skip to content

Commit 5e70de1

Browse files
committed
move to tc2
1 parent d1da88d commit 5e70de1

File tree

14 files changed

+75
-1741
lines changed

14 files changed

+75
-1741
lines changed

engine/host.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4166,6 +4166,10 @@ void Host_Init( bool bDedicated )
41664166
// stop the various windows error message boxes from showing up (used by the auto-builder so it doesn't block on error)
41674167
Sys_NoCrashDialog();
41684168
}
4169+
else
4170+
{
4171+
Sys_FixAlignment();
4172+
}
41694173

41704174
TRACEINIT( NET_Init( bDedicated ), NET_Shutdown() );
41714175

engine/net_ws.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,7 +3271,11 @@ void NET_Init( bool bIsDedicated )
32713271
net_notcp = false;
32723272
}
32733273

3274+
#ifdef DEDICATED
32743275
if (CommandLine()->FindParm("-nohltv"))
3276+
#else
3277+
if (!CommandLine()->FindParm("-hltv"))
3278+
#endif
32753279
{
32763280
net_nohltv = true;
32773281
}

engine/sys.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ void Sys_CreateFileAssociations( int count, FileAssociationInfo *list );
5656

5757
// disables the system crash dialogs on windows, stub otherwise
5858
void Sys_NoCrashDialog();
59+
void Sys_FixAlignment();
5960
void Sys_TestSendKey( const char *pKey );
6061
void Sys_OutputDebugString(const char *msg);
6162

engine/sys_dll.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,13 @@ void Sys_NoCrashDialog()
15351535
#endif
15361536
}
15371537

1538+
void Sys_FixAlignment()
1539+
{
1540+
#if defined(_WIN32)
1541+
::SetErrorMode(SetErrorMode(SEM_NOALIGNMENTFAULTEXCEPT) | SEM_NOALIGNMENTFAULTEXCEPT);
1542+
#endif
1543+
}
1544+
15381545
void Sys_TestSendKey( const char *pKey )
15391546
{
15401547
#if defined(_WIN32) && !defined(USE_SDL) && !defined(_XBOX)

filesystem/filesystem_stdio.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,8 @@ static HANDLE OpenWin32File( const char *filename, bool bOverlapped, bool bUnbuf
12641264
createFlags |= FILE_FLAG_NO_BUFFERING;
12651265
}
12661266

1267+
//createFlags |= FILE_FLAG_SEQUENTIAL_SCAN;
1268+
12671269
hFile = ::CreateFile( filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, createFlags, NULL );
12681270
if ( hFile != INVALID_HANDLE_VALUE && !*pFileSize )
12691271
{

game/client/client_base.vpc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ $Configuration "Debug"
6767

6868
$Debugging
6969
{
70-
$CommandArguments "-steam -game tf -insecure -novid -nojoy -nosteamcontroller -nohltv -particle_fallback 2 -dev -allowdebug -condebug" [$WINDOWS]
70+
$CommandArguments "-steam -game tf -insecure -novid -nojoy -nosteamcontroller -particle_fallback 2 -allowdebug -condebug" [$WINDOWS]
7171
}
7272
}
7373

@@ -85,7 +85,7 @@ $Configuration "Release"
8585

8686
$Debugging
8787
{
88-
$CommandArguments "-steam -game tf -insecure -novid -nojoy -nosteamcontroller -nohltv -particle_fallback 2 -allowdebug" [$WINDOWS]
88+
$CommandArguments "-steam -game tf -insecure -novid -nojoy -nosteamcontroller -particle_fallback 2 -allowdebug" [$WINDOWS]
8989
}
9090
}
9191

game_clean/copy/start_tf2.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo OFF
2-
hl2.bat -novid -nojoy -nosteamcontroller -nohltv -particle_fallback 2 %* < nul
2+
hl2.bat -novid -nojoy -nosteamcontroller -particle_fallback 2 %* < nul

0 commit comments

Comments
 (0)