ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/main_unix.cpp
(Generate patch)

Comparing SheepShaver/src/Unix/main_unix.cpp (file contents):
Revision 1.86 by asvitkine, 2009-08-18T18:26:10Z vs.
Revision 1.87 by asvitkine, 2009-08-26T00:11:56Z

# Line 926 | Line 926 | int main(int argc, char **argv)
926  
927          // Load Mac ROM
928          rom_path = PrefsFindString("rom");
929 <        rom_fd = open(rom_path ? rom_path : ROM_FILE_NAME, O_RDONLY);
929 >        rom_fd = open(rom_path && *rom_path ? rom_path : ROM_FILE_NAME, O_RDONLY);
930          if (rom_fd < 0) {
931 <                rom_fd = open(rom_path ? rom_path : ROM_FILE_NAME2, O_RDONLY);
931 >                rom_fd = open(ROM_FILE_NAME2, O_RDONLY);
932                  if (rom_fd < 0) {
933                          ErrorAlert(GetString(STR_NO_ROM_FILE_ERR));
934                          goto quit;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines