Skip to content

Commit

Permalink
Files for 268.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbbert committed Jul 31, 2024
1 parent 41bbe29 commit 4a7ebff
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/release/build/uprel.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\goto end
git fetch upstream
git merge upstream/release0267
git merge upstream/release0268
git checkout master
:end
pause
2 changes: 1 addition & 1 deletion docs/release/src/devices/bus/nes/nes_ines.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ void ines_mapr_setup( int mapper, int *pcb_id )
const nes_mmc *mmc = nes_mapper_lookup(mapper);
if (mmc == nullptr)
{
osd_printf_error("Unimplemented Mapper %d\n", mapper); // MESSUI - do not kill emulator please
osd_printf_error("Unimplemented Mapper: %d\n", mapper); // MESSUI - do not kill emulator please
return;
}

Expand Down
22 changes: 10 additions & 12 deletions docs/release/src/devices/imagedev/floppy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,38 +1140,36 @@ void floppy_image_device::cache_clear()
void floppy_image_device::cache_fill(const attotime &when)
{
std::vector<uint32_t> &buf = m_image->get_buffer(m_cyl, m_ss, m_subcyl);
uint32_t cells = buf.size();
uint32_t const cells = buf.size();
if(cells <= 1) {
m_cache_start_time = attotime::zero;
m_cache_end_time = attotime::never;
m_cache_index = 0;
m_cache_entry = cells == 1 ? buf[0] : floppy_image::MG_N;
m_cache_entry = (cells == 1) ? buf[0] : floppy_image::MG_N;
cache_weakness_setup();
return;
}

attotime base;
uint32_t position = find_position(base, when);

auto it = std::upper_bound(
buf.begin(), buf.end(), position,
[](uint32_t a, uint32_t b) {
return a < (b & floppy_image::TIME_MASK);
}
);

int index = int(it - buf.begin()) - 1;
auto const it = std::upper_bound(
buf.begin(), buf.end(), position,
[] (uint32_t a, uint32_t b) { return a < (b & floppy_image::TIME_MASK); });

if(index == -1) {
int index;
if(buf.begin() == it) {
base -= m_rev_time;
index = buf.size() - 1;
} else {
index = int(it - buf.begin()) - 1;
}

for(;;) {
cache_fill_index(buf, index, base);
if(m_cache_end_time > when) {
cache_weakness_setup();
return;
break;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/release/src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
***************************************************************************/

#define BARE_BUILD_VERSION "0.267.0"
#define BARE_BUILD_VERSION "0.268.0"

extern const char bare_build_version[];
extern const char build_version[];
Expand Down
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ endif

ifeq (posix,$(SHELLTYPE))
$(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS)
@echo '#define BARE_BUILD_VERSION "0.267.x"' > $@
@echo '#define BARE_BUILD_VERSION "0.268.0"' > $@
@echo '#define BARE_VCS_REVISION "$(NEW_GIT_VERSION)"' >> $@
@echo 'extern const char bare_build_version[];' >> $@
@echo 'extern const char bare_vcs_revision[];' >> $@
Expand All @@ -1588,7 +1588,7 @@ $(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS)
@echo 'const char build_version[] = BARE_BUILD_VERSION " (" BARE_VCS_REVISION ")";' >> $@
else
$(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS)
@echo #define BARE_BUILD_VERSION "0.267.x" > $@
@echo #define BARE_BUILD_VERSION "0.268.0" > $@
@echo #define BARE_VCS_REVISION "$(NEW_GIT_VERSION)" >> $@
@echo extern const char bare_build_version[]; >> $@
@echo extern const char bare_vcs_revision[]; >> $@
Expand Down
2 changes: 1 addition & 1 deletion src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
***************************************************************************/

#define BARE_BUILD_VERSION "0.267.x"
#define BARE_BUILD_VERSION "0.268.0"

extern const char bare_build_version[];
extern const char build_version[];
Expand Down

0 comments on commit 4a7ebff

Please sign in to comment.