[nostalgia/studio] Cleanup
This commit is contained in:
parent
64b9b6071e
commit
c399cb3f13
@ -39,10 +39,9 @@ struct NostalgiaStudioState {
|
|||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
ox::Error model(T *io, NostalgiaStudioState *obj) {
|
ox::Error model(T *io, NostalgiaStudioState *obj) {
|
||||||
auto err = OxError(0);
|
|
||||||
oxReturnError(io->setTypeInfo("NostalgiaStudioState", 1));
|
oxReturnError(io->setTypeInfo("NostalgiaStudioState", 1));
|
||||||
oxReturnError(io->field("project_path", &obj->projectPath));
|
oxReturnError(io->field("project_path", &obj->projectPath));
|
||||||
return err;
|
return OxError(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct NostalgiaStudioProfile {
|
struct NostalgiaStudioProfile {
|
||||||
@ -53,12 +52,11 @@ struct NostalgiaStudioProfile {
|
|||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
ox::Error model(T *io, NostalgiaStudioProfile *obj) {
|
ox::Error model(T *io, NostalgiaStudioProfile *obj) {
|
||||||
auto err = OxError(0);
|
|
||||||
oxReturnError(io->setTypeInfo("NostalgiaStudioProfile", 3));
|
oxReturnError(io->setTypeInfo("NostalgiaStudioProfile", 3));
|
||||||
oxReturnError(io->field("app_name", &obj->appName));
|
oxReturnError(io->field("app_name", &obj->appName));
|
||||||
oxReturnError(io->field("org_name", &obj->orgName));
|
oxReturnError(io->field("org_name", &obj->orgName));
|
||||||
oxReturnError(io->field("modules_path", &obj->modulesPath));
|
oxReturnError(io->field("modules_path", &obj->modulesPath));
|
||||||
return err;
|
return OxError(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user