mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-23 13:01:39 +02:00
The sources of Petari (https://github.com/SMGCommunity/Petari), the Super Mario Galaxy decompilation by the SMGCommunity, at commit 0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and src/. Left out: the game data Petari keeps from the original executable, the error message archive (include/Game/System/ ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's own disc. The port's changes follow in the next commit, so `git diff petari-base -- decomp` shows them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
1.3 KiB
C++
28 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <revolution/types.h>
|
|
|
|
namespace MR {
|
|
/// @brief Computes the size of a message, in bytes.
|
|
/// @param[in] pTitle A pointer to the null-terminated wide title of the message.
|
|
/// @param[in] pBody A pointer to the null-terminated wide body of the message.
|
|
/// @param pictureSize The size of the attached picture data, in bytes.
|
|
/// @param letterSize The size of the letterhead data, in bytes.
|
|
/// @return The size of the message, in bytes.
|
|
u32 calcWiiMailSize(const u16* pTitle, const u16* pBody, u32 pictureSize, u32 letterSize);
|
|
|
|
/// @brief Determines if the Wii Message Board can receive more messages from this application.
|
|
/// @param mailSize The size of the message, in bytes.
|
|
/// @return `true` if there is sufficient free space, `false` otherwise.
|
|
bool checkWiiMailLimit(u32 mailSize);
|
|
|
|
/// @brief Updates the number of bytes sent to the Wii Message Board from the current date.
|
|
/// @param mailSize The size of the message, in bytes.
|
|
void updateWiiMailSentSize(u32 mailSize);
|
|
|
|
/// @brief Returns the name of the message's sender.
|
|
/// @param[in] pMessageId A pointer to the null-terminated name of the target message identifier.
|
|
/// @return A pointer to the null-terminated wide name.
|
|
const wchar_t* getMailSender(const char* pMessageId);
|
|
}; // namespace MR
|