Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ def MatchingFor(*versions):
Object(NonMatching, "Kawano/osage.cpp"),
Object(NonMatching, "Kawano/accessory.cpp"),
Object(NonMatching, "Kawano/laurel.cpp"),
Object(NonMatching, "Kawano/driverObj.cpp"),
Object(Matching, "Kawano/driverObj.cpp"),
Object(Matching, "Kawano/SceneTitleLine.cpp"),
Object(NonMatching, "Kawano/StaffRoll2D.cpp")
]
Expand Down
16 changes: 16 additions & 0 deletions include/Kawano/driverObj.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef DRIVER_OBJ_H
#define DRIVER_OBJ_H

#include "JSystem/JKernel/JKRDisposer.h"

class J3DModelData;

class DriverObj : public JKRDisposer {
public:
DriverObj();

virtual ~DriverObj();
J3DModelData* createModelData(char*);
};

#endif // DRIVER_OBJ_H
20 changes: 20 additions & 0 deletions src/Kawano/driverObj.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "Kawano/driverObj.h"
#include "JSystem/JAudio/JASFakeMatch2.h"
#include "JSystem/J3D/J3DModelLoader.h"
#include "Kaneshige/ExModel.h"
#include "Kaneshige/RaceMgr.h"
#include "Kaneshige/TexLODControl.h"

DriverObj::DriverObj() {}

DriverObj::~DriverObj() {}

J3DModelData* DriverObj::createModelData(char* name) {
J3DModelData* modelData = J3DModelLoaderDataBase::load(ResMgr::getPtr(ResMgr::mcArcMRAM, name), 0x011020030);
ExModel::patchModelData(modelData);
ExModel::setLightMask(modelData, GX_LIGHT1);
ExModel::setLODBias(modelData, TexLODControl::getCharacterLODBias());
RCMGetCourse()->setFogInfo(modelData);
modelData->newSharedDisplayList(0x40000);
return modelData;
}
Loading