mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-27 02:50:28 +00:00
Cleanups
This commit is contained in:
parent
81844865be
commit
10c244e299
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include "stdafx.h"
|
||||
#include "../Utilities/FolderUtilities.h"
|
||||
#include "Console.h"
|
||||
#include "BaseControlDevice.h"
|
||||
#include "IBattery.h"
|
||||
|
@ -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 {
|
||||
|
@ -16,7 +16,6 @@ class BaseMapper : public IMemoryHandler, public Snapshotable, public IBattery
|
||||
{
|
||||
private:
|
||||
MirroringType _mirroringType;
|
||||
string _batteryFilename;
|
||||
|
||||
uint16_t InternalGetPrgPageSize();
|
||||
uint16_t InternalGetSaveRamPageSize();
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include "stdafx.h"
|
||||
#include "BaseVideoFilter.h"
|
||||
#include "../Utilities/FolderUtilities.h"
|
||||
#include "StandardController.h"
|
||||
#include "ScaleFilter.h"
|
||||
#include "RotateFilter.h"
|
||||
|
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include "stdafx.h"
|
||||
#include "../Utilities/FolderUtilities.h"
|
||||
#include "Console.h"
|
||||
#include "BaseControlDevice.h"
|
||||
#include "IBattery.h"
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user