Skip to content

Commit

Permalink
[Chores] Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasnoble authored Dec 5, 2022
1 parent 53bcf36 commit e3bcb40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions src/cdrom/cdriso.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,10 @@ uint8_t *PCSX::CDRIso::getBuffer() {

void PCSX::CDRIso::printTracks() {
for (int i = 1; i <= m_numtracks; i++) {
PCSX::g_system->printf(_("Track %.2d (%s) - Start %.2d:%.2d:%.2d, Length %.2d:%.2d:%.2d\n"), i,
(m_ti[i].type == TrackType::DATA ? "DATA"
: m_ti[i].cddatype == trackinfo::CCDDA ? "CZDA"
: "CDDA"),
m_ti[i].start.m, m_ti[i].start.s, m_ti[i].start.f, m_ti[i].length.m, m_ti[i].length.s,
m_ti[i].length.f);
PCSX::g_system->printf(
_("Track %.2d (%s) - Start %.2d:%.2d:%.2d, Length %.2d:%.2d:%.2d\n"), i,
(m_ti[i].type == TrackType::DATA ? "DATA" : m_ti[i].cddatype == trackinfo::CCDDA ? "CZDA" : "CDDA"),
m_ti[i].start.m, m_ti[i].start.s, m_ti[i].start.f, m_ti[i].length.m, m_ti[i].length.s, m_ti[i].length.f);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/cdrom/cdriso.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class CDRIso {
IEC60908b::MSF length;
IO<File> handle = nullptr; // for multi-track images CDDA
enum cddatype_t { NONE = 0, BIN = 1, CCDDA = 2 } cddatype = NONE; // BIN, WAV, MP3, APE
uint32_t start_offset = 0; // byte offset from start of above file
uint32_t start_offset = 0; // byte offset from start of above file
};

static constexpr unsigned MAXTRACKS = 100; /* How many tracks can a CD hold? */
Expand Down
6 changes: 3 additions & 3 deletions src/gui/widgets/typed_debugger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ void PCSX::Widgets::TypedDebugger::draw(const char* title, GUI* gui) {
if (m_functions.empty()) {
ImGui::TextWrapped(
_("Functions can be imported from Ghidra using tools/ghidra_scripts/export_redux.py, which will generate "
"a redux_funcs.txt file in its folder, or from any text file where each line specifies the function "
"address, name and arguments, separated by semi-colons; arguments are specified in type-name-size tuples "
"whose elements are separated by commas.\n\nFor example:\n"));
"a redux_funcs.txt file in its folder, or from any text file where each line specifies the function "
"address, name and arguments, separated by semi-colons; arguments are specified in type-name-size tuples "
"whose elements are separated by commas.\n\nFor example:\n"));
gui->useMonoFont();
ImGui::TextUnformatted("800148b8;task_main_800148B8;int,param_1,4;int,param_2,1;\n\n");
ImGui::PopFont();
Expand Down

0 comments on commit e3bcb40

Please sign in to comment.