Various fixes

This commit is contained in:
Cfauto 2026-06-15 19:43:49 +02:00
parent 0e658a0919
commit 10391eddf4
No known key found for this signature in database
GPG Key ID: C3C71FD00DACCDB5
9 changed files with 40 additions and 51 deletions

View File

@ -1,4 +1,4 @@
name: Build
name: Build Half-Life 2
on: [push, pull_request]
env:
@ -122,4 +122,4 @@ jobs:
name: windows${{matrix.bits}}${{matrix.flags}}
path: |
build_hl2
!build_hl2/**/*.pdb
!build_hl2/**/*.pdb

View File

@ -1,48 +1,28 @@
# Source Engine
[![GitHub Actions Status](https://github.com/nillerusr/source-engine/actions/workflows/build.yml/badge.svg)](https://github.com/nillerusr/source-engine/actions/workflows/build.yml) [![GitHub Actions Status](https://github.com/nillerusr/source-engine/actions/workflows/tests.yml/badge.svg)](https://github.com/nillerusr/source-engine/actions/workflows/tests.yml)
Discord: [![Discord Server](https://img.shields.io/discord/672055862608658432.svg)](https://discord.gg/hZRB7WMgGw)
[![GitHub Actions Status](https://github.com/Cfauto28/source-engine/actions/workflows/build.yml/badge.svg)](https://github.com/Cfauto28/source-engine/actions/workflows/build.yml) [![GitHub Actions Status](https://github.com/Cfauto28/source-engine/actions/workflows/tests.yml/badge.svg)](https://github.com/Cfauto28/source-engine/actions/workflows/tests.yml)
Information from [wikipedia](https://wikipedia.org/wiki/Source_(game_engine)):
Source is a 3D game engine developed by Valve.
It debuted as the successor to GoldSrc with Half-Life: Source in June 2004,
followed by Counter-Strike: Source and Half-Life 2 later that year.
Source does not have a concise version numbering scheme; instead, it was released in incremental versions
Source code is based on TF2 2018 leak. Don't use it for commercial purposes.
This project is using waf buildsystem. If you have waf-related questions look https://waf.io/book
# Features:
- Android, OSX, FreeBSD, Windows, Linux( glibc, musl ) support
- Arm support( except windows )
- 64bit support
- Modern toolchains support
- Fixed many undefined behaviours
- Touch support( even on windows/linux/osx )
- VTF 7.5 support
- PBR support
- bsp v19-v21 support( bsp v21 support is partial, portal 2 and csgo maps works fine )
- mdl v46-49 support
- Removed useless/unnecessary dependencies
- Achivement system working without steam
- Fixed many bugs
- Serverbrowser works without steam
- [x] Android, macOS, FreeBSD, Windows, Linux (glibc, musl) support
- [x] Arm support (except windows)
- [x] 64bit support
- [x] Modern toolchains support
- [x] Fixed many undefined behaviours
- [x] Touch support (even on windows/linux/macos)
- [x] VTF 7.5 support
- [x] PBR support
- [x] bsp v19-v21 support (bsp v21 support is partial, portal 2 and csgo maps work fine)
- [x] mdl v46-49 support
- [x] Removed useless/unnecessary dependencies
- [x] Achivement system working without steam
- [x] Fixed many bugs
- [x] Serverbrowser works without steam
- [x] VScript support (based on the Mapbase implementation)
- [ ] Rewrite materialsystem for OpenGL render
- [ ] dxvk-native support
- [ ] Elbrus port
- [ ] Bink audio support (for video_bink)
# Current tasks
- Rewrite materialsystem for OpenGL render
- dxvk-native support
- Elbrus port
- Bink audio support( for video_bink )
# How to Build?
- [Building instructions(EN)](https://github.com/nillerusr/source-engine/wiki/Source-Engine-(EN))
- [Building instructions(RU)](https://github.com/nillerusr/source-engine/wiki/Source-Engine-(RU))
# Support me
BTC: `bc1qnjq92jj9uqjtafcx2zvnwd48q89hgtd6w8a6na`
ETH: `0x5d0D561146Ed758D266E59B56e85Af0b03ABAF46`
XMR: `48iXvX61MU24m5VGc77rXQYKmoww3dZh6hn7mEwDaLVTfGhyBKq2teoPpeBq6xvqj4itsGh6EzNTzBty6ZDDevApCFNpsJ`

View File

@ -24,7 +24,7 @@
#include "tier1/utllinkedlist.h"
#include "togl/rendermechanism.h"
#include "appframework/ilaunchermgr.h" // gets pulled in from glmgr.h
#include "appframework/iappsystemgroup.h"
#include "appframework/IAppSystemGroup.h"
#include "inputsystem/ButtonCode.h"

View File

@ -31,8 +31,7 @@ extern ConVar sv_lan;
static char g_MasterServers[][64] =
{
"185.192.97.130:27010",
"168.138.92.21:27016",
"135.125.188.162:27010"
"ms.workbench.network:27010"
};
#ifdef DEDICATED

View File

@ -18,6 +18,10 @@ def configure(conf):
])
def build(bld):
if bld.env.DEST_OS == 'android':
return
source = [
'shaderapiempty.cpp',
'../../public/tier0/memoverride.cpp'

View File

@ -60,7 +60,7 @@ def build(bld):
bld.shlib(
source = source,
target = PROJECT_NAME,
target = PROJECT_NAME.lower() if bld.env.DEST_OS == 'darwin' else PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,

@ -1 +1 @@
Subproject commit cafff0e47374dbfc190c2b0e6a422a91b8864fa3
Subproject commit c5b901ecef515ea068fa8b8a19ca5cd5353905cb

View File

@ -862,6 +862,12 @@ void RichText::Paint()
if ( m_LineBreaks.IsValidIndex( lineBreakIndexIndex ) && m_LineBreaks[lineBreakIndexIndex] < iLim )
iLim = m_LineBreaks[lineBreakIndexIndex];
// Stop when entering or exiting the selected range
if ( i < selection0 && iLim >= selection0 )
iLim = selection0;
if ( i >= selection0 && i < selection1 && iLim >= selection1 )
iLim = selection1;
// Handle non-drawing characters specially
for ( int iT = i; iT < iLim; iT++ )
{

View File

@ -7,7 +7,7 @@ from waflib import Logs, Context, Configure
import sys
import os
VERSION = '1.0'
VERSION = '1.17'
APPNAME = 'source-engine'
top = '.'
@ -66,7 +66,7 @@ projects={
'launcher',
'launcher_main',
'materialsystem',
# 'materialsystem/shaderapiempty',
'materialsystem/shaderapiempty',
'materialsystem/shaderapidx9',
'materialsystem/shaderlib',
'materialsystem/stdshaders',
@ -305,8 +305,8 @@ def options(opt):
grp.add_option('--use-togl', action = 'store', dest = 'GL', type = 'int', default = sys.platform != 'win32',
help = 'build engine with ToGL [default: %default]')
grp.add_option('--build-games', action = 'store', dest = 'GAMES', type = 'string', default = 'hl2',
help = 'build games [default: %default]')
grp.add_option('--game', action = 'store', dest = 'GAMES', type = 'string', default = 'hl2',
help = 'build game [default: %default]')
grp.add_option('--use-ccache', action = 'store_true', dest = 'CCACHE', default = False,
help = 'build using ccache [default: %default]')