Skip to content

Commit 3330655

Browse files
author
Dutchman101
committed
Optimise binary files and trim trailing spaces
1 parent 17e32a4 commit 3330655

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1520
-1520
lines changed

amx-deps/img/screen.png

-138 KB
Loading

amx-deps/install.html

Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

amx-deps/meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<info name="Advanced Map Xtreme" author="arc_" type="gamemode" />
33
<!-- This is only a dummy file to prevent server errors. -->
44
<!-- See install.html for installation instructions -->
5-
</meta>
5+
</meta>

amx-deps/src/CFunctions.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
*
55
* ml_base, External lua add-on module
66
*
7-
* Copyright © 2003-2008 MTA. All Rights Reserved.
7+
* Copyright © 2003-2008 MTA. All Rights Reserved.
88
*
9-
* Grand Theft Auto is © 2002-2003 Rockstar North
9+
* Grand Theft Auto is © 2002-2003 Rockstar North
1010
*
1111
* THE FOLLOWING SOURCES ARE PART OF THE MULTI THEFT
1212
* AUTO SOFTWARE DEVELOPMENT KIT AND ARE RELEASED AS
@@ -103,7 +103,7 @@ int CFunctions::amxLoad(lua_State *luaVM) {
103103
lua_pushboolean(luaVM, 0);
104104
return 1;
105105
}
106-
106+
107107
path amxPath = path("mods/deathmatch/resources/[gamemodes]/[amx]/") / resName / amxName;
108108

109109
// Load .amx
@@ -151,7 +151,7 @@ int CFunctions::amxLoad(lua_State *luaVM) {
151151

152152
lua_register(props.resourceVM, "pawn", CFunctions::pawn);
153153
loadedAMXs[amx] = props;
154-
154+
155155
lua_getfield(luaVM, LUA_REGISTRYINDEX, "amx");
156156
lua_getfield(luaVM, -1, resName);
157157
if(lua_isnil(luaVM, -1)) {
@@ -196,7 +196,7 @@ int CFunctions::amxCall(lua_State *luaVM) {
196196
}
197197
case LUA_TNUMBER: {
198198
std::string str = lua_tostring(luaVM, i);
199-
if(str.find(".")!=std::string::npos)
199+
if(str.find(".")!=std::string::npos)
200200
{
201201
float fval = lua_tonumber(luaVM, i);
202202
cell val = *(cell*)&fval;
@@ -237,7 +237,7 @@ int CFunctions::amxCall(lua_State *luaVM) {
237237
lua_pushboolean(luaVM, 0);
238238
return 1;
239239
}
240-
240+
241241
// Return value
242242
lua_pushnumber(luaVM, ret);
243243
return 1;
@@ -428,7 +428,7 @@ int CFunctions::pawn(lua_State *luaVM) {
428428
}
429429
if(!amx)
430430
return luaL_error(luaVM, "No Pawn function named %s exists", fnName);
431-
431+
432432
int mainTop = lua_gettop(mainVM);
433433

434434
string resName;

amx-deps/src/king.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
2727
// TEXTINCLUDE
2828
//
2929

30-
1 TEXTINCLUDE
30+
1 TEXTINCLUDE
3131
BEGIN
3232
"resource.h\0"
3333
END
3434

35-
2 TEXTINCLUDE
35+
2 TEXTINCLUDE
3636
BEGIN
3737
"#include ""afxres.h""\r\n"
3838
"\0"
3939
END
4040

41-
3 TEXTINCLUDE
41+
3 TEXTINCLUDE
4242
BEGIN
4343
"\r\n"
4444
"\0"

amx-deps/src/ml_base.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* Multi Theft Auto: San Andreas - Deathmatch
44
*
55
* ml_base, External lua add-on module
6-
*
7-
* Copyright � 2003-2008 MTA. All Rights Reserved.
86
*
9-
* Grand Theft Auto is � 2002-2003 Rockstar North
7+
* Copyright � 2003-2008 MTA. All Rights Reserved.
8+
*
9+
* Grand Theft Auto is � 2002-2003 Rockstar North
1010
*
1111
* THE FOLLOWING SOURCES ARE PART OF THE MULTI THEFT
1212
* AUTO SOFTWARE DEVELOPMENT KIT AND ARE RELEASED AS
@@ -147,7 +147,7 @@ MTAEXPORT void RegisterFunctions ( lua_State * luaVM )
147147
pModuleManager->RegisterFunction(luaVM, "amxRegisterLuaPrototypes", CFunctions::amxRegisterLuaPrototypes);
148148
pModuleManager->RegisterFunction(luaVM, "amxVersion", CFunctions::amxVersion);
149149
pModuleManager->RegisterFunction(luaVM, "amxVersionString", CFunctions::amxVersionString);
150-
150+
151151
string resName;
152152
if(!pModuleManager->GetResourceName(luaVM, resName) || resName.compare("amx"))
153153
return;
@@ -183,6 +183,6 @@ MTAEXPORT bool DoPulse ( void )
183183

184184
MTAEXPORT bool ShutdownModule ( void )
185185
{
186-
186+
187187
return true;
188188
}

amx-deps/src/syscalls.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static cell AMX_NATIVE_CALL n_samp(AMX *amx, const cell *params) {
2929
lua_settop(mainVM, mainTop);
3030
return 0;
3131
}
32-
32+
3333
size_t numPrototypeArgs = lua_objlen(mainVM, -1);
3434
cell numParams = params[0]/sizeof(cell);
3535
char type;
@@ -54,7 +54,7 @@ static cell AMX_NATIVE_CALL n_samp(AMX *amx, const cell *params) {
5454
lua_pushnumber(mainVM, params[i]);
5555
}
5656
}
57-
57+
5858
if(lua_pcall(mainVM, 3 + numParams, 1, 0) != 0) {
5959
pModuleManager->ErrorPrintf("%lX %s\n", amx->cip, lua_tostring(mainVM, -1));
6060
lua_pop(mainVM, 1);
@@ -77,7 +77,7 @@ int callLuaMTRead(lua_State *luaVM) {
7777
amx_GetAddr(amx, addr, &physaddr);
7878
if(!physaddr)
7979
return 0;
80-
80+
8181
lua_getfield(luaVM, 1, "pointers");
8282
luaL_checktype(luaVM, -1, LUA_TTABLE);
8383
lua_pushnumber(luaVM, addr);
@@ -138,7 +138,7 @@ int callLuaMTWrite(lua_State *luaVM) {
138138
amx_GetAddr(amx, addr, &physaddr);
139139
if(!physaddr)
140140
return 0;
141-
141+
142142
switch(lua_type(luaVM, 3)) {
143143
case LUA_TNIL: {
144144
*physaddr = 0;
@@ -178,7 +178,7 @@ int callLuaMTWrite(lua_State *luaVM) {
178178
lua_getglobal(mainVM, "argsToSAMP");
179179

180180
lua_pushlightuserdata(mainVM, amx);
181-
181+
182182
lua_newtable(mainVM);
183183
lua_pushnumber(mainVM, 1);
184184
lua_getfield(luaVM, 1, "pointers");
@@ -234,7 +234,7 @@ static cell AMX_NATIVE_CALL n_lua(AMX *amx, const cell *params) {
234234
lua_pushamxstring(resVM, amx, params[1]);
235235
lua_gettable(resVM, LUA_GLOBALSINDEX);
236236
luaL_checktype(resVM, -1, LUA_TFUNCTION);
237-
237+
238238
lua_newtable(resVM);
239239
lua_pushlightuserdata(resVM, amx);
240240
lua_setfield(resVM, -2, "amx");
@@ -354,7 +354,7 @@ static cell AMX_NATIVE_CALL n_amxRegisterPawnPrototypes(AMX *amx, const cell *pa
354354
lua_pushvalue(mainVM, -1);
355355
lua_setfield(mainVM, -3, loadedAMXs[amx].resourceName.c_str());
356356
}
357-
357+
358358
lua_newtable(mainVM);
359359
cell *pFn = physaddr;
360360
int fnIndex;
@@ -383,7 +383,7 @@ static cell AMX_NATIVE_CALL n_amxRegisterPawnPrototypes(AMX *amx, const cell *pa
383383
lua_setfield(mainVM, -3, "ret");
384384
}
385385
lua_insert(mainVM, -2);
386-
386+
387387
if(amx_FindPublic(amx, lua_tostring(mainVM, -2), &fnIndex) != AMX_ERR_NONE)
388388
return luaL_error(mainVM, "amxRegisterPawnPrototypes: %s: no public function named %s exists", loadedAMXs[amx].resourceName.c_str(), lua_tostring(mainVM, -1));
389389

amx-deps/src/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void lua_pushamxstring(lua_State *luaVM, AMX *amx, cell addr) {
9090

9191
void lua_pushremotevalue(lua_State *localVM, lua_State *remoteVM, int index, bool toplevel) {
9292
bool seenTableList = false;
93-
93+
9494
switch(lua_type(remoteVM, index)) {
9595
case LUA_TNIL: {
9696
lua_pushnil(localVM);

amx-fs-test/meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<meta>
22
<info name="AMX test filterscript" />
33
<amx src="testfs.amx"/>
4-
</meta>
4+
</meta>

amx-test/file.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This is the content of an external file - it is in the gamemode's folder, not in a central "scriptfiles" folder between the files of all other gamemodes.
1+
This is the content of an external file - it is in the gamemode's folder, not in a central "scriptfiles" folder between the files of all other gamemodes.

0 commit comments

Comments
 (0)