Fixed act selector not appearing on BOB

This commit is contained in:
Llennpie 2023-03-10 20:20:28 -05:00
parent 447cc79a81
commit 208698758d
3 changed files with 6 additions and 5 deletions

View file

@ -572,7 +572,7 @@ s32 save_file_get_course_star_count(s32 fileIndex, s32 courseIndex) {
}
s32 save_file_get_total_star_count(s32 fileIndex, s32 minCourse, s32 maxCourse) {
/*s32 count = 0;
s32 count = 0;
// Get standard course star count.
for (; minCourse <= maxCourse; minCourse++) {
@ -580,9 +580,7 @@ s32 save_file_get_total_star_count(s32 fileIndex, s32 minCourse, s32 maxCourse)
}
// Add castle secret star count.
return save_file_get_course_star_count(fileIndex, -1) + count;*/
return configFakeStarCount;
return save_file_get_course_star_count(fileIndex, -1) + count;
}
void save_file_set_flags(u32 flags) {

View file

@ -88,7 +88,7 @@ bool configPrecacheRes = true;
#endif
unsigned int configEditorTheme = 1; // Moon by default
unsigned int configMCameraMode = 0; // keyboard is better
bool configEditorFastApply = false;
bool configEditorFastApply = true;
bool configEditorAutoModelCc = false;
bool configEditorAutoSpark = true;
bool configEditorShowTips = true;
@ -96,6 +96,7 @@ bool configEditorNearClipping = false;
unsigned int configFps60 = true;
bool configEditorInterpolateAnims = false;
bool configEditorAlwaysChroma = false;
bool configEditorExpressionPreviews = false;
unsigned int configFakeStarCount = 0;
bool configUnlockDoors = true;
#ifdef BETTERCAMERA
@ -166,6 +167,7 @@ static const struct ConfigOption options[] = {
{.name = "editor_near_clipping", .type = CONFIG_TYPE_BOOL, .uintValue = &configEditorNearClipping},
{.name = "editor_interpolate_anims", .type = CONFIG_TYPE_BOOL, .uintValue = &configEditorInterpolateAnims},
{.name = "editor_always_chroma", .type = CONFIG_TYPE_BOOL, .uintValue = &configEditorAlwaysChroma},
{.name = "editor_preview_expressions", .type = CONFIG_TYPE_BOOL, .uintValue = &configEditorExpressionPreviews},
{.name = "fake_star_count", .type = CONFIG_TYPE_UINT, .uintValue = &configFakeStarCount},
{.name = "fake_unlock_doors", .type = CONFIG_TYPE_BOOL, .uintValue = &configUnlockDoors},
#ifdef BETTERCAMERA

View file

@ -62,6 +62,7 @@ extern bool configEditorNearClipping;
extern bool configEditorShowTips;
extern unsigned int configFps60;
extern bool configEditorInterpolateAnims;
extern bool configEditorExpressionPreviews;
extern unsigned int configFakeStarCount;
extern bool configUnlockDoors;
extern bool configEditorAlwaysChroma;