This commit is contained in:
twinaphex 2022-04-06 19:19:50 +02:00
parent 81844865be
commit 10c244e299
9 changed files with 4 additions and 24 deletions

View File

@ -1,6 +1,5 @@
#pragma once
#include "stdafx.h"
#include "../Utilities/FolderUtilities.h"
#include "Console.h"
#include "BaseControlDevice.h"
#include "IBattery.h"

View File

@ -1,7 +1,6 @@
#include "stdafx.h"
#include <random>
#include <assert.h>
#include "../Utilities/FolderUtilities.h"
#include "../Utilities/IpsPatcher.h"
#include "BaseMapper.h"
#include "Console.h"
@ -390,11 +389,6 @@ uint32_t BaseMapper::GetCHRPageCount()
return pageSize ? (_chrRomSize / pageSize) : 0;
}
string BaseMapper::GetBatteryFilename()
{
return FolderUtilities::CombinePath(FolderUtilities::GetSaveFolder(), FolderUtilities::GetFilename(_romInfo.RomName, false) + ".sav");
}
void BaseMapper::InitializeChrRam(int32_t chrRamSize)
{
uint32_t defaultRamSize = GetChrRamSize() ? GetChrRamSize() : 0x2000;
@ -498,8 +492,6 @@ void BaseMapper::Initialize(RomData &romData)
{
_romInfo = romData.Info;
_batteryFilename = GetBatteryFilename();
if(romData.SaveRamSize == -1 || ForceSaveRamSize()) {
_saveRamSize = GetSaveRamSize();
} else {

View File

@ -16,7 +16,6 @@ class BaseMapper : public IMemoryHandler, public Snapshotable, public IBattery
{
private:
MirroringType _mirroringType;
string _batteryFilename;
uint16_t InternalGetPrgPageSize();
uint16_t InternalGetSaveRamPageSize();

View File

@ -1,6 +1,5 @@
#include "stdafx.h"
#include "BaseVideoFilter.h"
#include "../Utilities/FolderUtilities.h"
#include "StandardController.h"
#include "ScaleFilter.h"
#include "RotateFilter.h"

View File

@ -1,6 +1,5 @@
#pragma once
#include "stdafx.h"
#include "../Utilities/FolderUtilities.h"
#include "Console.h"
#include "BaseControlDevice.h"
#include "IBattery.h"

View File

@ -3,7 +3,6 @@
#include <algorithm>
#include "../Utilities/FolderUtilities.h"
#include "../Utilities/CRC32.h"
#include "../Utilities/sha1.h"
#include "RomData.h"
#include "MapperFactory.h"
#include "GameDatabase.h"

View File

@ -1,13 +1,9 @@
#include "stdafx.h"
#include <algorithm>
#include <unordered_map>
#include "HdNesPack.h"
#include "Console.h"
#include "MessageManager.h"
#include "EmulationSettings.h"
#include "HdPackLoader.h"
#include "../Utilities/FolderUtilities.h"
#include "../Utilities/PNGHelper.h"
HdNesPack::HdNesPack(shared_ptr<HdPackData> hdData, EmulationSettings* settings)
{

View File

@ -5,7 +5,6 @@
#include "Console.h"
#include "CPU.h"
#include "../Utilities/WavReader.h"
#include "../Utilities/FolderUtilities.h"
#include "../Utilities/StringUtilities.h"
#include "../Utilities/HexUtilities.h"

View File

@ -8,8 +8,6 @@ AutoResetEvent::AutoResetEvent()
AutoResetEvent::~AutoResetEvent()
{
//Can't signal here, seems to cause process crashes when this occurs while the
//application is exiting.
}
void AutoResetEvent::Wait(int timeoutDelay)