summaryrefslogtreecommitdiff
path: root/src/wm_player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm_player.cpp')
-rw-r--r--src/wm_player.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/wm_player.cpp b/src/wm_player.cpp
index ef838a2..a7c150a 100644
--- a/src/wm_player.cpp
+++ b/src/wm_player.cpp
@@ -19,51 +19,6 @@ int daWMPlayer_c::onCreate() {
current_param = 0;
- /*//#define BRRES_NAME "fruits_kusa_gake"
- //#define MODEL_NAME "fruits_kusa_gake_S"
-
- #define BRRES_NAME "bgB_4502"
- #define MODEL_NAME BRRES_NAME
-
- OSReport("Loading nw4r model\n");
- //LoadFile(&this->nw4rMdlFH, "/Object/" BRRES_NAME ".arc");
- LoadFile(&this->nw4rMdlFH, "/Object/CrapMap.arc");
- OSReport("Loaded. Reading arc\n");
- ARCHandle arc;
- ARCFileInfo keyinfo;
- ARCInitHandle(this->nw4rMdlFH.filePtr, &arc);
- //bool arcres = ARCOpen(&arc, "g3d/" BRRES_NAME ".brres", &keyinfo);
- bool arcres = ARCOpen(&arc, "g3d/model.brres", &keyinfo);
- OSReport(arcres ? "Success\n" : "Fail\n");
-
- OSReport("Getting nw4r model\n");
- //void *brres = DVD_GetFile(GetDVDClass2(), "fruits_kusa_gake", "g3d/fruits_kusa_gake.brres");
-
- OSReport("Done. Constructing model\n");
- void *brres = ARCGetStartAddrInMem(&keyinfo);
- OSReport("brres @ %p\n", brres);
- nw4r::g3d::ResFile resfile(brres);
- OSReport(resfile.CheckRevision() ? "Success\n" : "Fail\n");
- resfile.Init();
- OSReport(resfile.Bind(resfile) ? "Success\n" : "Fail\n");
- //void *mdl = resfile.GetResMdl(MODEL_NAME);
- void *mdl = resfile.GetResMdl("CrapMap");
- OSReport("MDL @ %p, %d\n", mdl, 1099);
- //this->nw4rMdlTest = nw4r::g3d::ConstructScnMdl(mdl, 0x20, 1);
- //this->nw4rMdlTest = nw4r::g3d::ConstructScnMdlSimple(mdl, 1);
- OSReport(this->allocator.link(-1, GameHeaps[0], 0, 0x20) ? "Success\n" : "Fail\n");
- OSReport(this->nw4rMdl.setup(&mdl, &this->allocator, 0, 1, 0) ? "Success\n" : "Fail\n");
- //this->nw4rMdl.sub_80064BF0();
- //this->nw4rMdl.oneSetupType();
- OSReport("Unlink returned %d\n", this->allocator.unlink());
- OSReport("Done!\n");
-
- Mtx asdf;
- MTXIdentity(asdf);
- this->nw4rMdl.setDrawMatrix(asdf);
-
- ARCClose(&keyinfo);*/
-
return true;
}
@@ -157,10 +112,6 @@ int daWMPlayer_c::onExecute() {
int daWMPlayer_c::onDraw() {
this->modelHandler->draw();
- //OSReport("Adding to scene\n");
- //this->nw4rMdl.scheduleForDrawing();
- //OSReport("done\n");
-
return true;
}