Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinghead committed Nov 7, 2023
2 parents b92277a + 1253e11 commit 9268773
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 20 deletions.
1 change: 1 addition & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
token: ${{ env.SENTRY_TOKEN }}
organization: flycast
project: minidump
version: 2.21.2
if: ${{ env.SENTRY_TOKEN != '' }}

- name: Upload symbols to Sentry
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ jobs:
token: ${{ env.SENTRY_TOKEN }}
organization: flycast
project: minidump
version: 2.21.2
if: ${{ env.SENTRY_TOKEN != '' }}

- name: Upload symbols to Sentry (Windows, macOS, Linux)
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,8 @@ cmrc_add_resources(flycast-resources
resources/flash/wldkicksj.nvmem.zip # free play
resources/flash/wldkicksu.nvmem.zip # free play
resources/flash/f355.nvmem.zip # printer on
resources/flash/f355twin.nvmem.zip
resources/flash/f355twn2.nvmem.zip
resources/flash/f355twin.nvmem.zip # printer on
resources/flash/f355twn2.nvmem.zip # printer on
resources/flash/dirtypig.nvmem.zip # 4 players
resources/flash/dirtypig.nvmem2.zip
resources/flash/vf4.nvmem.zip # card all day, stage select
Expand Down
5 changes: 4 additions & 1 deletion core/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ static void loadSpecialSettings()
}
if (prod_id == "T1102M" // Densha de Go! 2
|| prod_id == "T00000A" // The Ring of the Nibelungen (demo, hack)
|| prod_id == "T15124N 00") // Worms Pinball (prototype)
|| prod_id == "T15124N 00" // Worms Pinball (prototype)
|| prod_id == "T9503M" // Eisei Meijin III
|| prod_id == "T5202M" // Marionette Company
|| prod_id == "T5301M") // World Neverland Plus
{
NOTICE_LOG(BOOT, "Forcing Full Framebuffer Emulation");
config::EmulateFramebuffer.override(true);
Expand Down
6 changes: 2 additions & 4 deletions core/hw/aica/aica.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,16 @@ static bool UpdateSh4Ints()
if (p_ints)
{
if ((SB_ISTEXT & SH4_IRQ_BIT) == 0)
{
// if no interrupt is already pending then raise one
asic_RaiseInterrupt(holly_SPU_IRQ);
return true;
}
return true;
}
else
{
if ((SB_ISTEXT & SH4_IRQ_BIT) != 0)
asic_CancelInterrupt(holly_SPU_IRQ);
return false;
}
return false;
}

AicaTimer timers[3];
Expand Down
2 changes: 1 addition & 1 deletion core/hw/maple/maple_cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ static void createDreamcastDevices()
case MDT_MaracasController:
case MDT_FishingController:
case MDT_PopnMusicController:
case MDT_RacingController:
case MDT_DenshaDeGoController:
case MDT_Dreameye:
mcfg_Create(config::MapleMainDevices[bus], bus, 5);
Expand All @@ -332,6 +331,7 @@ static void createDreamcastDevices()
case MDT_LightGun:
case MDT_TwinStick:
case MDT_AsciiStick:
case MDT_RacingController:
mcfg_Create(config::MapleMainDevices[bus], bus, 5);
if (config::MapleExpansionDevices[bus][0] != MDT_None)
mcfg_Create(config::MapleExpansionDevices[bus][0], bus, 0);
Expand Down
3 changes: 1 addition & 2 deletions core/hw/naomi/naomi_cart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,7 @@ void naomi_cart_LoadRom(const std::string& path, const std::string& fileName, Lo
}
if (gameId == " TOUCH DE UNOH -------------"
|| gameId == " TOUCH DE UNOH 2 -----------"
// only for F355 Deluxe
|| (gameId == "F355 CHALLENGE JAPAN" && romName == "f355"))
|| (gameId == "F355 CHALLENGE JAPAN" && config::MultiboardSlaves == 2))
{
printer::init();
}
Expand Down
3 changes: 2 additions & 1 deletion core/hw/naomi/printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#include "types.h"
#include "stdclass.h"
#include "printer.h"
#include "serialize.h"
#include "rend/gui.h"
Expand Down Expand Up @@ -738,7 +739,7 @@ class ThermalPrinter
state = Default;
if (bitmapWriter && bitmapWriter->isDirty())
{
std::string s = settings.content.gameId + "-results.png";
std::string s = get_writable_data_path(settings.content.gameId + "-results.png");
bitmapWriter->save(s);
bitmapWriter.reset();
s = "Print out saved to " + s;
Expand Down
26 changes: 19 additions & 7 deletions core/windows/winmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,21 +976,33 @@ void os_DoEvents()

void os_RunInstance(int argc, const char *argv[])
{
char exePath[MAX_PATH];
GetModuleFileNameA(NULL, exePath, sizeof(exePath));
wchar_t exePath[MAX_PATH];
GetModuleFileNameW(NULL, exePath, std::size(exePath));

std::string cmdLine(exePath);
std::wstring cmdLine = L'"' + std::wstring(exePath) + L'"';
for (int i = 0; i < argc; i++)
{
cmdLine += ' ';
cmdLine += argv[i];
nowide::wstackstring wname;
if (!wname.convert(argv[i])) {
WARN_LOG(BOOT, "Invalid argument: %s", argv[i]);
continue;
}
cmdLine += L" \"";
for (wchar_t *p = wname.get(); *p != L'\0'; p++)
{
cmdLine += *p;
if (*p == L'"')
// escape double quote
cmdLine += L'"';
}
cmdLine += L'"';
}

STARTUPINFOA startupInfo{};
STARTUPINFOW startupInfo{};
startupInfo.cb = sizeof(startupInfo);

PROCESS_INFORMATION processInfo{};
BOOL rc = CreateProcessA(exePath, (char *)cmdLine.c_str(), nullptr, nullptr, true, 0, nullptr, nullptr, &startupInfo, &processInfo);
BOOL rc = CreateProcessW(exePath, (wchar_t *)cmdLine.c_str(), nullptr, nullptr, true, 0, nullptr, nullptr, &startupInfo, &processInfo);
if (rc)
{
CloseHandle(processInfo.hProcess);
Expand Down
Binary file modified resources/flash/f355twin.nvmem.zip
Binary file not shown.
Binary file modified resources/flash/f355twn2.nvmem.zip
Binary file not shown.
22 changes: 22 additions & 0 deletions shell/apple/emulator-osx/emulator-osx/osx-main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <mach/mach_port.h>

#include "types.h"
#include "cfg/option.h"
#include "log/LogManager.h"
#if defined(USE_SDL)
#include "sdl/sdl.h"
Expand Down Expand Up @@ -144,6 +145,27 @@ static void emu_flycast_term()
CFRelease(mainBundle);

emu_flycast_init();

int boardId = cfgLoadInt("naomi", "BoardId", 0);
if (boardId > 0)
{
NSString *label = @"S"; // Slave
if (config::MultiboardSlaves == 2) // 1 = Single, 2 = Deluxe
{
switch (boardId) {
case 1:
label = @"C"; // Center
break;
case 2:
label = @"L"; // Left
break;
case 3:
label = @"R"; // Right
}
}
[[NSApp dockTile] setBadgeLabel:label];
}

#ifdef USE_BREAKPAD
auto async = std::async(std::launch::async, uploadCrashes, "/tmp");
#endif
Expand Down
4 changes: 2 additions & 2 deletions shell/libretro/libretro_core_options_intl.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ extern "C" {
*/
/* RETRO_LANGUAGE_AR */

#define CATEGORY_SYSTEM_LABEL_AR NULL
#define CATEGORY_SYSTEM_LABEL_AR "نظام"
#define CATEGORY_SYSTEM_INFO_0_AR NULL
#define CATEGORY_VIDEO_LABEL_AR "فيديو"
#define CATEGORY_VIDEO_INFO_0_AR NULL
#define CATEGORY_PERFORMANCE_LABEL_AR NULL
#define CATEGORY_PERFORMANCE_LABEL_AR "الأداء"
#define CATEGORY_PERFORMANCE_INFO_0_AR NULL
#define CATEGORY_HACKS_LABEL_AR NULL
#define CATEGORY_HACKS_INFO_0_AR NULL
Expand Down

0 comments on commit 9268773

Please sign in to comment.