2016-02-25 10:38:03 +00:00
|
|
|
#include <nall/windows/guard.hpp>
|
2013-03-15 13:11:33 +00:00
|
|
|
#include <winsock2.h>
|
|
|
|
#include <windows.h>
|
|
|
|
#include <windowsx.h>
|
|
|
|
#include <commctrl.h>
|
2018-08-21 03:17:12 +00:00
|
|
|
#include <commdlg.h>
|
2013-11-28 10:29:01 +00:00
|
|
|
#include <uxtheme.h>
|
2013-03-15 13:11:33 +00:00
|
|
|
#include <io.h>
|
|
|
|
#include <shlobj.h>
|
2016-02-28 11:42:52 +00:00
|
|
|
#include <nall/windows/guard.hpp>
|
2013-03-15 13:11:33 +00:00
|
|
|
#include <nall/windows/registry.hpp>
|
|
|
|
#include <nall/windows/utf8.hpp>
|
2013-11-28 10:32:53 +00:00
|
|
|
|
2015-06-12 13:14:38 +00:00
|
|
|
//MinGW/32-bit has painfully outdated platform headers ...
|
|
|
|
|
|
|
|
#if !defined(Button_SetImageList)
|
|
|
|
typedef struct {
|
|
|
|
HIMAGELIST himl;
|
|
|
|
RECT margin;
|
|
|
|
UINT uAlign;
|
|
|
|
} BUTTON_IMAGELIST, *PBUTTON_IMAGELIST;
|
|
|
|
|
|
|
|
#define BUTTON_IMAGELIST_ALIGN_LEFT 0
|
|
|
|
#define BUTTON_IMAGELIST_ALIGN_RIGHT 1
|
|
|
|
#define BUTTON_IMAGELIST_ALIGN_TOP 2
|
|
|
|
#define BUTTON_IMAGELIST_ALIGN_BOTTOM 3
|
|
|
|
#define BUTTON_IMAGELIST_ALIGN_CENTER 4
|
|
|
|
|
|
|
|
#define BCM_FIRST 0x1600
|
|
|
|
#define BCM_SETIMAGELIST (BCM_FIRST+2)
|
|
|
|
#define Button_SetImageList(hwnd, pbuttonImagelist) (WINBOOL)SNDMSG((hwnd),BCM_SETIMAGELIST,0,(LPARAM)(pbuttonImagelist))
|
|
|
|
#endif
|
|
|
|
|
Update to v094r43 release.
byuu says:
Updated to compile with all of the new hiro changes. My next step is to
write up hiro API documentation, and move the API from alpha (constantly
changing) to beta (rarely changing), in preparation for the first stable
release (backward-compatible changes only.)
Added "--fullscreen" command-line option. I like this over
a configuration file option. Lets you use the emulator in both modes
without having to modify the config file each time.
Also enhanced the command-line game loading. You can now use any of
these methods:
higan /path/to/game-folder.sfc
higan /path/to/game-folder.sfc/
higan /path/to/game-folder.sfc/program.rom
The idea is to support launchers that insist on loading files only.
Technically, the file can be any name (manifest.bml also works); the
only criteria is that the file actually exists and is a file, and not
a directory. This is a requirement to support the first version (a
directory lacking the trailing / identifier), because I don't want my
nall::string class to query the file system to determine if the string
is an actual existing file or directory for its pathname() / dirname()
functions.
Anyway, every game folder I've made so far has program.rom, and that's
very unlikely to change, so this should be fine.
Now, of course, if you drop a regular "game.sfc" file on the emulator,
it won't even try to load it, unless it's in a folder that ends in .fc,
.sfc, etc. In which case, it'll bail out immediately by being unable to
produce a manifest for what is obviously not really a game folder.
2015-08-30 02:08:26 +00:00
|
|
|
#if !defined(BP_PUSHBUTTON)
|
|
|
|
#define BP_PUSHBUTTON 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(PBS_NORMAL)
|
|
|
|
#define PBS_NORMAL 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(PBS_HOT)
|
|
|
|
#define PBS_HOT 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(PBS_PRESSED)
|
|
|
|
#define PBS_PRESSED 3
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(PBS_DISABLED)
|
|
|
|
#define PBS_DISABLED 4
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(PBS_DEFAULTED)
|
|
|
|
#define PBS_DEFAULTED 5
|
|
|
|
#endif
|
|
|
|
|
2015-06-12 13:14:38 +00:00
|
|
|
#if !defined(BP_CHECKBOX)
|
|
|
|
#define BP_CHECKBOX 3
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(CBS_UNCHECKEDNORMAL)
|
|
|
|
#define CBS_UNCHECKEDNORMAL 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(CBS_CHECKEDNORMAL)
|
|
|
|
#define CBS_CHECKEDNORMAL 5
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(LVCFMT_FIXED_WIDTH)
|
|
|
|
#define LVCFMT_FIXED_WIDTH 0x0100
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(TBS_TRANSPARENTBKGND)
|
|
|
|
#define TBS_TRANSPARENTBKGND 0x1000
|
|
|
|
#endif
|
Update to v106r57 release.
byuu says:
I've added tool tips to hiro for Windows, GTK, and Qt. I'm unsure how to
add them for Cocoa. I wasted am embarrassing ~14 hours implementing tool
tips from scratch on Windows, because the `TOOLTIPS_CLASS` widget just
absolutely refused to show up, no matter what I tried. As such, they're
not quite 100% native, but I would really appreciate any patch
submissions to help improve my implementation.
I added tool tips to all of the confusing settings in bsnes. And of
course, for those of you who don't like them, there's a configuration
file setting to turn them off globally.
I also improved Mega Drive handling of the Game Genie a bit, and
restructured the way the Settings class works in bsnes.
Starting now, I'm feature-freezing bsnes and higan. From this point
forward:
- polishing up and fixing bugs caused by the ruby/hiro changes
- adding DRC to XAudio2, and maybe exclusive mode to WGL
- correcting FEoEZ (English) to load and work again out of the box
Once that's done, a final beta of bsnes will go out, I'll fix any
reported bugs that I'm able to, and then v107 should be ready. This time
with higan being functional, but marked as v107 beta. v108 will restore
higan to production status again, alongside bsnes.
2018-08-08 08:46:58 +00:00
|
|
|
|
|
|
|
#if !defined(TTP_STANDARD)
|
|
|
|
#define TTP_STANDARD 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(TTSS_NORMAL)
|
|
|
|
#define TTSS_NORMAL 1
|
|
|
|
#endif
|