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

Comparing SheepShaver/src/BeOS/main_beos.cpp (file contents):
Revision 1.21 by asvitkine, 2009-08-18T18:26:10Z vs.
Revision 1.22 by asvitkine, 2009-08-26T00:11:56Z

# Line 628 | Line 628 | void SheepShaver::load_rom(void)
628          const char *rom_path = PrefsFindString("rom");
629  
630          // Try to open ROM file
631 <        BFile file(rom_path ? rom_path : ROM_FILE_NAME, B_READ_ONLY);
631 >        BFile file(rom_path && *rom_path ? rom_path : ROM_FILE_NAME, B_READ_ONLY);
632          if (file.InitCheck() != B_NO_ERROR) {
633  
634                  // Failed, then ask memory_mess driver for ROM

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines