Skip to content

Commit

Permalink
- Fix setup on FlippyDrive.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Jan 15, 2025
1 parent d5e3ddd commit 322f290
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cube/swiss/source/devices/dvd/deviceHandler-DVD.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ s32 deviceHandler_DVD_setupFile(file_handle* file, file_handle* file2, Executabl
file->status = STATUS_MAPPED;
print_gecko("Streaming %s %08X\r\n",swissSettings.audioStreaming?"Enabled":"Disabled",dvd_get_error());
}
if(numToPatch < 0) {
if(numToPatch < 0 || !devices[DEVICE_CUR]->emulated()) {
return 1;
}
// Check if there are any fragments in our patch location for this game
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ s32 deviceHandler_Flippy_setupFile(file_handle* file, file_handle* file2, Execut
file_frag *fragList = NULL;
u32 numFrags = 0;

if(numToPatch < 0) {
if(numToPatch < 0 || !devices[DEVICE_CUR]->emulated()) {
if(!getFragments(DEVICE_CUR, file, &fragList, &numFrags, 0, 0, 0) || numFrags != 1 ||
flippy_mount(file->fp) != FLIPPY_RESULT_OK) {
free(fragList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ s32 deviceHandler_GCLoader_setupFile(file_handle* file, file_handle* file2, Exec
if(!setupFile(file, file2, filesToPatch, numToPatch)) {
return 0;
}
if(numToPatch < 0) {
if(numToPatch < 0 || !devices[DEVICE_CUR]->emulated()) {
return 1;
}
// Check if there are any fragments in our patch location for this game
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ s32 deviceHandler_WKF_setupFile(file_handle* file, file_handle* file2, Executabl
file_frag *fragList = NULL;
u32 numFrags = 0;

if(numToPatch < 0) {
if(numToPatch < 0 || !devices[DEVICE_CUR]->emulated()) {
if(!getFragments(DEVICE_CUR, file, &fragList, &numFrags, 0, 0, 0) || numFrags != 1) {
free(fragList);
return 0;
Expand Down
2 changes: 1 addition & 1 deletion cube/swiss/source/devices/wode/deviceHandler-WODE.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ s32 deviceHandler_WODE_readFile(file_handle* file, void* buffer, u32 length) {
}

s32 deviceHandler_WODE_setupFile(file_handle* file, file_handle* file2, ExecutableFile* filesToPatch, int numToPatch) {
if(numToPatch < 0) {
if(numToPatch < 0 || !devices[DEVICE_CUR]->emulated()) {
if(file->status == STATUS_NOT_MAPPED) {
ISOInfo_t* isoInfo = (ISOInfo_t*)&file->other;
SetISO(isoInfo->iso_partition,isoInfo->iso_number);
Expand Down

0 comments on commit 322f290

Please sign in to comment.