Skip to content

Commit

Permalink
Update GRRMOD
Browse files Browse the repository at this point in the history
  • Loading branch information
Crayon2000 committed Aug 30, 2024
1 parent 27b839a commit dd18696
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 17 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.

## Unreleased

- TBD
- Library update
- GRRMOD (1ea0e8bb54eb9c2b052fba87d34530dca0365b97)

## 1.1.0

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FetchContent_Declare(grrlib
GIT_TAG d93847e6a3e350bd1157d61cc1315d8bbff76968
)
FetchContent_Declare(grrmod
URL https://codeload.github.com/GRRLIB/GRRMOD/tar.gz/9a6e7d85329b813d633f4b10de31c704167c0054
URL https://codeload.github.com/GRRLIB/GRRMOD/tar.gz/1ea0e8bb54eb9c2b052fba87d34530dca0365b97
SOURCE_SUBDIR "GRRMOD"
)
set(GRRMOD_USE_MP3 OFF CACHE BOOL "Don't use MP3" FORCE)
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ Prerequisites:
* Mini-XML
* libpng
* FreeType
* libjpeg-turbo

To compile:

```text
pacman --sync --needed --noconfirm ppc-mxml ppc-libpng ppc-freetype ppc-libjpeg-turbo
pacman --sync --needed --noconfirm ppc-mxml ppc-libpng ppc-freetype
mkdir --parents build && cd build
/opt/devkitpro/portlibs/wii/bin/powerpc-eabi-cmake ..
cmake --build .
Expand Down
4 changes: 2 additions & 2 deletions source/cursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
/**
* Constructor for the Cursor class.
*/
Cursor::Cursor() : Object()
Cursor::Cursor() : Object(),
Cursors(Texture::CreateFromPNG(hands_png))
{
Width = 96;
Height = 96;

// Load textures
Cursors = Texture::CreateFromPNG(hands_png);
GRRLIB_InitTileSet(reinterpret_cast<GRRLIB_texImg *>(Cursors.get()), Width, Height, 0);

// Set hotspot
Expand Down
9 changes: 1 addition & 8 deletions source/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ Object::Object() :
{
}

/**
* Destructor for the Object class.
*/
Object::~Object()
{
}

/**
* Get the left position of the object.
* @see SetLeft()
Expand Down Expand Up @@ -194,7 +187,7 @@ u8 Object::GetAlpha()
* @param[in] Alpha Alpha color.
*/
void Object::SetAlpha(u8 Alpha)
{
{
Color = (Color & 0xFFFFFF00) | (Alpha & 0xFF);
}

Expand Down
2 changes: 1 addition & 1 deletion source/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Object
public:
Object();
Object(Object const&) = delete;
virtual ~Object();
virtual ~Object() = default;
Object& operator=(Object const&) = delete;
float GetLeft();
float GetTop();
Expand Down
4 changes: 2 additions & 2 deletions source/symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
* Constructor for the Symbol class.
*/
Symbol::Symbol() :
Object()
Object(),
Img(Texture::CreateFromPNG(symbols_png))
{
Width = 136;
Height = 100;

Img = Texture::CreateFromPNG(symbols_png);
GRRLIB_InitTileSet(reinterpret_cast<GRRLIB_texImg *>(Img.get()), Width, Height, 0);
}

Expand Down

0 comments on commit dd18696

Please sign in to comment.