diff --git a/binding-mri/binding-mri.cpp b/binding-mri/binding-mri.cpp index 5883a4c..d50e7e3 100644 --- a/binding-mri/binding-mri.cpp +++ b/binding-mri/binding-mri.cpp @@ -78,6 +78,7 @@ void wallpaperBindingInit(); void nikoBindingInit(); void oneshotBindingInit(); void steamBindingInit(); +void chromaBindingInit(); RB_METHOD(mriPrint); RB_METHOD(mriP); @@ -112,6 +113,7 @@ static void mriBindingInit() nikoBindingInit(); oneshotBindingInit(); steamBindingInit(); + chromaBindingInit(); if (rgssVer >= 3) { diff --git a/binding-mri/chroma-binding.cpp b/binding-mri/chroma-binding.cpp index ee06a30..e7e4863 100644 --- a/binding-mri/chroma-binding.cpp +++ b/binding-mri/chroma-binding.cpp @@ -9,19 +9,23 @@ bool INIT_SUCCESS = false; CChromaSDKImpl* chromaImpl = NULL; void _attemptLinkSdk() { + Debug() << "Attempting to bind Chroma SDK"; #if !defined(_WIN32) && !defined(_WIN64) // currently razr chroma is windows-only. // so, if we are not building for windows platform // then don't bother with chroma stuff + Debug() << "Chroma: Unsupported Platform"; return; #endif chromaImpl = new CChromaSDKImpl(); + Debug() << "Chroma Impl @" << chromaImpl; chromaImpl->Initialize(); INIT_SUCCESS = true; } RB_METHOD(chromaSetBase) { + Debug() << "Chroma: Attempting to set base colour"; RB_UNUSED_PARAM; if (INIT_SUCCESS) { ChromaSDK::Keyboard::CUSTOM_EFFECT_TYPE effect = {}; @@ -34,6 +38,7 @@ RB_METHOD(chromaSetBase) { ChromaSDK::Keyboard::CHROMA_CUSTOM, &effect, NULL); + Debug() << "Chroma: Set base colour effect"; } return Qnil; } diff --git a/scripts/Main.rb b/scripts/Main.rb index 8555851..8adc036 100644 --- a/scripts/Main.rb +++ b/scripts/Main.rb @@ -16,6 +16,7 @@ begin # Load persistent data Persistent.load + Chroma.setBase # Prepare for transition Graphics.freeze