s1lentq / reapi

AMX Mod X module, using API regamedll & rehlds
GNU General Public License v3.0
160 stars 103 forks source link

[Question] Can ReAPI potentially replace cstrike and hamsandwich modules? #63

Open a1batross opened 7 years ago

a1batross commented 7 years ago

Hello there. I'm hacking into AMXModX code to make an ARM architecture support. In it's source code I found many scary hacks, like runtime function replacing, code in x86 opcodes(especially in hamsandwitch module) and so on.

It was actual back in these days, when ReGameDLL_CS and even CS16ND not existed, where original cs.so/mp.dll was the only implementation of Counter-Strike server library.

These hacks are platform-specific and obviously does not work on ARM. So I am asking, can this module, at least theoretically, provide methods from cstrike and hamsandwich modules with an extended API of ReGameDLL_CS?

theAsmodai commented 7 years ago

It's will be quite slow without JIT compiler support. I tried to explain to amxmodx maintainer that the core module shouldn't contain any hacks, but I did not succeed. Yes, reapi can replace other hacking modules, but it will need a small modification to support arm32 calling convention.

a1batross commented 7 years ago

Thanks for replying!

I don't have JIT today. Simple AMXModX modules are working(I dunno how fast, but at least working). I'm working on it. Slowly, but working. %)

Arkshine commented 7 years ago

I tried to explain to amxmodx maintainer that the core module shouldn't contain any hacks, but I did not succeed.

I don't remember you saying me that, but sometimes it can't be helped. AMXX is very old. If you think you can improve the current code without breaking compatibility, feel free to do it. Any contribution is always welcomed.,