diff --git a/src/engine/include/engine.hpp b/src/engine/include/engine.hpp index 184910b..60ae78f 100644 --- a/src/engine/include/engine.hpp +++ b/src/engine/include/engine.hpp @@ -44,8 +44,6 @@ private: Game *game; s32 mainThreadId; static void wakeup(s32 t_alarmId, u16 t_time, void *t_common); - - // ThreadManager threadManager; }; #endif diff --git a/src/engine/include/models/mesh.hpp b/src/engine/include/models/mesh.hpp index 5e31b22..6b168bd 100644 --- a/src/engine/include/models/mesh.hpp +++ b/src/engine/include/models/mesh.hpp @@ -21,7 +21,10 @@ #include #include "./anim_state.hpp" -/** Class which have common types for all 3D objects */ +/** + * Class which have contain 3D object data. + * External data can be loaded via loadXXX() methods. + */ class Mesh { @@ -51,7 +54,7 @@ public: /** Returns material, which is a mesh "subgroup". */ MeshMaterial &getMaterial(const u32 &i) const { return frames[0].getMaterial(i); }; - /** Auto count of frames. Static object (not animated) will have only 1 frame. */ + /** Count of frames. Static object (not animated) will have only 1 frame. */ const u32 &getFramesCount() const { return framesCount; }; /** Count of vertices. */ diff --git a/src/engine/include/models/mesh_material.hpp b/src/engine/include/models/mesh_material.hpp index 025d3ab..0b5447e 100644 --- a/src/engine/include/models/mesh_material.hpp +++ b/src/engine/include/models/mesh_material.hpp @@ -15,7 +15,8 @@ #include "./math/vector3.hpp" #include "./math/plane.hpp" -/** Class which contains draw instructions for part mesh of mesh. +/** + * Class which contains draw instructions for part of mesh. * Mesh can have many materials. * For example, car mesh can have three materials: * body, tires and windows. diff --git a/src/engine/include/models/mesh_texture.hpp b/src/engine/include/models/mesh_texture.hpp index f014801..e237d57 100644 --- a/src/engine/include/models/mesh_texture.hpp +++ b/src/engine/include/models/mesh_texture.hpp @@ -20,8 +20,8 @@ /** * Class which contains texture data. - * Textures are paired with meshes via addUsage(), - * removeUsage() functions which use meshId and materialId. + * Textures are paired with meshes via addLink() and + * removeLink() functions which use meshId and materialId. */ class MeshTexture { diff --git a/src/engine/modules/audio.cpp b/src/engine/modules/audio.cpp index dfded80..66892e4 100644 --- a/src/engine/modules/audio.cpp +++ b/src/engine/modules/audio.cpp @@ -78,7 +78,11 @@ void Audio::loadModules() { PRINT_LOG("Modules loading started (LIBSD, AUDSRV)"); ret = SifLoadModule("rom0:LIBSD", 0, NULL); + if (ret == -203) + PRINT_ERR("LIBSD loading failed!"); ret = SifLoadModule("host:AUDSRV.IRX", 0, NULL); + if (ret == -203) + PRINT_ERR("AUDSRV.IRX loading failed!"); PRINT_LOG("Modules loaded"); }