Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Marshall exception solved by using specific struct as type which is t…
Browse files Browse the repository at this point in the history
…he real element instead of parsing to a sub-struct element. ¯\_(ツ)_/¯
  • Loading branch information
JaXt0r committed Sep 22, 2023
1 parent fd7dd10 commit bfc14a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/phoenix/cffi/World.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,14 @@ PXC_API PxBool pxVobGetDecalIgnoreDaylight(PxVob const* vob);
// TODO Vob - Camera

// Light Preset
PXC_API char const* pxLightPresetGetPreset(PxVobLightPreset const* lightPreset);
PXC_API char const* pxLightPresetGetPreset(PxVobLight const* light);
PXC_API PxVobLightMode pxLightPresetGetLightType(PxVobLightPreset const* lightPreset);
PXC_API float pxLightPresetGetRange(PxVobLightPreset const* lightPreset);
PXC_API PxColor pxLightPresetGetColor(PxVobLightPreset const* lightPreset);
PXC_API float pxLightPresetGetConeAngle(PxVobLightPreset const* lightPreset);
PXC_API PxBool pxLightPresetGetIsStatic(PxVobLightPreset const* lightPreset);
PXC_API PxVobLightQuality pxLightPresetGetQuality(PxVobLightPreset const* lightPreset);
PXC_API char const* pxLightPresetGetLensFlareFx(PxVobLightPreset const* lightPreset);
PXC_API char const* pxLightPresetGetLensFlareFx(PxVobLight const* light);
PXC_API PxBool pxLightPresetGetOn(PxVobLightPreset const* lightPreset);
PXC_API uint32_t pxLightPresetGetRangeAnimationScaleCount(PxVobLightPreset const* lightPreset);
PXC_API float pxLightPresetGetRangeAnimationScale(PxVobLightPreset const* lightPreset, uint32_t i);
Expand Down
8 changes: 4 additions & 4 deletions src/World.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ PxBool pxVobGetDecalIgnoreDaylight(PxVob const* vob) {
}

// Vob - Light Preset
char const* pxLightPresetGetPreset(PxVobLightPreset const* lightPreset) {
return lightPreset->preset.c_str();
char const* pxLightPresetGetPreset(PxVobLight const* light) {
return light->preset.c_str();
}

PxVobLightMode pxLightPresetGetLightType(PxVobLightPreset const* lightPreset) {
Expand Down Expand Up @@ -257,8 +257,8 @@ PxVobLightQuality pxLightPresetGetQuality(PxVobLightPreset const* lightPreset) {
return static_cast<PxVobLightQuality>(lightPreset->quality);
}

char const* pxLightPresetGetLensFlareFx(PxVobLightPreset const* lightPreset) {
return lightPreset->lensflare_fx.c_str();
char const* pxLightPresetGetLensFlareFx(PxVobLight const* light) {
return light->lensflare_fx.c_str();
}

PxBool pxLightPresetGetOn(PxVobLightPreset const* lightPreset) {
Expand Down

0 comments on commit bfc14a2

Please sign in to comment.