From 6123bd330775caf2a6cbd9f33dad8901f4795a79 Mon Sep 17 00:00:00 2001 From: Tobi-D7 Date: Tue, 12 Apr 2022 11:19:37 +0200 Subject: [PATCH] Update Some files --- internal/lang.hpp | 4 ++-- log.hpp | 2 +- renderd7.hpp | 12 ++++++------ sound.hpp | 1 + 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/internal/lang.hpp b/internal/lang.hpp index e6760e7..25363d5 100644 --- a/internal/lang.hpp +++ b/internal/lang.hpp @@ -8,9 +8,9 @@ namespace RenderD7::Lang /// Get the 3ds System Language std::string getSys(); /// Get a translated string - /// key: The Key so the code can find your string + /// \param key The Key so the code can find your string std::string get(const std::string &key); /// Load the lang file from dir structure en/app.json for sample - /// lang: the folder name en, fr, de ... . I prefer geSys() + /// \param lang the folder name en, fr, de ... . I prefer geSys() void load(const std::string &lang); } /// RenderD7::Lang diff --git a/log.hpp b/log.hpp index 1d11d34..7209311 100644 --- a/log.hpp +++ b/log.hpp @@ -25,6 +25,6 @@ class Log /// \param fmt_str the formatted style std::string format(const std::string& fmt_str, ...); private: - /// param filename the name of the logfile + /// \param filename the name of the logfile std::string filename; }; diff --git a/renderd7.hpp b/renderd7.hpp index 8b3b2b9..2f98d99 100644 --- a/renderd7.hpp +++ b/renderd7.hpp @@ -65,11 +65,11 @@ namespace RenderD7 // Deconstruct sheet ~Sheet(); /// Load a Sritesheet - /// path: Path to the Spritesheet (.t3x) + /// \param path Path to the Spritesheet (.t3x) Result Load(const char *path); /// Unload the Spritesheet void Free(); - // The Spritesheet + /// The Spritesheet C2D_SpriteSheet spritesheet; }; /// Image Class @@ -77,10 +77,10 @@ namespace RenderD7 { public: /// Load Image from Png - /// path: path to png file + /// \param path path to png file void LoadPng(const std::string path); /// Load the Image from buffer - /// buffer: the frame buffer + /// \param buffer the frame buffer void LoadPFromBuffer(const std::vector &buffer); /// Draw the Image directly /// \param x The x position @@ -91,9 +91,9 @@ namespace RenderD7 /// \brief Get The Image /// \return C2D_Image C2D_Image Get(){return this->img;} - /// \img this is the C2D_Image + /// \param img this is the C2D_Image C2D_Image img; - /// \loadet whether the image is loadet or not + /// \param loadet whether the image is loadet or not bool loadet = false; }; /// Sprite Class diff --git a/sound.hpp b/sound.hpp index a2cd1a7..31e623a 100644 --- a/sound.hpp +++ b/sound.hpp @@ -19,6 +19,7 @@ public: void stop(); private: + /// \param dataSize the Size of the filedata u32 dataSize; ndspWaveBuf waveBuf; u8* data = NULL;