Skip to content

Commit d748e99

Browse files
committed
Update makefile
2 parents 7421c44 + 5d54a02 commit d748e99

File tree

128 files changed

+3994
-2384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+3994
-2384
lines changed

android-project/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
-->
55
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
66
package="org.mamedev.mame"
7-
android:versionCode="280"
8-
android:versionName="0.280"
7+
android:versionCode="281"
8+
android:versionName="0.281"
99
android:installLocation="auto">
1010

1111
<!-- OpenGL ES 2.0 -->

docs/source/luascript/ref-input.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,18 +333,12 @@ field.is_digital_joystick (read-only)
333333
switch.
334334
field.enabled (read-only)
335335
A Boolean indicating whether the field is enabled.
336-
field.optional (read-only)
337-
A Boolean indicating whether the field is optional and not required to use
338-
the emulated system.
339336
field.cocktail (read-only)
340337
A Boolean indicating whether the field is only used when the system is
341338
configured for a cocktail table cabinet.
342339
field.toggle (read-only)
343340
A Boolean indicating whether the field corresponds to a hardware toggle
344341
switch or push-on, push-off button.
345-
field.rotated (read-only)
346-
A Boolean indicating whether the field corresponds to a control that is
347-
rotated relative its standard orientation.
348342
field.analog_reverse (read-only)
349343
A Boolean indicating whether the field corresponds to an analog control that
350344
increases in the opposite direction to the convention (e.g. larger values

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
###########################################################################
88

99
BARE_VERS := 0.281
10-
LONG_VERS := $(BARE_VERS).0
10+
LONG_VERS := $(BARE_VERS).x
1111

1212
###########################################################################
1313
################# BEGIN USER-CONFIGURABLE OPTIONS #####################

scripts/src/bus.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3465,6 +3465,8 @@ if (BUSES["RS232"]~=null) then
34653465
files {
34663466
MAME_DIR .. "src/devices/bus/rs232/exorterm.cpp",
34673467
MAME_DIR .. "src/devices/bus/rs232/exorterm.h",
3468+
MAME_DIR .. "src/devices/bus/rs232/heath_h19.cpp",
3469+
MAME_DIR .. "src/devices/bus/rs232/heath_h19.h",
34683470
MAME_DIR .. "src/devices/bus/rs232/hlemouse.cpp",
34693471
MAME_DIR .. "src/devices/bus/rs232/hlemouse.h",
34703472
MAME_DIR .. "src/devices/bus/rs232/ie15.cpp",

scripts/src/machine.lua

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3081,18 +3081,6 @@ if (MACHINES["RIPPLE_COUNTER"]~=null) then
30813081
}
30823082
end
30833083

3084-
---------------------------------------------------
3085-
--
3086-
--@src/devices/machine/roc10937.h,MACHINES["ROC10937"] = true
3087-
---------------------------------------------------
3088-
3089-
if (MACHINES["ROC10937"]~=null) then
3090-
files {
3091-
MAME_DIR .. "src/devices/machine/roc10937.cpp",
3092-
MAME_DIR .. "src/devices/machine/roc10937.h",
3093-
}
3094-
end
3095-
30963084
---------------------------------------------------
30973085
--
30983086
--@src/devices/machine/rp5c01.h,MACHINES["RP5C01"] = true
@@ -5417,19 +5405,3 @@ if (MACHINES["SCI4"]~=null) then
54175405
MAME_DIR .. "src/devices/machine/sci4.h",
54185406
}
54195407
end
5420-
5421-
---------------------------------------------------
5422-
--
5423-
--@src/devices/machine/pl6_fpga.h,MACHINES["HEBER_PLUTO"] = true
5424-
--@src/devices/machine/pl6_pic.h,MACHINES["HEBER_PLUTO"] = true
5425-
---------------------------------------------------
5426-
if (MACHINES["HEBER_PLUTO"]~=null) then
5427-
files {
5428-
MAME_DIR .. "src/devices/machine/pl6_fpga.cpp",
5429-
MAME_DIR .. "src/devices/machine/pl6_fpga.h",
5430-
MAME_DIR .. "src/devices/machine/pl6_pic.cpp",
5431-
MAME_DIR .. "src/devices/machine/pl6_pic.h",
5432-
MAME_DIR .. "src/devices/machine/pl6_exp.cpp",
5433-
MAME_DIR .. "src/devices/machine/pl6_exp.h",
5434-
}
5435-
end

scripts/src/video.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,18 @@ if (VIDEOS["RAMDAC"]~=null) then
11371137
}
11381138
end
11391139

1140+
---------------------------------------------------
1141+
--
1142+
--@src/devices/video/roc10937.h,VIDEOS["ROC10937"] = true
1143+
---------------------------------------------------
1144+
1145+
if (VIDEOS["ROC10937"]~=null) then
1146+
files {
1147+
MAME_DIR .. "src/devices/video/roc10937.cpp",
1148+
MAME_DIR .. "src/devices/video/roc10937.h",
1149+
}
1150+
end
1151+
11401152
--------------------------------------------------
11411153
--
11421154
--@src/devices/video/saa5050.h,VIDEOS["SAA5050"] = true
@@ -1805,15 +1817,3 @@ if (VIDEOS["ST7626"]~=null) then
18051817
MAME_DIR .. "src/devices/video/st7626.h",
18061818
}
18071819
end
1808-
1809-
--------------------------------------------------
1810-
--
1811-
--@src/devices/video/serialvfd.h,VIDEOS["SERIALVFD"] = true
1812-
--------------------------------------------------
1813-
1814-
if (VIDEOS["SERIALVFD"]~=null) then
1815-
files {
1816-
MAME_DIR .. "src/devices/video/serialvfd.cpp",
1817-
MAME_DIR .. "src/devices/video/serialvfd.h",
1818-
}
1819-
end

src/devices/bus/bbc/analogue/analogue.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ device_bbc_analogue_interface::device_bbc_analogue_interface(const machine_confi
4343
bbc_analogue_slot_device::bbc_analogue_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
4444
: device_t(mconfig, BBC_ANALOGUE_SLOT, tag, owner, clock)
4545
, device_single_card_slot_interface<device_bbc_analogue_interface>(mconfig, *this)
46+
, m_screen(*this, finder_base::DUMMY_TAG)
4647
, m_card(nullptr)
4748
, m_lpstb_handler(*this)
4849
{

src/devices/bus/bbc/analogue/analogue.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131

3232
#pragma once
3333

34+
#include "screen.h"
35+
3436

3537
//**************************************************************************
3638
// TYPE DEFINITIONS
@@ -56,6 +58,8 @@ class bbc_analogue_slot_device : public device_t, public device_single_card_slot
5658

5759
bbc_analogue_slot_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock = 0);
5860

61+
template <typename T> void set_screen(T &&tag) { m_screen.set_tag(std::forward<T>(tag)); }
62+
5963
// callbacks
6064
auto lpstb_handler() { return m_lpstb_handler.bind(); }
6165

@@ -65,6 +69,8 @@ class bbc_analogue_slot_device : public device_t, public device_single_card_slot
6569
uint8_t pb_r();
6670
void pb_w(uint8_t data);
6771

72+
optional_device<screen_device> m_screen;
73+
6874
protected:
6975
// device_t overrides
7076
virtual void device_start() override ATTR_COLD;
@@ -88,6 +94,8 @@ class device_bbc_analogue_interface : public device_interface
8894
protected:
8995
device_bbc_analogue_interface(const machine_config &mconfig, device_t &device);
9096

97+
screen_device *screen() { return m_slot->m_screen; }
98+
9199
bbc_analogue_slot_device *const m_slot;
92100
};
93101

src/devices/bus/bbc/analogue/lightpen.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#include "emu.h"
2626
#include "lightpen.h"
27-
#include "screen.h"
2827

2928

3029
namespace {
@@ -35,7 +34,6 @@ class bbc_lightpen_device : public device_t, public device_bbc_analogue_interfac
3534
bbc_lightpen_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
3635
: device_t(mconfig, type, tag, owner, clock)
3736
, device_bbc_analogue_interface(mconfig, *this)
38-
, m_screen(*this, ":screen")
3937
, m_light(*this, "LIGHT%u", 0)
4038
, m_button(*this, "BUTTON")
4139
, m_pen_timer(nullptr)
@@ -58,7 +56,6 @@ class bbc_lightpen_device : public device_t, public device_bbc_analogue_interfac
5856
}
5957

6058
private:
61-
required_device<screen_device> m_screen;
6259
required_ioport_array<2> m_light;
6360
required_ioport m_button;
6461

@@ -193,11 +190,14 @@ ioport_constructor bbc_stacklr_device::device_input_ports() const
193190

194191
void bbc_lightpen_device::device_start()
195192
{
196-
if (!m_screen->started())
193+
if (!screen())
194+
fatalerror("Can't find screen device required for %s\n", name());
195+
196+
if (!screen()->started())
197197
throw device_missing_dependencies();
198198

199199
m_pen_timer = timer_alloc(FUNC(bbc_lightpen_device::update_pen), this);
200-
m_pen_timer->adjust(attotime::zero, 0, m_screen->frame_period());
200+
m_pen_timer->adjust(attotime::zero, 0, screen()->frame_period());
201201

202202
m_lpstb_timer = timer_alloc(FUNC(bbc_lightpen_device::lpstb), this);
203203
}
@@ -211,12 +211,12 @@ TIMER_CALLBACK_MEMBER(bbc_lightpen_device::update_pen)
211211
{
212212
int x_val = m_light[0]->read();
213213
int y_val = m_light[1]->read();
214-
const rectangle &vis_area = m_screen->visible_area();
214+
const rectangle &vis_area = screen()->visible_area();
215215

216216
int xt = x_val * vis_area.width() / 1024 + vis_area.min_x;
217217
int yt = y_val * vis_area.height() / 1024 + vis_area.min_y;
218218

219-
m_lpstb_timer->adjust(m_screen->time_until_pos(yt, xt));
219+
m_lpstb_timer->adjust(screen()->time_until_pos(yt, xt));
220220
}
221221

222222
TIMER_CALLBACK_MEMBER(bbc_lightpen_device::lpstb)

src/devices/bus/bbc/exp/exp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ device_bbc_exp_interface::device_bbc_exp_interface(const machine_config &mconfig
4343
bbc_exp_slot_device::bbc_exp_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
4444
: device_t(mconfig, BBC_EXP_SLOT, tag, owner, clock)
4545
, device_single_card_slot_interface<device_bbc_exp_interface>(mconfig, *this)
46+
, m_screen(*this, finder_base::DUMMY_TAG)
4647
, m_card(nullptr)
4748
, m_irq_handler(*this)
4849
, m_nmi_handler(*this)

0 commit comments

Comments
 (0)