Skip to content

Commit

Permalink
- Fix regression from e8911d3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed May 4, 2024
1 parent c354a99 commit dc3b947
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions cube/swiss/source/devices/deviceHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ typedef char* (* _fn_status)(file_handle*);
#define QUIRK_GCLOADER_WRITE_CONFLICT 0x4

// Device emulated features
#define EMU_READ 0x80000000
#define EMU_AUDIO_STREAMING 0x40000000
#define EMU_READ_SPEED 0x20000000
#define EMU_ETHERNET 0x10000000
#define EMU_MEMCARD 0x8000000
#define EMU_BUS_ARBITER 0x1
#define EMU_NONE 0x0
#define EMU_READ 0x1
#define EMU_READ_SPEED 0x2
#define EMU_AUDIO_STREAMING 0x4
#define EMU_MEMCARD 0x8
#define EMU_ETHERNET 0x10
#define EMU_BUS_ARBITER 0x20

// Device locations
#define LOC_UNK 0x0
Expand Down
2 changes: 1 addition & 1 deletion cube/swiss/source/gcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ int patch_gcm(ExecutableFile *filesToPatch, int numToPatch) {
devices[DEVICE_PATCHES] = devices[DEVICE_CUR];
u32 emulated = devices[DEVICE_CUR]->emulated();
devices[DEVICE_PATCHES] = devices[DEVICE_CONFIG];
if((emulated ^ devices[DEVICE_CUR]->emulated()) & ~EMU_BUS_ARBITER) {
if(emulated > devices[DEVICE_CUR]->emulated()) {
devices[DEVICE_PATCHES] = devices[DEVICE_CUR];
patchDeviceReady = true;
}
Expand Down

0 comments on commit dc3b947

Please sign in to comment.