projects
/
dosemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61702d1
)
Fix invalid drive error on Termux
author
Robert Pengelly
<robertapengelly@hotmail.com>
Mon, 19 Oct 2026 07:33:45 +0000
(08:33 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Mon, 19 Oct 2026 07:33:45 +0000
(08:33 +0100)
interrupts.c
patch
|
blob
|
history
diff --git
a/interrupts.c
b/interrupts.c
index 9138e5fd9f1a29e58a0d434f683bd566fd86bed4..430f6fc7f81752d82ce4a462ea08b319daf00356 100644
(file)
--- a/
interrupts.c
+++ b/
interrupts.c
@@
-7859,10
+7859,17
@@
void init_ivt (CPU8086 *cpu) {
#else
if (getcwd (cwd, sizeof (cwd)) != NULL && cwd[0] == '/') {
+# if defined (__ANDROID__)
+ dos_drive_root[0] = '\0';
+ dos_append_bounded (dos_drive_root, sizeof (dos_drive_root), cwd);
+
+ relative = cwd + strlen (cwd);
+# else
dos_drive_root[0] = '/';
dos_drive_root[1] = '\0';
relative = cwd;
+# endif
#endif
while (*relative == '/' || *relative == '\\') {