AmxxArch.inc
Original include source with line numbers.
| 1 | /* |
| 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation, either version 3 of the License, or |
| 6 | * (at your option) any later version. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | * |
| 16 | * See LICENSE.TXT file for more information. |
| 17 | * |
| 18 | */ |
| 19 | #if defined _AmxxArch_included |
| 20 | #endinput |
| 21 | #endif |
| 22 | #define _AmxxArch_included |
| 23 | |
| 24 | #if AMXX_VERSION_NUM >= 175 |
| 25 | #pragma reqlib AmxxArch |
| 26 | #if !defined AMXMODX_NOAUTOLOAD |
| 27 | #pragma loadlib AmxxArch |
| 28 | #endif |
| 29 | #else |
| 30 | #pragma library AmxxArch |
| 31 | #endif |
| 32 | |
| 33 | #define AA_NO_ERROR 0 |
| 34 | |
| 35 | /* |
| 36 | * @param filepath Path to the file |
| 37 | * @param outdir Directory where the archive will be unpacked |
| 38 | * @param callback Callback function (example: public OnComplete(idcaller, error)) |
| 39 | * @param idcaller player id or 0 |
| 40 | * |
| 41 | * @noreturn |
| 42 | */ |
| 43 | native AA_Unarchive( const filepath[], const outdir[], const callback[], const idcaller = 0); |