2018-01-01 21:04:13 +00:00
|
|
|
//
|
|
|
|
// ROMFetcher.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 01/01/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-01-01 21:04:13 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "ROMMachine.hpp"
|
|
|
|
|
2021-07-31 01:34:22 +00:00
|
|
|
/// @returns a ROM fetcher that will check: (i) this application's support directory; and
|
|
|
|
/// (ii) this application's bundle for any requested ROMs, in that order.
|
|
|
|
///
|
|
|
|
/// All ROMs are found to be missing when the ROM fetcher is used will be added
|
|
|
|
/// to @c missing.
|
2021-06-05 02:24:31 +00:00
|
|
|
ROMMachine::ROMFetcher CSROMFetcher(ROM::Request *missing = nullptr);
|
2021-07-31 01:20:45 +00:00
|
|
|
|
|
|
|
/// Loads the binary file located at @c url and then tests for whether it matches anything
|
|
|
|
/// known to the ROM catalogue. If so then a copy of the ROM will be retained where it
|
|
|
|
/// can later be found by the ROM fetcher returned by @c CSROMFetcher.
|
|
|
|
///
|
|
|
|
/// @returns @c true if the file was loaded successfully and matches something in
|
|
|
|
/// the library; @c false otherwise.
|
|
|
|
BOOL CSInstallROM(NSURL *url);
|