Skip to content

Commit 0c33f1d

Browse files
authored
Merge branch 'grumpycoders:main' into Breakpoints-improvements
2 parents 19598ec + c8040dc commit 0c33f1d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/core/pcsxlua.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ PCSX::Slice* createSaveState() {
113113
void loadSaveStateFromSlice(PCSX::Slice* data) { PCSX::SaveStates::load(data->asStringView()); }
114114

115115
void loadSaveStateFromFile(PCSX::LuaFFI::LuaFile* file) {
116-
auto data = file->file->readAt(file->file->size(), 0);
116+
auto data = file->file->readAt(64 * 1024 * 1024, 0);
117117
PCSX::SaveStates::load(data.asStringView());
118118
}
119119

src/spu/debug.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ void DrawTableGeneralTag(const size_t channel, SPU_CHANNELS_TAGS& tags) {
181181
void DrawTableGeneralOn(const Chan::Data& data) {
182182
ImGui::BeginDisabled();
183183
auto bit1 = data.get<Chan::On>().value;
184-
ImGui::Checkbox("", &bit1);
184+
ImGui::Checkbox("##On", &bit1);
185185
ImGui::EndDisabled();
186186
}
187187

188188
void DrawTableGeneralOff(const Chan::Data& data) {
189189
auto bit2 = data.get<Chan::Stop>().value;
190190
ImGui::BeginDisabled();
191-
ImGui::Checkbox("", &bit2);
191+
ImGui::Checkbox("##Off", &bit2);
192192
ImGui::EndDisabled();
193193
}
194194

@@ -237,7 +237,7 @@ void DrawTableGeneralFMod(const Chan::Data& data) { ImGui::Text("%i", data.get<C
237237

238238
void DrawTableGeneralPlot(SPU_CHANNELS_PLOT plot, size_t channel) {
239239
constexpr auto plotSize = ImVec2(Grid::WidthGeneralPlot - TablePadding, 0);
240-
ImGui::PlotHistogram("", plot[channel], impl::DEBUG_SAMPLES, 0, nullptr, 0.0f, 1.0f, plotSize);
240+
ImGui::PlotHistogram("##Plot", plot[channel], impl::DEBUG_SAMPLES, 0, nullptr, 0.0f, 1.0f, plotSize);
241241
}
242242

243243
void DrawTableGeneral(SPU_CHANNELS_INFO channels, const float rowHeight, SPU_CHANNELS_TAGS tags,
@@ -255,6 +255,7 @@ void DrawTableGeneral(SPU_CHANNELS_INFO channels, const float rowHeight, SPU_CHA
255255

256256
ImGui::TableHeadersRow();
257257
for (auto i = 0u; i < SPU_CHANNELS_SIZE; ++i) {
258+
ImGui::PushID(i);
258259
const auto& data = channels[i].data;
259260

260261
ImGui::TableNextRow(Grid::FlagsRow, rowHeight);
@@ -282,6 +283,7 @@ void DrawTableGeneral(SPU_CHANNELS_INFO channels, const float rowHeight, SPU_CHA
282283
ImGui::TableNextColumn();
283284
DrawTableGeneralPlot(plot, i);
284285
// @formatter:on
286+
ImGui::PopID();
285287
}
286288
ImGui::EndTable();
287289
}

0 commit comments

Comments
 (0)