mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-23 06:29:38 +00:00
Removed janky functions
This still compiles in VS2019
This commit is contained in:
parent
4ccfb5d527
commit
9efea80e43
@ -6,42 +6,6 @@
|
||||
#include <fstream>
|
||||
#include <thirdparty/loguru/loguru.hpp>
|
||||
|
||||
void init_ppc_cpu_map() {
|
||||
|
||||
PPC_CPUs.emplace("PPC_MPC601", 0x00010001);
|
||||
PPC_CPUs.emplace("PPC_MPC603", 0x00030001);
|
||||
PPC_CPUs.emplace("PPC_MPC604", 0x00040001);
|
||||
PPC_CPUs.emplace("PPC_MPC603E", 0x00060101);
|
||||
PPC_CPUs.emplace("PPC_MPC750", 0x00080200);
|
||||
}
|
||||
|
||||
void init_gpu_map() {
|
||||
GFX_CARDs.emplace("ATI_Rage_Pro", 0x10024750);
|
||||
GFX_CARDs.emplace("ATI_Rage_128_Pro", 0x10025052);
|
||||
}
|
||||
|
||||
void init_machine_properties() {
|
||||
PowerMac6100_Properties.emplace("machineid", StringProperty("PowerMac6100"));
|
||||
PowerMac6100_Properties.emplace("cputype", StringProperty("PPC_MPC601"));
|
||||
PowerMac6100_Properties.emplace("motherboard", StringProperty("Nubus"));
|
||||
PowerMac6100_Properties.emplace("ioboard", StringProperty("Nubus_IO"));
|
||||
PowerMac6100_Properties.emplace("rambank1", StringProperty("8"));
|
||||
PowerMac6100_Properties.emplace("gfxcard", StringProperty("Nubus_Video"));
|
||||
PowerMac6100_Properties.emplace("gfxmem", StringProperty("1"));
|
||||
PowerMac6100_Properties.emplace("minram", StringProperty("8"));
|
||||
PowerMac6100_Properties.emplace("maxram", StringProperty("136"));
|
||||
|
||||
PowerMacG3_Properties.emplace("machineid", StringProperty("PowerMacG3"));
|
||||
PowerMacG3_Properties.emplace("cputype", StringProperty("PPC_MPC750"));
|
||||
PowerMacG3_Properties.emplace("motherboard", StringProperty("Grackle"));
|
||||
PowerMacG3_Properties.emplace("ioboard", StringProperty("Heathrow"));
|
||||
PowerMacG3_Properties.emplace("rambank1", StringProperty("64"));
|
||||
PowerMacG3_Properties.emplace("gfxcard", StringProperty("ATI_Rage_Pro"));
|
||||
PowerMacG3_Properties.emplace("gfxmem", StringProperty("2"));
|
||||
PowerMacG3_Properties.emplace("minram", StringProperty("32"));
|
||||
PowerMacG3_Properties.emplace("maxram", StringProperty("256"));
|
||||
}
|
||||
|
||||
uint32_t get_gfx_card(std::string gfx_str) {
|
||||
if (gfx_str.compare("Nubus_Video")) {
|
||||
return 0;
|
||||
@ -153,9 +117,6 @@ int establish_machine_presets(
|
||||
ifstream rom_file;
|
||||
uint32_t file_size;
|
||||
|
||||
init_ppc_cpu_map();
|
||||
init_gpu_map();
|
||||
init_machine_properties();
|
||||
//init_search_array();
|
||||
|
||||
//search_properties(machine_str);
|
||||
|
@ -1,11 +1,39 @@
|
||||
#include "machineproperties.h"
|
||||
#include <map>
|
||||
|
||||
std::map<std::string, StringProperty> PowerMac6100_Properties;
|
||||
static std::map<std::string, StringProperty> PowerMac6100_Properties = {
|
||||
{"machineid", StringProperty("PowerMacG3")},
|
||||
{"cputype", StringProperty("PPC_MPC750")},
|
||||
{"motherboard", StringProperty("Grackle")},
|
||||
{"ioboard", StringProperty("Heathrow")},
|
||||
{"rambank1", StringProperty("64")},
|
||||
{"minram", StringProperty("32")},
|
||||
{"maxram", StringProperty("256")},
|
||||
{"gfxcard", StringProperty("Nubus_Video")},
|
||||
{"gfxmem", StringProperty("2")}
|
||||
};
|
||||
|
||||
std::map<std::string, StringProperty> PowerMacG3_Properties;
|
||||
static std::map<std::string, StringProperty> PowerMacG3_Properties = {
|
||||
{"machineid", StringProperty("PowerMacG3")},
|
||||
{"cputype", StringProperty("PPC_MPC750")},
|
||||
{"motherboard", StringProperty("Grackle")},
|
||||
{"ioboard", StringProperty("Heathrow")},
|
||||
{"rambank1", StringProperty("64")},
|
||||
{"minram", StringProperty("32")},
|
||||
{"maxram", StringProperty("256")},
|
||||
{"gfxcard", StringProperty("ATI_Rage_Pro")},
|
||||
{"gfxmem", StringProperty("2")}
|
||||
};
|
||||
|
||||
map<string, uint32_t> PPC_CPUs;
|
||||
static std::map<std::string, uint32_t> PPC_CPUs = {
|
||||
{"PPC_MPC601", 0x00010001},
|
||||
{"PPC_MPC603", 0x00030001},
|
||||
{"PPC_MPC604", 0x00040001},
|
||||
{"PPC_MPC603E", 0x00060101},
|
||||
{"PPC_MPC750", 0x00080200}
|
||||
};
|
||||
|
||||
map<string, uint32_t> GFX_CARDs;
|
||||
|
||||
void init_machine_properties(); // JANKY FUNCTION TO FIX VS 2019 BUG!
|
||||
static std::map<std::string, uint32_t> GFX_CARDs = {
|
||||
{"ATI_Rage_Pro", 0x10024750},
|
||||
{"ATI_Rage_128_Pro", 0x10025052}
|
||||
};
|
@ -35,9 +35,6 @@ private:
|
||||
string StringInput = std::to_string(ILLEGAL_DEVICE_VALUE);
|
||||
};
|
||||
|
||||
void init_ppc_cpu_map(); //JANKY FUNCTION TO FIX VS 2019 BUG!
|
||||
void init_gpu_map(); //JANKY FUNCTION TO FIX VS 2019 BUG!
|
||||
|
||||
uint32_t get_gfx_card(std::string gfx_str);
|
||||
uint32_t get_cpu_type(std::string cpu_str);
|
||||
void search_properties(uint32_t chosen_gestalt);
|
||||
|
Loading…
Reference in New Issue
Block a user