foxygit / fake-08-xbox360 Log in
commit 281a7510d937228f85b752a5d0aacb085a8d413c
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Sat Feb 6 11:58:16 2021 -0700
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Sat Feb 6 11:58:16 2021 -0700

    Only show cart filename in bios
---
 source/FakoBios.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/source/FakoBios.h b/source/FakoBios.h
index 1a913a4..b869d0a 100644
--- a/source/FakoBios.h
+++ b/source/FakoBios.h
@@ -79,7 +79,12 @@ function _update60()

 	if cidx > 0 and cidx <= numcarts then
 		carttoload = carts[cidx]
-		linebuffer = "load " .. carttoload
+		local lastslashidx = string.find(carttoload, "/[^/]*$")
+		local dispstr = carttoload
+		if lastslashidx > 0 then
+			dispstr = sub(dispstr, lastslashidx + 1)
+		end
+		linebuffer = "load " .. dispstr
 	else
 		carttoload = ""
 	end