format stage ids more consistently
This commit is contained in:
parent
14e750fde0
commit
ddc15eafc7
6 changed files with 8 additions and 8 deletions
|
@ -166,7 +166,7 @@ int cli_args(int argc, char **argv, CLIAction *a) {
|
|||
if(a->type != CLI_PlayReplay && a->type != CLI_SelectStage) {
|
||||
log_warn("--sid was ignored");
|
||||
} else if(!stage_get(stageid)) {
|
||||
log_fatal("Invalid stage id: %x", stageid);
|
||||
log_fatal("Invalid stage id: %X", stageid);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ int main(int argc, char **argv) {
|
|||
|
||||
if(a.type == CLI_DumpStages) {
|
||||
for(StageInfo *stg = stages; stg->procs; ++stg) {
|
||||
tsfprintf(stdout, "%x %s: %s\n", stg->id, stg->title, stg->subtitle);
|
||||
tsfprintf(stdout, "%X %s: %s\n", stg->id, stg->title, stg->subtitle);
|
||||
}
|
||||
|
||||
free_cli_action(&a);
|
||||
|
@ -276,7 +276,7 @@ int main(int argc, char **argv) {
|
|||
log_warn("Compiled with DEBUG flag!");
|
||||
|
||||
if(a.type == CLI_SelectStage) {
|
||||
log_info("Entering stage skip mode: Stage %x", a.stageid);
|
||||
log_info("Entering stage skip mode: Stage %X", a.stageid);
|
||||
StageInfo* stg = stage_get(a.stageid);
|
||||
assert(stg); // properly checked before this
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ void save_rpy(MenuData *menu, void *a) {
|
|||
if(rpy->numstages > 1)
|
||||
snprintf(name, 128, "taisei_%s_%s_%s", strtime, prepr, drepr);
|
||||
else
|
||||
snprintf(name, 128, "taisei_%s_stg%d_%s_%s", strtime, rpy->stages[0].stage, prepr, drepr);
|
||||
snprintf(name, 128, "taisei_%s_stg%X_%s_%s", strtime, rpy->stages[0].stage, prepr, drepr);
|
||||
|
||||
replay_save(rpy, name);
|
||||
}
|
||||
|
|
|
@ -207,7 +207,7 @@ static void progress_read(SDL_RWops *file) {
|
|||
p->num_played = np;
|
||||
p->num_cleared = nc;
|
||||
} else {
|
||||
log_warn("Invalid stage %x ignored", stg);
|
||||
log_warn("Invalid stage %X ignored", stg);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -723,7 +723,7 @@ int replay_find_stage_idx(Replay *rpy, uint8_t stageid) {
|
|||
}
|
||||
}
|
||||
|
||||
log_warn("Stage %x was not found in the replay", stageid);
|
||||
log_warn("Stage %X was not found in the replay", stageid);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -744,7 +744,7 @@ void replay_play(Replay *rpy, int firstidx) {
|
|||
StageInfo *gstg = stage_get(rstg->stage);
|
||||
|
||||
if(!gstg) {
|
||||
log_warn("Invalid stage %x in replay at %i skipped.", rstg->stage, i);
|
||||
log_warn("Invalid stage %X in replay at %i skipped.", rstg->stage, i);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ void stage_init_array(void) {
|
|||
|
||||
for(int j = 0; stages[j].procs; ++j) {
|
||||
if(i != j && stages[i].id == stages[j].id) {
|
||||
log_fatal("Duplicate ID 0x%04x in stages array, indices: %i, %i", stages[i].id, i, j);
|
||||
log_fatal("Duplicate ID %X in stages array, indices: %i, %i", stages[i].id, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue