misc/libphyslayer/hwpacksmounter.h
author sheepluva
Fri, 29 Apr 2016 23:42:37 +0200
changeset 11777 77afc967f38e
parent 10235 bafca1686867
permissions -rw-r--r--
fix memory corruptions caused by outofbounds-writes in uTouch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8052
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
     1
#ifndef HEDGEWARS_PACKAGES_MOUNTER_H
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
     2
#define HEDGEWARS_PACKAGES_MOUNTER_H
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
     3
8119
257ffa847aa2 physfs: no carbon depency on osx, add cdecl attributes on extra functions
koda
parents: 8052
diff changeset
     4
#include "physfs.h"
9991
3858d99476f5 add compatibility for physicsfs 2.0
sheepluva
parents: 8978
diff changeset
     5
#include "physfscompat.h"
10127
7f29a65aa1e4 It compiles \o/
unc0rr
parents: 10015
diff changeset
     6
7f29a65aa1e4 It compiles \o/
unc0rr
parents: 10015
diff changeset
     7
#ifndef PAS2C
10235
bafca1686867 Drawn maps optimizer - first steps:
unc0rr
parents: 10127
diff changeset
     8
#ifndef QT_VERSION
9264
21df1a0ec9ed engine links
unc0rr
parents: 8978
diff changeset
     9
#include "lua.h"
10127
7f29a65aa1e4 It compiles \o/
unc0rr
parents: 10015
diff changeset
    10
#endif
10235
bafca1686867 Drawn maps optimizer - first steps:
unc0rr
parents: 10127
diff changeset
    11
#endif
9991
3858d99476f5 add compatibility for physicsfs 2.0
sheepluva
parents: 8978
diff changeset
    12
8052
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    13
#ifdef __cplusplus
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    14
extern "C" {
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    15
#endif
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    16
8119
257ffa847aa2 physfs: no carbon depency on osx, add cdecl attributes on extra functions
koda
parents: 8052
diff changeset
    17
PHYSFS_DECL void hedgewarsMountPackages();
8978
e6ef8fe314bd suggestion of unc0rr's to fix issue w/ random maps in campaign. load sidecar packages in physfs for lua. should be useful also for lua that does custom layouts
nemo
parents: 8524
diff changeset
    18
PHYSFS_DECL void hedgewarsMountPackage(char * fileName);
8052
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    19
10235
bafca1686867 Drawn maps optimizer - first steps:
unc0rr
parents: 10127
diff changeset
    20
#ifndef QT_VERSION
9264
21df1a0ec9ed engine links
unc0rr
parents: 8978
diff changeset
    21
PHYSFS_DECL const char * physfsReader(lua_State *L, PHYSFS_File *f, size_t *size);
10235
bafca1686867 Drawn maps optimizer - first steps:
unc0rr
parents: 10127
diff changeset
    22
#endif
9264
21df1a0ec9ed engine links
unc0rr
parents: 8978
diff changeset
    23
PHYSFS_DECL void physfsReaderSetBuffer(void *buffer);
21df1a0ec9ed engine links
unc0rr
parents: 8978
diff changeset
    24
8052
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    25
#ifdef __cplusplus
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    26
}
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    27
#endif
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    28
845b5ae03841 Mount .hwt files found in Data folder
unc0rr
parents:
diff changeset
    29
#endif