summaryrefslogtreecommitdiffstats
path: root/src/fakerw
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-03 21:29:30 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-04 11:41:41 +0100
commit22e8202d27cf7a269ef06442d5be45ba58fbaf26 (patch)
tree40c772b5cb53c2e777cde8ef857c5ec3317ea012 /src/fakerw
parentFrontend: disable windowed mode selector while in game (diff)
downloadre3-22e8202d27cf7a269ef06442d5be45ba58fbaf26.tar
re3-22e8202d27cf7a269ef06442d5be45ba58fbaf26.tar.gz
re3-22e8202d27cf7a269ef06442d5be45ba58fbaf26.tar.bz2
re3-22e8202d27cf7a269ef06442d5be45ba58fbaf26.tar.lz
re3-22e8202d27cf7a269ef06442d5be45ba58fbaf26.tar.xz
re3-22e8202d27cf7a269ef06442d5be45ba58fbaf26.tar.zst
re3-22e8202d27cf7a269ef06442d5be45ba58fbaf26.zip
Diffstat (limited to 'src/fakerw')
-rw-r--r--src/fakerw/fake.cpp1
-rw-r--r--src/fakerw/rwplcore.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index 37567927..863407b9 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -14,6 +14,7 @@
using namespace rw;
RwUInt8 RwObjectGetType(const RwObject *obj) { return obj->type; }
+RwFrame* rwObjectGetParent(const RwObject *obj) { return (RwFrame*)obj->parent; }
void *RwMalloc(size_t size) { return engine->memfuncs.rwmalloc(size, 0); }
diff --git a/src/fakerw/rwplcore.h b/src/fakerw/rwplcore.h
index 511f7678..69c921cc 100644
--- a/src/fakerw/rwplcore.h
+++ b/src/fakerw/rwplcore.h
@@ -108,12 +108,12 @@ enum RwCorePluginID
//struct RwObject;
typedef rw::Object RwObject;
+typedef rw::Frame RwFrame;
typedef RwObject *(*RwObjectCallBack)(RwObject *object, void *data);
RwUInt8 RwObjectGetType(const RwObject *obj);
-
-
+RwFrame* rwObjectGetParent(const RwObject *obj);
#define rwsprintf sprintf
#define rwvsprintf vsprintf