Update to ananke v00r02 release.
byuu says:
This should be basically final now.
Works with all media types (nes, sfc, gb, gbc, gba, bs, st), strips
headers, can use internal or external firmware, imports saves on first
run.
Added a custom file dialog. It seems both GTK+ and Windows XP have
(un)intelligent file sorting, which puts eg "ActRaiser 2 (NA)" before
"ActRaiser (NA)". So, screw 'em.
2012-12-24 05:48:23 +00:00
|
|
|
void Ananke::copyGameBoySaves(const string &pathname) {
|
|
|
|
if(!file::exists({pathname, "save.ram"})) {
|
|
|
|
if(file::exists({information.path, nall::basename(information.name), ".sav"})) {
|
|
|
|
file::copy({information.path, nall::basename(information.name), ".sav"}, {pathname, "save.ram"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!file::exists({pathname, "rtc.ram"})) {
|
|
|
|
if(file::exists({information.path, nall::basename(information.name), ".rtc"})) {
|
|
|
|
file::copy({information.path, nall::basename(information.name), ".rtc"}, {pathname, "rtc.ram"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
string Ananke::createGameBoyHeuristic(vector<uint8_t> &buffer) {
|
|
|
|
GameBoyCartridge info(buffer.data(), buffer.size());
|
|
|
|
|
|
|
|
string pathname = {
|
2013-01-21 12:27:15 +00:00
|
|
|
libraryPath, "Game Boy", (info.info.cgb ? " Color" : ""), "/",
|
Update to ananke v00r02 release.
byuu says:
This should be basically final now.
Works with all media types (nes, sfc, gb, gbc, gba, bs, st), strips
headers, can use internal or external firmware, imports saves on first
run.
Added a custom file dialog. It seems both GTK+ and Windows XP have
(un)intelligent file sorting, which puts eg "ActRaiser 2 (NA)" before
"ActRaiser (NA)". So, screw 'em.
2012-12-24 05:48:23 +00:00
|
|
|
nall::basename(information.name),
|
2013-01-21 12:27:15 +00:00
|
|
|
".", (info.info.cgb ? "gbc" : "gb"), "/"
|
Update to ananke v00r02 release.
byuu says:
This should be basically final now.
Works with all media types (nes, sfc, gb, gbc, gba, bs, st), strips
headers, can use internal or external firmware, imports saves on first
run.
Added a custom file dialog. It seems both GTK+ and Windows XP have
(un)intelligent file sorting, which puts eg "ActRaiser 2 (NA)" before
"ActRaiser (NA)". So, screw 'em.
2012-12-24 05:48:23 +00:00
|
|
|
};
|
|
|
|
directory::create(pathname);
|
|
|
|
|
2013-08-18 03:21:14 +00:00
|
|
|
string markup = {"unverified\n\n", info.markup};
|
Update to higan v091r14 and ananke v00r03 releases.
byuu says:
higan changelog:
- generates title displayed in emulator window by asking the core
- core builds title solely from "information/title" ... if it's not
there, you don't get a title at all
- sub-system load menu is gone ... since there are multiple revisions of
the SGB, this never really worked well anyway
- to load an SGB, BS-X or ST cartridge, load the base cartridge first
- "File->Load Game" moved to "Load->Import Game" ... may cause a bit of
confusion to new users, but I don't like having a single-item menu,
we'll just have to explain it to new users
- browser window redone to look like ananke
- home button here goes to ~/Emulation rather than just ~ like ananke,
since this is the home of game folders
- game folder icon is now the executable icon for the Tango theme
(orange diamond), meant to represent a complete game rather than
a game file or archive
ananke changelog:
- outputs GBC games to "Game Boy Color/" instead of "Game Boy/"
- adds the file basename to "information/title"
Known issues:
- using ananke to load a GB game trips the Super Famicom SGB mode and
fails (need to make the full-path auto-detection ignore non-bootable
systems)
- need to dump and test some BS-X media before releasing
- ananke lacks BS-X Satellaview cartridge support
- v092 isn't going to let you retarget the ananke/higan game folder path
of ~/Emulation, you will have to wait for a future version if that
bothers you so greatly
[Later, after the v092 release, byuu posted this additional changelog:
- kill laevateinn
- add title()
- add bootable, remove load
- combine file, library
- combine [][][] paths
- fix SFC subtype handling XML->BML
- update file browser to use buttons
- update file browser keyboard handling
- update system XML->BML
- fix sufami turbo hashing
- remove Cartridge::manifest
]
2012-12-25 05:31:55 +00:00
|
|
|
markup.append("\ninformation\n title: ", nall::basename(information.name), "\n");
|
Update to ananke v00r02 release.
byuu says:
This should be basically final now.
Works with all media types (nes, sfc, gb, gbc, gba, bs, st), strips
headers, can use internal or external firmware, imports saves on first
run.
Added a custom file dialog. It seems both GTK+ and Windows XP have
(un)intelligent file sorting, which puts eg "ActRaiser 2 (NA)" before
"ActRaiser (NA)". So, screw 'em.
2012-12-24 05:48:23 +00:00
|
|
|
if(!information.manifest.empty()) markup = information.manifest; //override with embedded beat manifest, if one exists
|
|
|
|
|
Update to higan v091r14 and ananke v00r03 releases.
byuu says:
higan changelog:
- generates title displayed in emulator window by asking the core
- core builds title solely from "information/title" ... if it's not
there, you don't get a title at all
- sub-system load menu is gone ... since there are multiple revisions of
the SGB, this never really worked well anyway
- to load an SGB, BS-X or ST cartridge, load the base cartridge first
- "File->Load Game" moved to "Load->Import Game" ... may cause a bit of
confusion to new users, but I don't like having a single-item menu,
we'll just have to explain it to new users
- browser window redone to look like ananke
- home button here goes to ~/Emulation rather than just ~ like ananke,
since this is the home of game folders
- game folder icon is now the executable icon for the Tango theme
(orange diamond), meant to represent a complete game rather than
a game file or archive
ananke changelog:
- outputs GBC games to "Game Boy Color/" instead of "Game Boy/"
- adds the file basename to "information/title"
Known issues:
- using ananke to load a GB game trips the Super Famicom SGB mode and
fails (need to make the full-path auto-detection ignore non-bootable
systems)
- need to dump and test some BS-X media before releasing
- ananke lacks BS-X Satellaview cartridge support
- v092 isn't going to let you retarget the ananke/higan game folder path
of ~/Emulation, you will have to wait for a future version if that
bothers you so greatly
[Later, after the v092 release, byuu posted this additional changelog:
- kill laevateinn
- add title()
- add bootable, remove load
- combine file, library
- combine [][][] paths
- fix SFC subtype handling XML->BML
- update file browser to use buttons
- update file browser keyboard handling
- update system XML->BML
- fix sufami turbo hashing
- remove Cartridge::manifest
]
2012-12-25 05:31:55 +00:00
|
|
|
file::write({pathname, "manifest.bml"}, markup);
|
Update to ananke v00r02 release.
byuu says:
This should be basically final now.
Works with all media types (nes, sfc, gb, gbc, gba, bs, st), strips
headers, can use internal or external firmware, imports saves on first
run.
Added a custom file dialog. It seems both GTK+ and Windows XP have
(un)intelligent file sorting, which puts eg "ActRaiser 2 (NA)" before
"ActRaiser (NA)". So, screw 'em.
2012-12-24 05:48:23 +00:00
|
|
|
file::write({pathname, "program.rom"}, buffer);
|
|
|
|
|
|
|
|
copyGameBoySaves(pathname);
|
|
|
|
return pathname;
|
|
|
|
}
|
|
|
|
|
|
|
|
string Ananke::openGameBoy(vector<uint8_t> &buffer) {
|
|
|
|
return createGameBoyHeuristic(buffer);
|
|
|
|
}
|
2013-01-17 11:14:58 +00:00
|
|
|
|
|
|
|
string Ananke::syncGameBoy(const string &pathname) {
|
|
|
|
auto buffer = file::read({pathname, "program.rom"});
|
|
|
|
if(buffer.size() == 0) return "";
|
|
|
|
|
|
|
|
auto save = file::read({pathname, "save.ram"});
|
|
|
|
if(save.size() == 0) save = file::read({pathname, "save.rwm"});
|
|
|
|
|
|
|
|
auto rtc = file::read({pathname, "rtc.ram"});
|
|
|
|
if(rtc.size() == 0) rtc = file::read({pathname, "rtc.rwm"});
|
|
|
|
|
|
|
|
directory::remove(pathname);
|
2013-01-19 11:23:42 +00:00
|
|
|
information.path = pathname;
|
|
|
|
information.name = notdir(string{pathname}.rtrim<1>("/"));
|
2013-01-17 11:14:58 +00:00
|
|
|
string outputPath = openGameBoy(buffer);
|
|
|
|
|
|
|
|
if(save.size()) file::write({outputPath, "save.ram"}, save);
|
|
|
|
if(rtc.size()) file::write({outputPath, "rtc.ram"}, rtc);
|
|
|
|
|
|
|
|
return outputPath;
|
|
|
|
}
|