mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-06 04:33:49 +01:00
Merge pull request #18750 from hrydgard/more-minor-fixes
More minor fixes
This commit is contained in:
5 files changed
+16
-2
No files matched your search
@@ -503,6 +503,14 @@ public:
|
||||
void ResetStats() override {
|
||||
renderManager_.ResetStats();
|
||||
}
|
||||
void StopThreads() override {
|
||||
renderManager_.StopThreads();
|
||||
}
|
||||
|
||||
void StartThreads() override {
|
||||
renderManager_.StartThreads();
|
||||
}
|
||||
|
||||
|
||||
std::string GetInfoString(InfoField info) const override {
|
||||
// TODO: Make these actually query the right information
|
||||
|
||||
@@ -834,6 +834,10 @@ public:
|
||||
targetHeight_ = h;
|
||||
}
|
||||
|
||||
// In Vulkan, when changing things like MSAA mode, we can't have draw commands in flight (since we only support one at a time).
|
||||
virtual void StopThreads() {}
|
||||
virtual void StartThreads() {}
|
||||
|
||||
virtual std::string GetInfoString(InfoField info) const = 0;
|
||||
virtual uint64_t GetNativeObject(NativeObject obj, void *srcObject = nullptr) = 0; // Most uses don't need an srcObject.
|
||||
|
||||
|
||||
@@ -2810,7 +2810,9 @@ void FramebufferManagerCommon::NotifyRenderResized(int msaaLevel) {
|
||||
PSP_CoreParameter().renderScaleFactor = scaleFactor;
|
||||
|
||||
if (UpdateRenderSize(msaaLevel)) {
|
||||
draw_->StopThreads();
|
||||
DestroyAllFBOs();
|
||||
draw_->StartThreads();
|
||||
}
|
||||
|
||||
// No drawing is allowed here. This includes anything that might potentially touch a command buffer, like creating images!
|
||||
|
||||
+1
-1
@@ -514,7 +514,7 @@ GameBrowser::GameBrowser(int token, const Path &path, BrowseFlags browseFlags, b
|
||||
: LinearLayout(UI::ORIENT_VERTICAL, layoutParams), path_(path), gridStyle_(gridStyle), browseFlags_(browseFlags), lastText_(lastText), lastLink_(lastLink), screenManager_(screenManager), token_(token) {
|
||||
using namespace UI;
|
||||
path_.SetUserAgent(StringFromFormat("PPSSPP/%s", PPSSPP_GIT_VERSION));
|
||||
path_.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString());
|
||||
path_.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString() + "/");
|
||||
Refresh();
|
||||
}
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ static bool LoadGameList(const Path &url, std::vector<Path> &games) {
|
||||
PathBrowser browser(url);
|
||||
std::vector<File::FileInfo> files;
|
||||
browser.SetUserAgent(StringFromFormat("PPSSPP/%s", PPSSPP_GIT_VERSION));
|
||||
browser.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString());
|
||||
browser.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString() + "/");
|
||||
browser.GetListing(files, "iso:cso:chd:pbp:elf:prx:ppdmp:", &scanCancelled);
|
||||
if (scanCancelled) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user