ImDebugger: Show per-thread current directory in threads view

This commit is contained in:
Henrik Rydgård
2026-08-24 10:21:27 +02:00
parent 8a26e39792
commit b3a2178a5c
4 changed files with 20 additions and 8 deletions
+3 -2
View File
@@ -44,8 +44,7 @@ private:
// The order of this vector is meaningful - lookups are always a linear search from the start.
std::vector<MountPoint> fileSystems;
typedef std::map<int, std::string> currentDir_t;
currentDir_t currentDir;
std::map<int, std::string> currentDir;
std::string startingDirectory;
mutable std::recursive_mutex lock; // must be recursive. TODO: fix that
@@ -88,6 +87,8 @@ public:
void ThreadEnded(int threadID);
void Shutdown();
std::string GetCurrentDirForThread(int threadID) const;
u32 GetNewHandle() override {
u32 res = current++;
if (current < 0) {