summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Giuseppe Gorgoglione <gorgogsp@gmail.com>2016-08-15 19:07:37 +0200
committer Giuseppe Gorgoglione <gorgogsp@gmail.com>2016-08-15 19:23:16 +0200
commit318952746f2c395b422df1d8ca08eb40b37da42f (patch)
treef42235e0c5e06602c1f9d8902e02ecf0040b9515 /scripts
parent01f273d28369644c32fc58a783395baa6804ab40 (diff)
gba: make video subsystem into a device
Additional info taken from http://problemkaputt.de/gbatek.htm by Martin Korth
Diffstat (limited to 'scripts')
-rw-r--r--scripts/src/video.lua12
-rw-r--r--scripts/target/mame/mess.lua2
2 files changed, 13 insertions, 1 deletions
diff --git a/scripts/src/video.lua b/scripts/src/video.lua
index 95cccd99bfe..8958c7e3852 100644
--- a/scripts/src/video.lua
+++ b/scripts/src/video.lua
@@ -876,3 +876,15 @@ if (VIDEOS["GB_LCD"]~=null) then
MAME_DIR .. "src/devices/video/gb_lcd.h",
}
end
+
+--------------------------------------------------
+--
+--@src/devices/video/gba_lcd.h,VIDEOS["GBA_LCD"] = true
+--------------------------------------------------
+
+if (VIDEOS["GBA_LCD"]~=null) then
+ files {
+ MAME_DIR .. "src/devices/video/gba_lcd.cpp",
+ MAME_DIR .. "src/devices/video/gba_lcd.h",
+ }
+end
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua
index 799f3f1cb68..3146e53bbbc 100644
--- a/scripts/target/mame/mess.lua
+++ b/scripts/target/mame/mess.lua
@@ -333,6 +333,7 @@ VIDEOS["VIC4567"] = true
--VIDEOS+= VOODOO"] = true
VIDEOS["SCN2674"] = true
VIDEOS["GB_LCD"] = true
+VIDEOS["GBA_LCD"] = true
--------------------------------------------------
-- specify available machine cores
@@ -2313,7 +2314,6 @@ files {
MAME_DIR .. "src/mame/machine/gb.cpp",
MAME_DIR .. "src/mame/drivers/gba.cpp",
MAME_DIR .. "src/mame/includes/gba.h",
- MAME_DIR .. "src/mame/video/gba.cpp",
MAME_DIR .. "src/mame/drivers/n64.cpp",
MAME_DIR .. "src/mame/includes/n64.h",
MAME_DIR .. "src/mame/drivers/nes.cpp",