Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 7396d37

Browse files
committed
eeeeee
1 parent 2a77632 commit 7396d37

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

byond-extools/src/core/byond_structures.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -361,45 +361,24 @@ ManagedValue::~ManagedValue()
361361

362362
Params MiscEntry::as_params()
363363
{
364-
if (ByondVersion > 513 || ByondBuild >= 1539) {
365364
return Params {
366365
parameters2.count(),
367366
parameters2.params,
368367
};
369368
}
370369

371-
return Params {
372-
parameters1.count(),
373-
parameters1.params,
374-
};
375-
}
376-
377370
LocalVars MiscEntry::as_locals()
378371
{
379-
if (ByondVersion > 513 || ByondBuild >= 1539) {
380372
return LocalVars {
381373
local_vars2.count,
382374
local_vars2.var_name_indices,
383375
};
384376
}
385377

386-
return LocalVars {
387-
local_vars1.count,
388-
local_vars1.var_name_indices,
389-
};
390-
}
391-
392378
ProcBytecode MiscEntry::as_bytecode()
393379
{
394-
if (ByondVersion > 513 || ByondBuild >= 1539) {
395380
return ProcBytecode {
396381
bytecode2.bytecode_length,
397382
&bytecode2.bytecode,
398383
};
399-
}
400-
401-
return ProcBytecode {
402-
bytecode1.bytecode_length,
403-
&bytecode1.bytecode,
404-
};
405384
}

byond-extools/src/core/core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void Core::Alert(int what)
111111
}
112112

113113
unsigned int Core::GetStringId(std::string str, bool increment_refcount) {
114-
if (ByondVersion == 514) {
114+
if (ByondVersion > 513) {
115115
return GetStringTableIndexUTF8(str.c_str(), 0xFFFFFFFF, 0, 1);
116116
}
117117
return 0;

byond-extools/src/core/find_functions.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ bool Core::find_functions()
117117
DecRefCount = (DecRefCountPtr)(x_ref_count_call + *(int *)x_ref_count_call + 4); //x_ref_count_call points to the relative offset to DecRefCount from the call site
118118
x_ref_count_call = (char *)Pocket::Sigscan::FindPattern(BYONDCORE, "FF 75 10 E8 ?? ?? ?? ?? FF 75 0C 8B F8 FF 75 08 E8 ?? ?? ?? ?? 57", 17);
119119
IncRefCount = (IncRefCountPtr)(x_ref_count_call + *(int *)x_ref_count_call + 4);
120-
121120
char *datum_inc_function = (char *)Pocket::Sigscan::FindPattern(BYONDCORE, "55 8b ec 8b 4d 08 3b 0d ?? ?? ?? ?? 73 11 a1 ?? ?? ?? ?? 8b 04 88 85 c0 74 05 ff 40 10 5d c3 6a");
122121
datum_pointer_table_length = *(unsigned int **)(datum_inc_function + 8);
123122
datum_pointer_table = *(RawDatum ****)(datum_inc_function + 15);

0 commit comments

Comments
 (0)