mirror of https://github.com/sm64pc/sm64pc.git
Fixed texture packs gui to be persistance, readded n64 intro
This commit is contained in:
parent
9a5afacdfa
commit
70049fe39f
|
@ -13,7 +13,7 @@ const LevelScript level_script_entry[] = {
|
|||
#ifdef TOGGLE_GAME_DEBUG
|
||||
EXECUTE(/*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ level_intro_entry_4),
|
||||
#else
|
||||
EXECUTE(/*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ script_intro_L1),
|
||||
EXECUTE(/*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ level_intro_n64),
|
||||
#endif
|
||||
JUMP(/*target*/ level_script_entry),
|
||||
};
|
||||
|
|
|
@ -115,7 +115,6 @@ namespace MoonInternal {
|
|||
}
|
||||
|
||||
cout << "Failed to load texture" << endl;
|
||||
cout << fullpath << endl;
|
||||
|
||||
gfx_rapi->upload_texture(missing_image.pixel_data, missing_image.width, missing_image.height);
|
||||
}
|
||||
|
@ -168,7 +167,6 @@ namespace MoonInternal {
|
|||
MoonInternal::bindTextureModifiers();
|
||||
return;
|
||||
}
|
||||
// TODO: Implement garbage collector
|
||||
if(state == "Exit"){
|
||||
textureMods.clear();
|
||||
for(auto &addon : Moon::addons){
|
||||
|
|
|
@ -31,12 +31,14 @@ enum ItemButtons{
|
|||
};
|
||||
|
||||
void MoonAddonsScreen::Init(){
|
||||
texturePackList.clear();
|
||||
if(texturePackList.empty()){
|
||||
texturePackList.clear();
|
||||
copy(Moon::addons.begin(), Moon::addons.end(), back_inserter(texturePackList));
|
||||
reverse(texturePackList.begin(), texturePackList.end());
|
||||
}
|
||||
this->scrollIndex = 0;
|
||||
scrollModifier = 0;
|
||||
currentPack = NULL;
|
||||
copy(Moon::addons.begin(), Moon::addons.end(), back_inserter(texturePackList));
|
||||
reverse(texturePackList.begin(), texturePackList.end());
|
||||
}
|
||||
|
||||
void MoonAddonsScreen::Mount(){
|
||||
|
|
Loading…
Reference in New Issue