mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2025-07-18 17:38:01 +08:00

* Initial work on supporting IGCS
* feat: Added callback when starting session, adding missing func.
* chore: tidy up math and cleanup.
* chore: tidy up some verbose code
* Added more callbacks, fixed math.
* fix: use queue command system instead of directly writing to the camera.
* lock camera while igcsdof is active.
* build system shenanigans
Now we can build the project just fine by building separately the C
project and the C# project.
* small syntax changes.
learning c# and stuff
* Refactor executeCameraCommand and improve thread-safety in FreeCamPanel
* woops, correct order of arguments for MessageBoxA
* fix: move the ourCamera check where it's actually needed.
* chore: formatting c file
* rewrite: move all igcsdof logic to its own class.
Since CUE *must* work without igcsdof, I thought it would be convenient
to handle all the logic regarding igcsdof in its own class. The
initialization is a bit of a mess because since most of what it's on
FreeCam is static I had to do some trickery.
I wanted to specifically avoid calling LoadLibrary every time so I
thought on only initializing one and having an internal flag either the
thing loaded correctly or not (`isValid`).
* fix: Pin callbacks to avoid garbage collection
* chore: removed unused code
* chore: fix typo.
* nit: more idiomatic C# usage.
Just applied what rider suggested =)
* fix: remove unnecesary GCHandle, store delegates.
* feat: Update IGCS dof camera status accordingly.
Before, we just left igcsdof always enabled, now we handle the cases
properly, avoiding the posibility of the user using igcsdof with the
freecam disabled.
* nit: fix comments and added some to UnityIGCSConnector.
* feat: Get the transform reference earlier for perf™️
* fix: Properly handle an initialization error.
* chore: remove overly verbose debugging
* fix: make sure we start with a clear queue after we end a session.
This was what maybe was causing the misaligning after you cancel a
session since we never checked if the queue was emptied by the code.
* fix: properly cast a function pointer to use what it returns.