Skip to content

Commit

Permalink
Format sanitization and remove a couple comments
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Aug 10, 2024
1 parent b6d291d commit 967bf00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2821,7 +2821,7 @@ se_debug_tool_desc_t gb_debug_tools[]={
{ICON_FK_VOLUME_UP, ICON_FK_VOLUME_UP " PSG",se_psg_debugger},
{ICON_FK_DELICIOUS, ICON_FK_DELICIOUS " Tile Map",gb_tile_map_debugger},
{ICON_FK_TH, ICON_FK_TH " Tile Data",gb_tile_data_debugger},
{ICON_FK_AREA_CHART, ICON_FK_AREA_CHART " Emulator Stats",se_draw_emu_stats, .allow_hardcore=true}, // TODO: why does emerald unlock an achievement on boot
{ICON_FK_AREA_CHART, ICON_FK_AREA_CHART " Emulator Stats",se_draw_emu_stats, .allow_hardcore=true},
{NULL,NULL,NULL}
};
se_debug_tool_desc_t nds_debug_tools[]={
Expand All @@ -2833,7 +2833,7 @@ se_debug_tool_desc_t nds_debug_tools[]={
{ICON_FK_PENCIL_SQUARE_O " 9", ICON_FK_PENCIL_SQUARE_O " ARM9 Memory",nds9_mem_debugger},
{ICON_FK_INFO_CIRCLE, ICON_FK_INFO_CIRCLE " NDS IO",nds_io_debugger},

{ICON_FK_AREA_CHART, ICON_FK_AREA_CHART " Emulator Stats",se_draw_emu_stats, .allow_hardcore=true}, // TODO: probably should not allow hardcore. ig Pokemon Black unlocks 6 achievements on boot
{ICON_FK_AREA_CHART, ICON_FK_AREA_CHART " Emulator Stats",se_draw_emu_stats, .allow_hardcore=true},
{NULL,NULL,NULL}
};
static se_debug_tool_desc_t* se_get_debug_description(){
Expand Down Expand Up @@ -4328,10 +4328,10 @@ void se_boxed_image_dual_label(const char * first_label, const char* second_labe

igSetCursorPosX(curr_pos.x+box_w+padding);
igSetCursorPosY(curr_pos.y-padding);
se_text(first_label);
se_text("%s", first_label);
igSetCursorPosX(curr_pos.x+box_w+padding);
igSetCursorPosY(igGetCursorPosY()-5);
se_text_disabled(second_label);
se_text_disabled("%s", second_label);
igSetCursorPos(curr_pos);
if(image.id != SG_INVALID_ID)igImageButton((ImTextureID)(intptr_t)image.id,(ImVec2){box_w,box_h},uv0,uv1,0,(ImVec4){1,1,1,1},(ImVec4){1,1,1,1});
else se_text_centered_in_box((ImVec2){0,0}, (ImVec2){box_w,box_h},box);
Expand Down
2 changes: 1 addition & 1 deletion src/retro_achievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ namespace
ra_bucket_t* bucket = &ra_state->game_state->achievement_list.buckets[i];
std::string label = category_to_icon(bucket->bucket_id) + " " +
se_localize_and_cache(bucket->label.c_str());
se_text(label.c_str());
se_text("%s", label.c_str());
for (int j = 0; j < bucket->achievements.size(); j++)
{
sg_image image = {SG_INVALID_ID};
Expand Down

0 comments on commit 967bf00

Please sign in to comment.