summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/romload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/romload.c')
-rw-r--r--src/emu/romload.c45
1 files changed, 22 insertions, 23 deletions
diff --git a/src/emu/romload.c b/src/emu/romload.c
index e685e7eb222..4502db1a64a 100644
--- a/src/emu/romload.c
+++ b/src/emu/romload.c
@@ -26,7 +26,7 @@
CONSTANTS
***************************************************************************/
-#define TEMPBUFFER_MAX_SIZE (1024 * 1024 * 1024)
+#define TEMPBUFFER_MAX_SIZE (1024 * 1024 * 1024)
@@ -41,7 +41,7 @@ class open_chd
public:
open_chd(const char *region)
: m_next(NULL),
- m_region(region) { }
+ m_region(region) { }
open_chd *next() const { return m_next; }
const char *region() const { return m_region; }
@@ -50,10 +50,10 @@ public:
chd_file &diff_chd() { return m_diffchd; }
private:
- open_chd * m_next; /* pointer to next in the list */
- astring m_region; /* disk region we came from */
- chd_file m_origchd; /* handle to the original CHD */
- chd_file m_diffchd; /* handle to the diff CHD */
+ open_chd * m_next; /* pointer to next in the list */
+ astring m_region; /* disk region we came from */
+ chd_file m_origchd; /* handle to the original CHD */
+ chd_file m_diffchd; /* handle to the diff CHD */
};
@@ -61,24 +61,24 @@ struct romload_private
{
running_machine &machine() const { assert(m_machine != NULL); return *m_machine; }
- running_machine *m_machine; /* machine object where needed */
+ running_machine *m_machine; /* machine object where needed */
- int warnings; /* warning count during processing */
- int knownbad; /* BAD_DUMP/NO_DUMP count during processing */
- int errors; /* error count during processing */
+ int warnings; /* warning count during processing */
+ int knownbad; /* BAD_DUMP/NO_DUMP count during processing */
+ int errors; /* error count during processing */
- int romsloaded; /* current ROMs loaded count */
- int romstotal; /* total number of ROMs to read */
- UINT32 romsloadedsize; /* total size of ROMs loaded so far */
- UINT32 romstotalsize; /* total size of ROMs to read */
+ int romsloaded; /* current ROMs loaded count */
+ int romstotal; /* total number of ROMs to read */
+ UINT32 romsloadedsize; /* total size of ROMs loaded so far */
+ UINT32 romstotalsize; /* total size of ROMs to read */
- emu_file * file; /* current file */
- simple_list<open_chd> chd_list; /* disks */
+ emu_file * file; /* current file */
+ simple_list<open_chd> chd_list; /* disks */
- memory_region * region; /* info about current region */
+ memory_region * region; /* info about current region */
- astring errorstring; /* error string */
- astring softwarningstring; /* software warning string */
+ astring errorstring; /* error string */
+ astring softwarningstring; /* software warning string */
};
@@ -569,7 +569,7 @@ static int open_rom_file(romload_private *romdata, const char *regiontag, const
bool has_crc = hash_collection(ROM_GETHASHDATA(romp)).crc(crc);
/* attempt reading up the chain through the parents. It automatically also
- attempts any kind of load by checksum supported by the archives. */
+ attempts any kind of load by checksum supported by the archives. */
romdata->file = NULL;
for (int drv = driver_list::find(romdata->machine().system()); romdata->file == NULL && drv != -1; drv = driver_list::clone(drv)) {
if(tried_file_names.len() != 0)
@@ -957,7 +957,7 @@ static void process_rom_entries(romload_private *romdata, const char *regiontag,
}
else
{
- romp++; /* something else; skip */
+ romp++; /* something else; skip */
}
}
}
@@ -1050,7 +1050,7 @@ int open_disk_image(emu_options &options, const game_driver *gamedrv, const rom_
// only for CHD we also try to load from list/
if ((filerr != FILERR_NONE) && (tag1.cstr() != NULL))
{
- tag1.del(tag1.len() - 1, 1); // remove the PATH_SEPARATOR
+ tag1.del(tag1.len() - 1, 1); // remove the PATH_SEPARATOR
filerr = common_process_file(options, tag1.cstr(), ".chd", romp, image_file);
}
}
@@ -1544,4 +1544,3 @@ int rom_load_knownbad(running_machine &machine)
{
return machine.romload_data->knownbad;
}
-