Skip to content

Commit

Permalink
Rename makefile.yml to main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lakwsh committed Aug 16, 2023
1 parent 6e0b564 commit 9202357
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: build
name: l4dtoolz

on:
push:
branches:
- 'main'
paths-ignore:
- '**.md'

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# L4DToolZ
### [English Version](https://github.com/lakwsh/l4dtoolz/blob/main/README_EN.md)
- 安装方法: [下载](https://github.com/lakwsh/l4dtoolz/actions?query=branch%3Amain)并解压到addons文件夹
- 安装方法: [下载](https://github.com/lakwsh/l4dtoolz/actions/workflows/main.yml)并解压到addons文件夹
- **如使用tickrate解锁功能,请删除tickrate_enabler**
- 遇到任何问题请先在**服务器控制台**输入`plugin_print`确认扩展已经正确加载

Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# L4DToolZ
### [中文版本](https://github.com/lakwsh/l4dtoolz/blob/main/README.md)
- Installation: [Download](https://github.com/lakwsh/l4dtoolz/actions?query=branch%3Amain) and unzip to the addons folder.
- Installation: [Download](https://github.com/lakwsh/l4dtoolz/actions/workflows/main.yml) and unzip to the addons folder.
- **If using tickrate unlock feature, please delete tickrate_enabler**
- If you encounter any problem, first input `plugin_print` in the **server console** to confirm that the extension is loaded correctly.

Expand Down
4 changes: 1 addition & 3 deletions l4dtoolz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ IVEngineServer *engine = NULL;
ICvar *icvar = NULL;
uint tickrate = 30;

void *l4dtoolz::sv_ptr = NULL;
uint *l4dtoolz::slots_ptr = NULL;
uint64 *l4dtoolz::cookie_ptr = NULL;
uint *l4dtoolz::maxcl_ptr = NULL;
Expand Down Expand Up @@ -233,10 +232,9 @@ bool l4dtoolz::Load(CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameSe
auto gamerules = *(uint **)(client[0][18]+info_off);
if(CMPPTR(gamerules, 0x3, gameServerFactory)) gamerules_ptr = gamerules;
}
if(!sv_ptr){
if(!slots_ptr){
uint **sv = *(uint ***)(((uint **)engine)[0][0x80]+sv_off);
if(!CMPPTR(sv, 0xf, interfaceFactory)) goto err_sv;
sv_ptr = sv;
slots_ptr = (uint *)&sv[slots_idx];
cookie_ptr = (uint64 *)&sv[cookie_idx];
maxcl_ptr = (uint *)&sv[maxcl_idx];
Expand Down
1 change: 0 additions & 1 deletion l4dtoolz.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class l4dtoolz:public IServerPluginCallbacks{
#endif
static void ConnectionStart(uint ***);
private:
static void *sv_ptr;
static uint *slots_ptr;
static uint64 *cookie_ptr;
static uint *maxcl_ptr;
Expand Down
4 changes: 2 additions & 2 deletions signature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#ifdef WIN32
#include <windows.h>
#include <TlHelp32.h>
//#include <TlHelp32.h>
#else
#include <sys/mman.h>
#include <unistd.h>
#include <link.h>
//#include <link.h>

static uint pmask = ~(sysconf(_SC_PAGESIZE)-1);
#endif
Expand Down

0 comments on commit 9202357

Please sign in to comment.