Script paths are archive-absolute ("/file.bin"); build the full stdio path on the slot's device, tolerating a missing leading slash.
| 387 | // Script paths are archive-absolute ("/file.bin"); build the full stdio |
| 388 | // path on the slot's device, tolerating a missing leading slash. |
| 389 | std::string devPath(int handle, const char* path) const |
| 390 | { |
| 391 | std::string p = path; |
| 392 | if (p.empty() || p[0] != '/') { |
| 393 | p = "/" + p; |
| 394 | } |
| 395 | return std::string(mSlots[handle].dev) + ":" + p; |
| 396 | } |
| 397 | |
| 398 | SavSlot mSlots[MAX_SAV_HANDLES]; |
| 399 | }; |