mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-04-02 10:42:14 -04:00
byuu says: This release features many substantial Game Boy emulation improvements (all courtesy of Jonas Quinn), a new audio DSP class, and BPS patching support. Changelog (since v081): - added new DSP audio engine; supports sample-averaging for the Game Boy's high frequency rate - GB: MMM01 images with boot loader at bottom of ROM can now be loaded - GB: EI is delayed one cycle; fixes Bubble Bobble [Jonas Quinn] - GB: fixed window -7 offset behavior; fixes Contra 3 first boss [Jonas Quinn] - GB: disable LCD interrupts when rendering is off; fixes Super Mario Land 2 [Jonas Quinn] - GB: fixed noise channel LFSR; fixes Zelda: LA lightning sound [Jonas Quinn] - GB: square channels use initial_length like the noise channel [Jonas Quinn] - UI: added BPS patching support; removed UPS patching support - UI: when loading BS-X/Sufami Turbo/Game Boy games; display game title instead of BIOS title - UI: modified timestamps on screenshots for Windows/NTFS (which disallows use of ':')
58 lines
1.7 KiB
C++
Executable file
58 lines
1.7 KiB
C++
Executable file
#include <nall/directory.hpp>
|
|
#include <nall/file.hpp>
|
|
#include <nall/ips.hpp>
|
|
#include <nall/ups.hpp>
|
|
#include <nall/vector.hpp>
|
|
#include <nall/zip.hpp>
|
|
#include <nall/bps/linear.hpp>
|
|
#include <phoenix/phoenix.hpp>
|
|
using namespace nall;
|
|
using namespace phoenix;
|
|
|
|
struct MainWindow : public Window {
|
|
Font font;
|
|
VerticalLayout layout;
|
|
HorizontalLayout navigationLayout;
|
|
Label navigationLabel;
|
|
LineEdit navigationPath;
|
|
Button navigationScan;
|
|
Button navigationBrowse;
|
|
ListView listView;
|
|
HorizontalLayout controlLayout;
|
|
Button controlSelectAll;
|
|
Button controlClearAll;
|
|
CheckBox controlDeleteFiles;
|
|
Widget spacer;
|
|
Button controlCorrect;
|
|
|
|
void create();
|
|
void onScan();
|
|
void onScanFolder(const string &path);
|
|
void analyzeFile(const string &filename);
|
|
|
|
bool isSnesCartImageName(const string &filename);
|
|
bool isSnesBsImageName(const string &filename);
|
|
bool isSnesStImageName(const string &filename);
|
|
bool isSnesImageName(const string &filename);
|
|
bool isGameBoyClassicImageName(const string &filename);
|
|
bool isGameBoyColorImageName(const string &filename);
|
|
bool isGameBoyImageName(const string &filename);
|
|
bool isImageName(const string &filename);
|
|
bool isGoodImageName(const string &filename);
|
|
bool isBadImageName(const string &filename);
|
|
string correctExtension(const string &filename);
|
|
|
|
struct File {
|
|
string name;
|
|
string problem;
|
|
};
|
|
linear_vector<File> fileList;
|
|
lstring errors;
|
|
|
|
void onCorrect();
|
|
void problemDecompressZip(File &file);
|
|
void problemCorrectExtension(File &file);
|
|
void problemCreatePatchFromUPS(File &file);
|
|
void problemCreatePatchFromIPS(File &file);
|
|
void problemRemoveCopierHeader(File &file);
|
|
};
|