Skip to content

Commit

Permalink
Final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMKW committed Nov 10, 2022
1 parent e3db4dc commit bd09f61
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion include/BetterSMS/libs/container.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ public:

for (u32 i = 0; i < SurfaceSize; ++i) {
for (auto &item : mItemBuffer[i]) {
OSReport("%s, 0x%X\n", item.mKey, item.mValue);
out.insert(out.end(), item);
}
}
Expand Down
20 changes: 10 additions & 10 deletions src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ void initAllSettings(TApplication *app) {
CloseSavedSettings(*group.mValue, &finfo);
}

/*for (auto &group : groups) {
for (auto &group : groups) {
for (auto &setting : group.mValue->getSettings()) {
if (setting->isUnlocked()) {
group.mValue->mUnlockedMap.set(reinterpret_cast<u32>(setting), true);
}
}
}*/
}
}

//
Expand Down Expand Up @@ -743,16 +743,16 @@ void SettingsDirector::initializeErrorLayout() {
mask->storeTIMG(GetResourceTextureHeader(gMaskBlack));
mask->_50 = false;

J2DPane *rootPane = new J2DPane(19, 'root', {0, 0, 400, 270});
J2DPane *rootPane = new J2DPane(19, 'root', {0, 0, 400, 280});
mSaveErrorPanel->mScreen->mChildrenList.append(&rootPane->mPtrLink);

mSaveErrorPanel->mAnimatedPane = new TBoundPane(rootPane, {0, 0, 400, 270});
mSaveErrorPanel->mAnimatedPane = new TBoundPane(rootPane, {0, 0, 400, 280});
mSaveErrorPanel->mAnimatedPane->mPane = rootPane;

J2DPicture *maskPanel = new J2DPicture('mask', {0, 0, 0, 0});
{
maskPanel->insert(mask, 0, 1.0f);
maskPanel->mRect = {0, 0, 400, 300};
maskPanel->mRect = {0, 0, 400, 280};
maskPanel->mAlpha = 210;
maskPanel->mColorOverlay = {0, 0, 0, 255};
maskPanel->mVertexColors[0] = {20, 0, 0, 255};
Expand All @@ -762,7 +762,7 @@ void SettingsDirector::initializeErrorLayout() {
}
rootPane->mChildrenList.append(&maskPanel->mPtrLink);

mSaveErrorPanel->mErrorHandlerPane = new J2DPane(19, 'err_', {0, 0, 400, 270});
mSaveErrorPanel->mErrorHandlerPane = new J2DPane(19, 'err_', {0, 0, 400, 280});
mSaveErrorPanel->mErrorHandlerPane->mIsVisible = false;
{
mSaveErrorPanel->mErrorTextBox =
Expand All @@ -779,7 +779,7 @@ void SettingsDirector::initializeErrorLayout() {
&mSaveErrorPanel->mErrorTextBox->mPtrLink);

J2DTextBox *description = new J2DTextBox(
'desc', {20, 50, 380, 220}, gpSystemFont->mFont,
'desc', {20, 50, 380, 230}, gpSystemFont->mFont,
"Something went wrong when saving the settings.\nWould you like to try again?",
J2DTextBoxHBinding::Center, J2DTextBoxVBinding::Center);
{
Expand All @@ -799,7 +799,7 @@ void SettingsDirector::initializeErrorLayout() {
&mSaveErrorPanel->mChoiceBoxes[0]->mPtrLink);

mSaveErrorPanel->mChoiceBoxes[1] =
new J2DTextBox('save', {250, 230, 392, 258}, gpSystemFont->mFont, "Retry",
new J2DTextBox('save', {250, 240, 392, 268}, gpSystemFont->mFont, "Retry",
J2DTextBoxHBinding::Left, J2DTextBoxVBinding::Bottom);
{
mSaveErrorPanel->mChoiceBoxes[1]->mCharSizeX = 24;
Expand All @@ -810,11 +810,11 @@ void SettingsDirector::initializeErrorLayout() {
}
rootPane->mChildrenList.append(&mSaveErrorPanel->mErrorHandlerPane->mPtrLink);

mSaveErrorPanel->mSaveTryingPane = new J2DPane(19, 'save', {0, 0, 400, 270});
mSaveErrorPanel->mSaveTryingPane = new J2DPane(19, 'save', {0, 0, 400, 280});
mSaveErrorPanel->mSaveTryingPane->mIsVisible = true;
{
J2DTextBox *description = new J2DTextBox(
'desc', {20, 50, 380, 220}, gpSystemFont->mFont,
'desc', {20, 50, 380, 230}, gpSystemFont->mFont,
"Saving to the memory card...",
J2DTextBoxHBinding::Center, J2DTextBoxVBinding::Center);
{
Expand Down
2 changes: 1 addition & 1 deletion targets/GCNKuriboClangDebug.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set(CMAKE_CXX_STANDARD_LIBRARIES "")
set(SMS_REGION us)

set(SMS_COMPILE_DEFINES
-D__powerpc__ -DKURIBO_NO_TYPES -DNTSCU -DSMS_DEBUG=0
-D__powerpc__ -DKURIBO_NO_TYPES -DNTSCU -DSMS_DEBUG=1
-DGEKKO -D_GLIBCXX_HAVE_WCHAR_H -D__ISO_C_VISIBLE=2000
)

Expand Down
2 changes: 1 addition & 1 deletion targets/GCNKuriboClangRelease.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set(CMAKE_CXX_STANDARD_LIBRARIES "")
set(SMS_REGION us)

set(SMS_COMPILE_DEFINES
-D__powerpc__ -DKURIBO_NO_TYPES -DNTSCU -DSMS_DEBUG=1
-D__powerpc__ -DKURIBO_NO_TYPES -DNTSCU -DSMS_DEBUG=0
-DGEKKO -D_GLIBCXX_HAVE_WCHAR_H -D__ISO_C_VISIBLE=2000
)

Expand Down

0 comments on commit bd09f61

Please sign in to comment.