mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-10 11:05:07 -04:00
Reorganize library code into libs/ (#3119)
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// control
|
||||
//
|
||||
|
||||
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
||||
|
||||
#include "JSystem/JStudio/JStudio_JAudio2/control.h"
|
||||
#include "JSystem/JGadget/pointer.h"
|
||||
|
||||
JStudio_JAudio2::TCreateObject::~TCreateObject() {}
|
||||
|
||||
bool JStudio_JAudio2::TCreateObject::create(
|
||||
JStudio::TObject** ppObject, JStudio::stb::data::TParse_TBlock_object const& param_2) {
|
||||
JUT_ASSERT(40, ppObject!=NULL);
|
||||
CreateFunc func;
|
||||
switch (param_2.get_type()) {
|
||||
case 'JSND':
|
||||
func = createObject_JAI_SOUND_;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
*ppObject = func(param_2, this);
|
||||
return 1;
|
||||
}
|
||||
|
||||
JStudio::TObject* JStudio_JAudio2::TCreateObject::createObject_JAI_SOUND_(
|
||||
JStudio::stb::data::TParse_TBlock_object const& param_1,
|
||||
JStudio_JAudio2::TCreateObject* param_2) {
|
||||
JStudio_JAudio2::TAdaptor_sound* adaptor = new JStudio_JAudio2::TAdaptor_sound(param_2);
|
||||
if (adaptor == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
JGadget::TPointer_delete<JStudio_JAudio2::TAdaptor_sound> deleteGuard(adaptor);
|
||||
adaptor->set_bPermit_onExit_notEnd_(param_2->isPermit_onExit_notEnd());
|
||||
JStudio::TObject_sound* soundObj =
|
||||
JStudio::TCreateObject::createFromAdaptor<JStudio_JAudio2::TAdaptor_sound>(param_1,
|
||||
adaptor);
|
||||
if (soundObj == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
deleteGuard.set(NULL);
|
||||
return soundObj;
|
||||
}
|
||||
Reference in New Issue
Block a user