mirror of https://github.com/mgba-emu/mgba.git
Fuzz: Put back cheats
This commit is contained in:
parent
103673423b
commit
44af469782
|
@ -3,6 +3,7 @@
|
|||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
#include "core/cheats.h"
|
||||
#include "core/config.h"
|
||||
#include "core/core.h"
|
||||
#include "core/serialize.h"
|
||||
|
@ -90,6 +91,16 @@ int main(int argc, char** argv) {
|
|||
#endif
|
||||
mCoreLoadFile(core, args.fname);
|
||||
|
||||
struct mCheatDevice* device;
|
||||
if (args.cheatsFile && (device = core->cheatDevice(core))) {
|
||||
struct VFile* vf = VFileOpen(args.cheatsFile, O_RDONLY);
|
||||
if (vf) {
|
||||
mCheatDeviceClear(device);
|
||||
mCheatParseFile(device, vf);
|
||||
vf->close(vf);
|
||||
}
|
||||
}
|
||||
|
||||
struct VFile* savestate = 0;
|
||||
struct VFile* savestateOverlay = 0;
|
||||
size_t overlayOffset;
|
||||
|
|
Loading…
Reference in New Issue