Compare commits

..
2681 Commits
Author SHA1 Message Date
Twinaphex b3d1845b18 (PS3/Wii) Name ELF file targets uniquely 2012-08-23 12:25:50 +02:00
Twinaphex 51cd67bc89 (RMenu) Don't show prev messages for filebrowser-based menus 2012-08-23 05:10:11 +02:00
Twinaphex aedfb68603 Fix in rarch_configure_libretro 2012-08-23 00:46:44 +02:00
Twinaphex 51d17c1040 (PS3) Bug fix - first load the config file, then write back config file
with new libretro path
2012-08-23 00:21:49 +02:00
Twinaphex 08790a02f9 (Libretro management) if core file has been upgraded/renamed,
forcefully write to config file before loading it
2012-08-23 00:17:05 +02:00
Twinaphex 90b481acbd (Salamander PS3) Create config file with libretro_path if it doesn't exist 2012-08-23 00:09:51 +02:00
Toad King 946d09251c (GX) have salamander set libretro_path 2012-08-22 18:20:33 -04:00
twinaphex aba0d0de79 (Salamander XDK) Salamander takes care of setting a
config file with a proper libretro_path
2012-08-23 00:15:58 +02:00
Toad King 42b6fdf97a (GX) fix CORE renaming 2012-08-22 17:39:55 -04:00
Twinaphex bbaf29c4e6 Clean up rarch_console_load_game_wrap 2012-08-22 23:05:18 +02:00
Toad King 90c10a79b0 (RARCH_CONSOLE) always set libretro path if not set 2012-08-22 17:11:18 -04:00
Twinaphex 66b8d08fa8 (Libretro mgmt) Make IS_SALAMANDER ifdef the default 2012-08-22 22:46:34 +02:00
Themaister 07560e25b4 Allow dir_list_new to compare against dotted exts as well. 2012-08-22 22:43:44 +02:00
Twinaphex 5a07d757e9 (Libretro management) some cleanups 2012-08-22 22:04:46 +02:00
Toad King 059cfd3c24 (GX) fix potential null-pointer exceptions 2012-08-22 16:05:03 -04:00
Toad King a88e9e024f (GX) fix USB support 2012-08-22 15:56:39 -04:00
Twinaphex c065f93e7c (RMenu) Add 'Quit RetroArch' setting option 2012-08-22 21:27:21 +02:00
Themaister fa5164fb8d Update some more files. 2012-08-22 20:01:19 +02:00
Themaister b5918fa02a Update to 0.9.7. 2012-08-22 19:57:07 +02:00
Twinaphex 207eea3954 (Salamander/RetroArch) Add default_paths.salamander_file 2012-08-22 19:30:20 +02:00
Toad King 54234060dc (GX) hack for libretro_path on first boot 2012-08-22 13:21:07 -04:00
twinaphex ef3a84d6e0 (XDK Salamander) Small variable cleanups 2012-08-22 18:52:21 +02:00
twinaphex 51864da249 (360) set_first_file fixed - Salamander is called default.xex now 2012-08-22 18:45:40 +02:00
Toad King aaf898fde8 (RGUI) fix rom loading message not appearing 2012-08-22 12:26:11 -04:00
Twinaphex c48b5a30da (GX) Always try to save config file at exit 2012-08-22 18:10:27 +02:00
Twinaphex 3669de1228 (Salamander PS3) Fix set_first_file 2012-08-22 18:08:14 +02:00
twinaphex 2abe11cb55 (Xbox 1 Salamander) Set first file fixed
(RARCH_CONSOLE) If a config file doesn't exist, it has to
be created before we attempt to save it or else we will run
into an unfortunate 'chicken egg problem' - confirmed problem
on Xbox 1
2012-08-22 17:39:44 +02:00
twinaphex eca2c09fdd (Xbox 1 RMenu) Add sound volume level setting 2012-08-22 16:59:12 +02:00
twinaphex f921744ab4 (Xbox 1) Free up 8MB of RAM - Street Fighter Alpha 3 and all
big CPS2 ROMS work now
2012-08-22 16:22:42 +02:00
Twinaphex 16ef6ea771 (RMenu) Shortened some text messages so that it fits on Xbox 1 2012-08-22 15:50:14 +02:00
twinaphex 2ab41bbbeb (RMenu Xbox 1) Build fix 2012-08-22 15:54:23 +02:00
Twinaphex ec4fc43f57 (RMenu) Some aesthetic changes 2012-08-22 15:39:39 +02:00
Twinaphex 32df722960 (RMenu) L and R buttons now toggle between drive mappings 2012-08-22 14:35:08 +02:00
Toad King fcbcf03f65 (RGUI) change screenshot directory 2012-08-22 08:16:49 -04:00
Twinaphex 8adfd6e948 (RMenu/PS3/Xbox 1) Add D-pad emulation setting 2012-08-22 14:04:33 +02:00
twinaphex 077c3a6469 (360) Small change to input D-pad emulation logic 2012-08-22 13:50:07 +02:00
twinaphex 3c10e191f9 Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-08-22 13:50:04 +02:00
twinaphex a6cd8bfe2c (360) Add D-pad emulation to controls 2012-08-22 13:44:02 +02:00
Toad King 68ff958252 (GX) generate memory map (for help with potential bug reports) 2012-08-22 06:43:02 -04:00
Toad King 2e1ad73a25 (GX) fix loading huge cores 2012-08-22 06:43:01 -04:00
twinaphex 203c3ed82e (360) Proper extension checking in 'Change libretro core' menu 2012-08-22 12:40:18 +02:00
twinaphex 26a459a234 (360) Improved usability plus improved font drawing speed 2012-08-22 03:57:28 +02:00
Toad King c88d5da147 (RGUI) strcasecmp needs strings.h, not just string.h 2012-08-21 21:31:01 -04:00
Toad King 613d330eb0 (RGUI) do a case-insensitive sort for filebrowser 2012-08-21 21:20:43 -04:00
Toad King a2dcebc33d (RGUI) add zip_extract_mode setting
add exit emulator option
trim long filenames
2012-08-21 21:16:01 -04:00
twinaphex ec22521636 (Xbox 1 RMenu) One-liner build fix 2012-08-22 02:02:13 +02:00
Twinaphex a7503eda92 (RMenu) Cleanups 2012-08-22 01:45:48 +02:00
Twinaphex 62aee43228 (RMenu) Refactored bloated menu stack code - should use less
memory now
2012-08-22 01:16:46 +02:00
Toad King 213823fd84 (RGUI) add dpad-emulation configuration 2012-08-21 18:42:09 -04:00
twinaphex 9c1725358b (Xbox 1/RMenu context) build fix 2012-08-22 00:37:42 +02:00
Twinaphex 66247dbb61 (Filebrowser) Get rid of bloated directory stack 2012-08-22 00:21:30 +02:00
Toad King faf0b6f676 (RARCH_CONSOLE) save input device selection
(GX) set dpad_emulation correctly for device on init
2012-08-21 18:14:34 -04:00
Twinaphex 9a0d6a0c33 (PS3) Bug fix - menu now starts up properly if 'Custom Scaling/Dual
Shaders' is set to 'OFF'
2012-08-22 00:01:59 +02:00
twinaphex bc30bca7d5 (XUI) Usability improvements 2012-08-21 21:31:15 +02:00
twinaphex 476f5a9fe3 (XDK) Abstracted screenshot code
(360) Fixed some XUI menu placements
2012-08-21 20:40:13 +02:00
Twinaphex 5b196e9b7d (GX) Combined savestate slot selection/savestate load/save options 2012-08-21 14:36:27 +02:00
Twinaphex 5ac07e4c3c (GX) Remove (now unnecessary) stub system files 2012-08-21 14:11:53 +02:00
Twinaphex 3b04e18739 (GX) Update Salamander so that it uses the new paths and loads
the config file from the right location
2012-08-21 14:10:10 +02:00
Toad King 0adeeaabf7 (RGUI) hold direction repeat 2012-08-21 01:14:46 -04:00
Toad King dc0b44d2f3 (GX) save input binds (per core) 2012-08-21 00:51:00 -04:00
Toad King 14af5ca589 (GX) more sane default keybinds for Wiimote 2012-08-21 00:50:33 -04:00
Toad King 1cb588f710 (GX) default paths changed to match de-facto wii homebrew layout 2012-08-21 00:28:38 -04:00
Toad King 7d4a320a17 (RGUI) add reset command to custom viewport setting
allow negative custom viewport offsets
2012-08-20 22:50:15 -04:00
Toad King fa643ee56d (RARCH_CONSOLE) do not set core aspect ratio until ROM is loaded 2012-08-20 22:28:12 -04:00
Toad King 3552f0ae16 (RGUI) custom viewport menu 2012-08-20 21:56:07 -04:00
Toad King 0c326bba2f (RARCH_CONSOLE) fix core-provided aspect ratio 2012-08-20 20:10:55 -04:00
Toad King dc76d834ae (GX) cleanup, silence warnings 2012-08-20 19:47:04 -04:00
Toad King 2087aa285e (GX) crash/compile fixes 2012-08-20 17:35:33 -04:00
Twinaphex 5a1f146dd6 (RMenu) Ingame menu selection now wraps-around 2012-08-20 21:45:34 +02:00
Twinaphex 196242aab1 (RMenu) Cleanups 2012-08-20 20:48:21 +02:00
twinaphex 3eceb86ffa (Xbox 1/RMenu) VLAs don't work here 2012-08-20 19:04:22 +02:00
Twinaphex aae20990b6 (RMenu) Add (missing) rmenu stack header file 2012-08-20 18:45:48 +02:00
Twinaphex 1822c677f8 (RMenu) Remove rmenu_entries.h 2012-08-20 18:44:24 +02:00
Twinaphex c3c72549dc (RMenu) Split up RMenu stack code into separate file 2012-08-20 18:17:08 +02:00
Twinaphex 1896ee2605 (PS3) Small Makefile fixes 2012-08-20 17:16:40 +02:00
twinaphex 19875aa709 (XDK) Added logs to xbox_io_mount 2012-08-20 16:14:13 +02:00
Twinaphex 160b96a7c3 (PS3) Some improvements to Makefiles 2012-08-20 15:55:13 +02:00
Twinaphex e2c3988103 (PS3 Salamander) Should compile on Win32 now 2012-08-20 15:07:50 +02:00
twinaphex fb3508564c (Xbox 1/360) Build fix 2012-08-20 15:07:06 +02:00
Twinaphex 969a92ac17 (RARCH_CONSOLE) Add apply_state_changes to video driver 2012-08-20 12:41:10 +02:00
Twinaphex ad576f18f5 Small cleanups 2012-08-20 12:04:32 +02:00
Toad King 6c500b45d5 (GX) add overscan code
change rotation code to not depend on vertex trickery
2012-08-19 23:20:41 -04:00
twinaphex 526558dcb3 (Xbox 1) screenshot path deployed with other targets too 2012-08-20 03:32:37 +02:00
twinaphex 6d5ed820e0 (Xbox 1/XDK) Screenshot code implemented 2012-08-20 03:30:36 +02:00
Toad King fda2dff40c (RARCH_CONSOLE) add core resolution (use aspect ratio provided by the emulation core) 2012-08-19 21:08:50 -04:00
Twinaphex 640d63d67c (RMenu) Add screenshot context functions - move more system-specific
code out of RMenu
2012-08-20 02:45:31 +02:00
Twinaphex 72d58954c3 (RMenu) Configured keybinds will no longer affect RMenu
controls
2012-08-20 02:31:18 +02:00
Toad King d478e8b0cd (RGUI) Add restart game item
fix messages only staying up for half as long as they should
general cleanup
(GX) force vsync for menu rendering
general cleanup
2012-08-19 17:22:49 -04:00
twinaphex 8ce7514871 (360) Add ZIP extract option 2012-08-19 22:53:01 +02:00
twinaphex 9cdb6991ea (360) Display tweaks 2012-08-19 22:03:24 +02:00
Themaister 982e8f7008 Make screenshot_generate_filename public. 2012-08-19 21:36:22 +02:00
Toad King 83c51f136a (RGUI) add screenshot command
(GX) general cleanups, change joystick threshold
2012-08-19 15:28:19 -04:00
Twinaphex 35c223fb12 (RMenu) rmenu_items now a local variable in select_settings 2012-08-19 18:03:50 +02:00
Twinaphex 0f25a708fc (RMenu) Don't needlessly call menu_stack_refresh 2012-08-19 16:16:47 +02:00
Twinaphex 985f25a8e4 (RMenu) Remove x_pos/y_pos 2012-08-19 16:05:00 +02:00
Twinaphex 0f4b2082c9 (RMenu) Settings items x/y are now autogenerated 2012-08-19 15:57:01 +02:00
Twinaphex 9f54285561 (RMenu) label text is now set in set_settings_label 2012-08-19 15:26:35 +02:00
Twinaphex ab91deea92 (RMenu) Fix some comments 2012-08-19 15:00:22 +02:00
Twinaphex 8c3b230e3b (RMenu) Cut down on excessive rmenu_items 2012-08-19 14:49:03 +02:00
Themaister d1029c3c92 Do not compare equal to empty string for cheats. 2012-08-19 14:05:28 +02:00
twinaphex fb06b3fc56 (RMenu Xbox 1) Get rid of unsigned mismatch warning 2012-08-19 12:14:12 +02:00
Twinaphex a94410a068 (RMenu) Refactor system-specific bits 2012-08-19 11:57:58 +02:00
Twinaphex e71851940f (RMenu) Minor cleanups 2012-08-19 02:18:01 +02:00
Twinaphex dbf8a62bd4 (RMenu PS3) Build fix + cleanups 2012-08-19 02:11:38 +02:00
twinaphex 519023542a (RMenu) More callbacks for platform-specific code 2012-08-19 02:00:40 +02:00
twinaphex 5fdb1577d8 (RMenu) Callback function for rendering font messages 2012-08-19 01:40:30 +02:00
Twinaphex 481b09a14a (RMenu PS3) Fixes ingame menu display 2012-08-19 01:19:48 +02:00
Twinaphex 0dcc3b96e9 (RMenu PS3) Build fix 2012-08-19 01:14:04 +02:00
twinaphex d8acc7e52b (RMenu) Abstract away all font positioning code 2012-08-19 01:21:31 +02:00
twinaphex f4485c29a6 (RMenu) split up font positioning code to context file 2012-08-19 00:29:38 +02:00
Twinaphex 2ebba4a347 (RMenu) Move more code to context file 2012-08-18 23:50:21 +02:00
twinaphex 0be71f9d08 (RMenu) Split up more system-specific code to the context file 2012-08-18 23:47:33 +02:00
twinaphex 8ba2faaeb6 (Xbox 1/RMenu) Context file build fix 2012-08-18 23:01:03 +02:00
Twinaphex 7c4189cdd5 (RMenu) Split up platform-specific code into Rmenu context files 2012-08-18 22:45:46 +02:00
Twinaphex c14b560255 (RARCH_CONSOLE) Refactor some console-specific things 2012-08-18 21:50:44 +02:00
twinaphex 9f75454391 (Rzlib) Add WIN32 include 2012-08-18 20:08:59 +02:00
Twinaphex 0ff9aa7b3c (RZlib) Now extracts directories in ZIP file too 2012-08-18 19:52:35 +02:00
Twinaphex 0e86504097 (PS3) 'Return to Multiman' option fixed 2012-08-18 18:25:38 +02:00
Twinaphex c8b3046c6e (Wii) Makefile update - should compile on both Win32 and Linux now 2012-08-18 16:54:57 +02:00
Twinaphex 7294049953 (RMenu) Try to cut down on size 2012-08-18 16:28:52 +02:00
twinaphex a7e28e4e67 (Xbox 1) Bump up stack size to 256K (Gambatte needs at least 256K
stack)
2012-08-18 15:38:40 +02:00
twinaphex f75f96269c (Filebrowser) change to PATH_MAX 2012-08-18 13:38:17 +02:00
twinaphex 8e559ee849 (Filebrowser) Use MAX_PATH 2012-08-18 13:17:55 +02:00
twinaphex b839910551 (Xbox 1) Set MAX_PATH to theoretical max - 260 - frees up around
20Kb
2012-08-18 12:25:37 +02:00
Twinaphex fdbea950f1 (Filebrowser) Do dir_list_free in parse_directory 2012-08-18 01:13:25 +02:00
Themaister 2234073c2f Readding static to globals in dsound. 2012-08-17 23:20:08 +02:00
Twinaphex 2790555f1c (PS3/Rmenu) Build fix 2012-08-17 21:43:12 +02:00
twinaphex a7fe9aa50a (Xbox 1) Make some variables non-static 2012-08-17 19:11:43 +02:00
twinaphex 07c6ff5666 (RMenu) filebrowser_free called at end of menu_loop - filebrowser_init
called at start of menu_loop
2012-08-17 18:22:28 +02:00
twinaphex d709cb04b4 (Xbox 1) Free up ROM select panel too - shaves off 0.34MB memory
usage
2012-08-17 18:08:15 +02:00
twinaphex 71c8dfb891 (Xbox 1) Free texture BG before going into game and reload texture
when going back to menu - frees up 3MB RAM
2012-08-17 18:02:09 +02:00
twinaphex 6a08c92ada (Xbox 1) Cut down on some static variables 2012-08-17 17:45:14 +02:00
Themaister f0d9cc09c9 Add --dualanalog/-A flag. 2012-08-16 21:21:19 +02:00
Toad King 8f3305a316 (GX) add custom linker script for increased stack size 2012-08-16 14:59:12 -04:00
twinaphex 1854388a56 (Xbox 1) Reapply stack size changes 2012-08-16 19:14:27 +02:00
twinaphex 878a141b4a (Xbox 1) Increase stack size to 131072 - Genesis Plus GX needs it 2012-08-16 19:12:34 +02:00
Toad King 9890a0ba9a (GX) aspect ratio selection
TODO: custom viewport code
2012-08-16 12:41:07 -04:00
Themaister db0501fa50 Do not log unless g_extern.verbose is set. 2012-08-16 10:52:28 +02:00
twinaphex b3d4044e09 (Xbox 1) Fix Salamander 2012-08-16 10:26:09 +02:00
Themaister 8198927260 Fixup build on Win32. 2012-08-16 10:09:44 +02:00
Themaister 38a3c72a21 Update to 0.9.7-rc2. 2012-08-16 09:31:05 +02:00
Themaister 70fd5350dc Always build in h264 support. 2012-08-16 09:25:13 +02:00
Twinaphex 979e45ea66 Remove redundant log 2012-08-15 21:02:06 +02:00
Twinaphex bbe0f00059 (GX) Should save soft_display_filter to config file now
(CONSOLE) throttle mode will not be enabled if force_nonblock
is set to true
2012-08-15 21:00:23 +02:00
Themaister 405a901d18 Be more careful about overwriting global settings in driver init. 2012-08-15 20:43:26 +02:00
Themaister 3ac159845d Set refresh_rate in console. 2012-08-15 19:59:22 +02:00
Themaister 7372509bef Revert "(Libretro) Add nonblock_state"
This reverts commit 211381bb89.
2012-08-15 19:52:48 +02:00
Twinaphex 0890fced4b (RGL) Add back cellGcmSetAlphaFunc 2012-08-15 13:54:17 +02:00
Twinaphex 8c7e235e32 (PSL1GHT/Rgl) Compatibility changes 2012-08-15 13:15:12 +02:00
Twinaphex a48376efd9 (PSL1GHT) Move GCM macro method defines to sdk_defines.h 2012-08-15 12:30:08 +02:00
Twinaphex 82fed93971 (PSL1GHT RGL) Add some GCM macro definitions for PSL1GHT 2012-08-15 12:06:04 +02:00
Twinaphex 408a0c34bc (RGL) Remove rglFifoGlVertexAttribPointer 2012-08-15 11:41:04 +02:00
Twinaphex 83a361cd82 (RGL) Replace messy initializers 2012-08-15 11:01:09 +02:00
Twinaphex 44ff5ec1c3 (RGL) Clean up RGLTransferDataVidToVid 2012-08-15 10:49:39 +02:00
Twinaphex 84de4f23e6 (Libretro) Correction to RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL
description - level 0 and 1 were described incorrectly
2012-08-15 10:03:00 +02:00
Twinaphex 211381bb89 (Libretro) Add nonblock_state 2012-08-15 09:44:17 +02:00
Themaister 447412c6df Abstract all use of *Pointer() functions to one point. 2012-08-14 23:32:55 +02:00
Themaister d0c4fdbc23 Only build in libpng if it's 1.5+.
libpng fails to build on 1.2 apparently.
It might build on 1.3 or 1.4, but 1.5+ is known to work.
2012-08-12 20:26:45 +02:00
Twinaphex 0e5528796d Set nonblock_state_func argument for >60Hz emu ports/games to true 2012-08-12 11:55:52 +02:00
Themaister 45579376f0 Add exception for RETRO_DEVICE_KEYBOARD in input_state callback. 2012-08-12 10:01:35 +02:00
Toad King 1b6b313787 (RGUI) add savestate support 2012-08-12 03:39:00 -04:00
Themaister 1794aa6dff Do not call set_nonblock_state for FF buttons if vsync isn't activated. 2012-08-12 09:36:15 +02:00
Twinaphex 1af593f910 (RARCH_CONSOLE) Run set_nonblock_state if an emu runs at more than
60fps/60Hz - to forcibly set vsync off
2012-08-12 09:19:42 +02:00
Toad King 3634136a3a (RGUI) display core name in menu 2012-08-12 01:32:22 -04:00
Themaister e14a679f83 Forcefully disable VSync if game FPS >> monitor FPS. 2012-08-12 00:40:21 +02:00
Themaister 9f452def9c Actually update rarch_video.h. 2012-08-11 20:36:52 +02:00
Themaister 5a34de395a Minor stylistic cleanups. 2012-08-11 19:43:55 +02:00
Twinaphex 4d7d35f0ef Move platform-specific thread code into common thread/ folder 2012-08-11 14:27:12 +02:00
Twinaphex e57a083697 (GX) Compile in HAVE_THREAD - provide pthread wrapper for GX 2012-08-11 13:33:32 +02:00
Themaister c9a22392c8 Update to 0.9.7-rc1. 2012-08-11 09:18:39 +02:00
Toad King 28c14e7946 (GX) silence warning 2012-08-10 23:42:24 -04:00
Toad King ce0ff54693 (GX) add devoptabs for logging stdout/stderr, useful for logging core messages 2012-08-10 22:49:12 -04:00
Toad King 545b530a50 (GX) fix asm blitter in optimized builds 2012-08-10 14:49:18 -04:00
Twinaphex e3e3e1f3bc (PS3) Create gfx_ctx_get_aspect_ratio 2012-08-10 07:20:49 +02:00
Twinaphex 28eb3604f9 (PS3/Gl) refactored stuff 2012-08-10 06:50:41 +02:00
Toad King 49922e730e (CONSOLE) port failed rom fix to other platforms 2012-08-09 23:52:51 -04:00
Toad King da0d300d54 (GX) fix exiting after failing to load a ROM 2012-08-09 23:50:49 -04:00
Twinaphex 82b3edfe86 (Xbox 1 Salamander) Fixed Salamander pathname 2012-08-10 05:28:11 +02:00
Twinaphex 6d87a1ab9f (PS3 Salamander) Build fix 2012-08-10 05:18:32 +02:00
Twinaphex 6929349c4f (GX) Salamander path refactor 2012-08-10 05:00:19 +02:00
Twinaphex fcebaca85e (PS3) Rewrite resolution context code 2012-08-10 04:48:21 +02:00
Toad King 552180f276 (SALAMANDER) fix rarch_manage_libretro_set_first_file so it doesn't select the salamander executable 2012-08-09 22:58:38 -04:00
Twinaphex 7491de4c95 (RARCH_CONSOLE) Add Salamander default path 2012-08-10 03:48:54 +02:00
Twinaphex 9d356c716d (Salamander) Remove console/salamander - Salamander is platform-independent
per port now
2012-08-10 03:37:12 +02:00
Twinaphex dfd5571f12 (RGL) Move some stuff around 2012-08-10 02:31:39 +02:00
Twinaphex f04e079d77 (RGL) Cleanups 2012-08-10 01:37:39 +02:00
Toad King 7ee8e1e524 (GX) implement core changing in RGUI
fix core management picking salamander, resulting in hard-lock
change tabs->spaces
2012-08-09 19:01:46 -04:00
Twinaphex 44209a4318 (PS3) Remove hardcoded tex coord matrices 2012-08-10 00:28:43 +02:00
Twinaphex e2c96f9a09 (RGL) Big cleanup 2012-08-10 00:00:33 +02:00
Themaister 92d18ec2f1 Add small test for RETRO_KEYBOARD to libretro-test. 2012-08-10 00:03:14 +02:00
Themaister f4ecdf2bce Remove use of cgGLSetStateMatrixParameter. 2012-08-09 23:53:15 +02:00
Twinaphex c369aa97df (RGL) Uses custom matrix code 2012-08-09 23:20:39 +02:00
Themaister a283a54bee Use calculated MVP directly in shader params. 2012-08-09 23:21:59 +02:00
Twinaphex 77b2ed5514 Revert "(PSL1GHT) Add PSL1GHT semaphore redefinitions"
This reverts commit 04a5a17409.
2012-08-09 23:06:39 +02:00
Twinaphex c45c49c5c2 (RGL) Include cgGLSetMatrixParameterfc 2012-08-09 22:15:30 +02:00
Themaister 450b59262b Avoid redundant FF GL calls. 2012-08-09 22:06:57 +02:00
Twinaphex 04a5a17409 (PSL1GHT) Add PSL1GHT semaphore redefinitions 2012-08-09 19:17:07 +02:00
Twinaphex 84a6c4d521 (RGL) Remove TextureMatrixStack 2012-08-09 18:58:08 +02:00
Themaister 749329f455 Fix build if freetype isn't enabled. 2012-08-09 10:36:51 +02:00
Themaister db6c0ee85c Use custom matrix calculation routines.
Aims for more compatibility with modern OpenGL.
2012-08-09 08:56:35 +02:00
Twinaphex 80eb46a51c (Xbox 1) Remove Arial.ttf font 2012-08-09 07:44:09 +02:00
Twinaphex abebe492af (PSL1GHT) Added some PSL1GHT GCM Defines 2012-08-09 07:39:32 +02:00
Twinaphex 9f2e1a816b (PSL1GHT) Minor cleanup 2012-08-09 07:30:42 +02:00
Twinaphex ddf33463ec (PSL1GHT) Add PSL1GHT ifdefs for input 2012-08-09 07:29:56 +02:00
Twinaphex 90786687d4 (RGL) Cleanup 2012-08-09 07:13:29 +02:00
Twinaphex 48480bc22f (PS3/RGL) Cleanup 2012-08-09 06:29:33 +02:00
Twinaphex 0c6017caff (GX) Cleanups 2012-08-09 05:27:06 +02:00
Twinaphex 5e97b86e65 (GX) Change wii_ naming conventions to gx_ 2012-08-09 03:54:27 +02:00
Twinaphex e277828526 (GX) Cleanup dirty hack a bit 2012-08-09 03:13:08 +02:00
Twinaphex 0fd65fccc1 (GX) Dirty hack to get Classic analog sticks mapped as D-pad working
properly (without messing up same controls in menu)
2012-08-09 03:07:08 +02:00
Toad King 4e8bb6580b (GX) more GC button combo changes
Exit is now Stick Down + C-Stick Down + L + R
2012-08-08 19:27:52 -04:00
Toad King 6598e71b9c (GX) Change button combos for GC controller for Menu/Exit
Stick Up + C-Stick Up + L + R for menu
Start + Select + L + R for exit
2012-08-08 18:23:33 -04:00
Twinaphex 4eb04a682c (GX) VIDEO_SetTrapFilter not run every frame now 2012-08-08 23:25:41 +02:00
Twinaphex d7fd90883b (GX) Slim down vi_encoder.c 2012-08-08 23:18:31 +02:00
Twinaphex 5de1373d23 Revert "Revert "(GX) Add VI_Trap Filter (for Wii)" - noticeable audio pops"
This reverts commit 827e69fabc.
2012-08-08 22:39:19 +02:00
Twinaphex 827e69fabc Revert "(GX) Add VI_Trap Filter (for Wii)" - noticeable audio pops
for little gain

This reverts commit 690ac65d3e.
2012-08-08 21:25:52 +02:00
Twinaphex 690ac65d3e (GX) Add VI_Trap Filter (for Wii) 2012-08-08 21:04:33 +02:00
Twinaphex c6032be256 (GX) Add gamma correction options in settings menu 2012-08-08 19:55:38 +02:00
Twinaphex 5e2307d9c9 (GX) Add rotation options in settings menu 2012-08-08 18:47:15 +02:00
Themaister 2f9585829e Implement for JOYPAD explicitly. Defaults to 0. 2012-08-08 08:33:44 +02:00
Themaister 2dfd32d694 Do not return early if id is large (likely so with RETROK_). 2012-08-08 07:52:20 +02:00
Themaister 50980263fb Correctly use RETRO_DEVICE_KEYBOARD in ext_gfx. 2012-08-08 07:47:10 +02:00
Themaister e3a2bf1463 Fix build if --disable-netplay is used. 2012-08-08 07:40:00 +02:00
Twinaphex c48d8e45a9 (GX) Quit shortcut combos added - for Wiimote (Home + B) - for
Classic (Home + ZL + ZR) and Gamecube (L + R + Z + Start + A)
2012-08-08 06:56:56 +02:00
Toad King 54a5845321 (GX) initial in-game menu 2012-08-07 23:40:17 -04:00
Twinaphex a5f8651dcd (GX) Add 90/180/270 degree rotation tex coord matrices -
wii_set_rotation just needs to be implemented now
2012-08-08 00:36:47 +02:00
Twinaphex ba2323c443 (GX) Update icon - no more SSNES icon 2012-08-08 00:12:10 +02:00
Twinaphex ab0ce82b1e (GX) Alpha blended image overlay when exiting back to menu 2012-08-07 23:52:36 +02:00
Themaister c76a4b4092 Nonblock console reads appear to work on Win32. 2012-08-07 22:36:44 +02:00
Themaister 01f9ad8d8d Build in STDIN_CMD on Win32. 2012-08-07 21:31:43 +02:00
Themaister 54353961e1 Fix build for Win32. 2012-08-07 21:27:59 +02:00
Toad King c850fa956f (GX) video changes 2012-08-07 13:12:51 -04:00
twinaphex ae7292b111 (Xbox 1) Save flicker filter and soft filter in config file 2012-08-07 18:33:16 +02:00
twinaphex a9de8e41e5 (Xbox 1) Add flicker filter and soft display filter options in
Settings menu
2012-08-07 18:26:52 +02:00
Squarepusher f41c252f6f Merge pull request #43 from freakdave/master
(Xbox 1) Fixed screen rotation code
2012-08-07 08:20:45 -07:00
freakdave 565e7e0a6d (Xbox 1) Set SDFilter to default value (disabled), leave FFilter at 1 though 2012-08-07 16:36:29 +02:00
freakdave b174eb3f7a (Xbox 1) Small but necessary bug fix in screen resize code (rmenu) 2012-08-07 16:26:12 +02:00
freakdave ee77a2dac7 (Xbox 1) Fixed screen rotation code 2012-08-07 14:39:27 +02:00
Twinaphex 0fc1a37872 (GX) Get rid of static variables in gx_video.c 2012-08-07 06:04:17 +02:00
Twinaphex a413b4126f (GX) Take out some unused and unimplemented stubs 2012-08-07 05:30:14 +02:00
Twinaphex d78cab023b (GX) Add HW_RVL ifdef 2012-08-07 05:27:27 +02:00
Twinaphex 46210fce54 (Wii) Rename all Wii files to gx/ 2012-08-07 05:24:12 +02:00
Toad King 4a328960a4 (Wii) prepare RGUI/gx_video for in-game menu 2012-08-06 22:30:18 -04:00
twinaphex cc154d21ab (Xbox 1) Add RetroArch Salamander project + fix config_file.c 2012-08-07 00:23:25 +02:00
Twinaphex a6424f02b0 (RMenu) Cleanup 2012-08-06 23:37:53 +02:00
twinaphex 8dae2d2179 (Xbox1/RMenu) Move Xbox init code to xdk/frontend/main.c 2012-08-06 22:53:57 +02:00
twinaphex 72b7ecaaff (RMenu) Take out some unused Xbox 1 definitions 2012-08-06 22:49:10 +02:00
Twinaphex 61d5977054 (Wii) Change WII_ prefixes to GX_ 2012-08-06 22:00:35 +02:00
Twinaphex f2343569bc Add rarch_settings_set_default - default rate control/enable for
GEKKO
2012-08-06 21:44:25 +02:00
Twinaphex ca82b46a3c (Wii) CORE.dol file is now renamed to sane filename - libretro
management code seems to be more or less up and running now
2012-08-06 21:32:06 +02:00
Toad King 0b47c01ef5 (Wii) change default values for audio rate control 2012-08-06 15:24:17 -04:00
Toad King c53f9ff982 (Wii) config file changes
(Consoles) save audio rate control
2012-08-06 15:13:37 -04:00
Toad King b64207a8aa Do not open config files on console in append mode 2012-08-06 15:12:59 -04:00
Toad King cc52ee9754 (Wii) forward arguments to loaded DOL files, fixes paths 2012-08-06 13:35:31 -04:00
Twinaphex fe5a11b051 (RGL) Cleanups 2012-08-06 18:24:54 +02:00
Squarepusher fba4f6273a Merge pull request #42 from freakdave/master
(Xbox 1) Fixed lockups that occurred due to negative viewport coordinates (X,Y in Resize Mode)
2012-08-06 07:41:13 -07:00
freakdave 64ef86ce06 (Xbox 1) Added ifdef's to the viewport fix, i don't know if other platforms allow negative values. 2012-08-06 15:15:58 +02:00
freakdave 0da3b628c6 (Xbox 1) Fixed lockups that occurred due to negative viewport coordinates (X,Y in Resize Mode) 2012-08-06 15:08:10 +02:00
Twinaphex 7fb25a76c8 (RGL) Tweaks 2012-08-06 05:05:16 +02:00
Toad King fd3ee5a9dd (Wii) salamander fixes 2012-08-05 22:26:03 -04:00
Twinaphex 4b4b704182 (PS3) Quick build fix - update RetroArch ELF name 2012-08-06 03:07:34 +02:00
Toad King 8fd7ca74b1 (Wii) compile salamander with correct link options 2012-08-05 20:52:15 -04:00
Twinaphex f9489dedcd (Wii Salamander) Salamander for Wii (WIP) 2012-08-06 02:36:41 +02:00
Twinaphex 465c2f9e33 (Salamander) Custom versions of Salamander 2012-08-06 02:07:57 +02:00
Toad King fec81d2ee4 (Wii) don't list "boot.dol" in core selector 2012-08-05 18:36:23 -04:00
Toad King 07ae3a873c (Wii) updated launcher code 2012-08-05 18:36:03 -04:00
Twinaphex abc16197d8 (RARCH_EXEC Wii) Change u32 to uint32_t 2012-08-06 00:06:01 +02:00
Twinaphex aecd2be860 (Wii) Add RARCH_EXEC for Wii port - should load values from
config file now and save them (WIP)
2012-08-06 00:01:10 +02:00
Twinaphex 07a2803515 (Libretro mgmt) Move comments to header 2012-08-05 21:55:53 +02:00
Twinaphex 62d01cbca7 (Libretro mgmt) Clean up rarch_configure_libretro 2012-08-05 21:52:54 +02:00
twinaphex a66291c309 (Xbox 1) Create RetroArch Salamander XBE file - default.xbe 2012-08-05 19:09:51 +02:00
twinaphex 9e6c9e5f7b (Xbox 1) Option for debug info messages 2012-08-05 18:42:54 +02:00
twinaphex 0ec872c917 (RMenu) PATH_SYSTEM_DIR_CHOICE works now 2012-08-05 17:53:01 +02:00
twinaphex 0625286a22 (Xbox 1) Only show debug messages if g_console.fps_info_enable
is set to true
2012-08-05 17:38:21 +02:00
twinaphex 1448761e73 (Xbox 1) Refactor surface code to implementation of texture_image 2012-08-05 17:18:19 +02:00
twinaphex 8e1dfde5cb (Xbox 1) Rename PNG files 2012-08-05 16:35:01 +02:00
Twinaphex ac579f2d6a (RMenu) Move image files to console/rmenu/images 2012-08-05 15:32:20 +02:00
Themaister 6f8f063b90 Simplify win32 read_stdin(). Still untested. 2012-08-05 13:01:33 +02:00
Twinaphex d521edd86a (libretro mgmt) Get rid of rarch_configure_libretro function 2012-08-05 07:43:37 +02:00
twinaphex 848ef3c1e4 (Libretro mgmt) use rarch_configure_libretro_core for
Xbox 1 port
2012-08-05 07:51:43 +02:00
twinaphex 6b02f6d21d (Xbox 1) Have to mess around to get libretro management working
properly again
2012-08-05 05:20:12 +02:00
twinaphex 51507235b4 (RMenu) Change dir passed to 'System dir selection' to
default_paths.system_dir
2012-08-05 04:56:27 +02:00
twinaphex 2affce8829 (RMenu) Take out _XBOX1-specific defines - make it more generic 2012-08-05 04:43:21 +02:00
twinaphex bbe0555185 (Xbox) Take out debug log 2012-08-05 04:36:04 +02:00
twinaphex fe62cf91a9 (Xbox 1) Fixes crashes when attempting to go to 'Libretro/paths'
dir selection screens - had to do with wrong path setting
2012-08-05 04:30:02 +02:00
twinaphex 8cfeeeb2b6 (Xbox 1) Updated Xbox 1 BG 2012-08-05 03:45:56 +02:00
Twinaphex beb052dc37 (PS3/RMenu) Small changes to menu background 2012-08-05 03:22:44 +02:00
Twinaphex 3c85d9f386 (PS3 / RMenu) Graphic changes 2012-08-05 03:00:38 +02:00
twinaphex c531908d21 (Xbox 1/RMenu) Aesthetic tweaks + original GIMP image 2012-08-04 22:55:37 +02:00
Twinaphex 755f73cee9 (RMenu) Graphical tweaks 2012-08-04 21:43:46 +02:00
twinaphex 104ff16169 (RMenu) New backgrounds 2012-08-04 20:57:59 +02:00
Twinaphex 6826301b75 (PS3) Debug fonts show again + menu label tweaks 2012-08-04 17:30:31 +02:00
twinaphex d1d587b988 (RMenu) Changes 2012-08-04 17:21:49 +02:00
twinaphex fe299c19a7 (RMenu) Dehardcode some font paths 2012-08-04 16:53:34 +02:00
twinaphex 50ce3fc6c9 More ifdeffing out of cheat settings if HAVE_XML is not defined 2012-08-04 07:26:50 +02:00
twinaphex a1eecbfcc5 (Xbox 1) Ifdef out PATH_CHEATS if HAVE_XML is not defined 2012-08-04 07:24:15 +02:00
twinaphex 529e5d7d18 (Xbox 1) Add D3D8 alpha blending 2012-08-04 05:59:30 +02:00
twinaphex 98385f8ccf (RMenu) Cosmetic tweaks -label adjustments 2012-08-04 05:37:02 +02:00
twinaphex 15e9860ab9 (Xbox 1/RMenu) Fixes for some of the 'set directory' settings 2012-08-04 05:26:46 +02:00
twinaphex 2d638d5708 Merge branch 'master' of https://github.com/Themaister/RetroArch
Conflicts:
	console/rmenu/rmenu.h
2012-08-04 05:12:29 +02:00
twinaphex 8ac6a7968e (RMenu) message queue works now on Xbox 1 too 2012-08-04 05:10:49 +02:00
Twinaphex 7ca0637418 (Xbox 1) Cleanups to IoSupport.cpp / Surface.cpp 2012-08-04 03:50:10 +02:00
Twinaphex 770123eb74 (RGUI) Move RGUI and make define for it - two competing menus/GUIs
now to choose from that are mostly platform agnostic
2012-08-04 03:32:25 +02:00
Twinaphex 80a01479b1 (RMenu) Add define HAVE_RMENU - add it to griffin.c 2012-08-04 03:25:44 +02:00
twinaphex 09c33a5aa9 (RMenu) More trimming of messages 2012-08-04 03:31:54 +02:00
twinaphex 41ff7bb1fc (RMenu) Trim down messages to fit on Xbox 1 screen (640x480 assumed) 2012-08-04 03:28:31 +02:00
twinaphex d1ae6e41b6 (Rmenu / Xbox 1) Highlighter for selected item in settings/ingame
menu
2012-08-04 03:11:49 +02:00
twinaphex 1cb896d0b6 (Xbox 1) Rmenu build fix 2012-08-04 02:44:02 +02:00
Twinaphex 17780cb5a8 (Rmenu/fonts) no longer use gl_render_msg_post 2012-08-04 02:28:38 +02:00
Twinaphex ab3b97cb40 (PS3) Clean up RMenu - don't use 'post' font functions 2012-08-04 02:06:46 +02:00
twinaphex ed0bda6869 (xbox 1) Have most menus work on xbox 1 - font placement needs
work
2012-08-04 01:49:59 +02:00
twinaphex b40dc9e1a7 (RMenu) Some cleanups 2012-08-03 21:41:07 +02:00
Twinaphex 275fdb104b (RMenu) Portable menu code - still WIP 2012-08-03 21:22:43 +02:00
twinaphex 0314580bb5 (Xbox 1) Now reuses PS3 menu code 2012-08-03 21:25:49 +02:00
Twinaphex 6071c25905 (Xbox 1/PS3) More changes 2012-08-03 21:06:52 +02:00
twinaphex bc92cbc40a (Xbox 1/PS3) more menu compatibility tweaks 2012-08-03 19:36:11 +02:00
Twinaphex a32fee16f4 (PS3) Add _XBOX1 defines to menu.c 2012-08-03 18:52:17 +02:00
twinaphex bb338d07d7 (PS3/Xbox 1) Menu unification changes 2012-08-03 18:54:59 +02:00
twinaphex 8e71b62748 (PS3/Xbox 1) Menu changes 2012-08-03 18:27:38 +02:00
twinaphex b06da6e259 (Xbox 1) Build fix 2012-08-03 18:10:00 +02:00
Twinaphex 9976b81f18 (PS3/Xbox 1) Menu changes 2012-08-03 17:54:22 +02:00
Twinaphex 9123da72ae (PS3/Xbox 1) Make menu code usable for both PS3/360 2012-08-03 06:34:33 +02:00
twinaphex 8a5641a585 (Xbox 1) Add BeginScene to gfx_ctx_clear 2012-08-03 06:24:19 +02:00
twinaphex bb4a516f6f (Xbox 1) Uses gfx_ctx_clear now 2012-08-03 06:20:43 +02:00
twinaphex dc21864405 (Xbox 1) Create more context functions for XDK 2012-08-03 04:39:37 +02:00
twinaphex 7cc14a6c4d (Xbox 1) Menu tweaks 2012-08-03 04:09:38 +02:00
Twinaphex c96608eadc (PS3) Make position values interchangeable between platform ports 2012-08-03 03:46:01 +02:00
twinaphex 670da875e7 (Xbox 1) Bring Xbox 1 menu code more inline with that of PS3 2012-08-03 03:24:36 +02:00
twinaphex 9baafe5267 (Xbox 1) Menu revisions 2012-08-03 01:57:53 +02:00
twinaphex d28ebe7644 (Xbox 1) Menu changes 2012-08-03 00:23:09 +02:00
Twinaphex 35ad0644a9 (PS3) Font change 2012-08-03 00:02:02 +02:00
Twinaphex 15cb863227 (PS3) Replace input_ps3 with input_ptr 2012-08-02 18:36:34 +02:00
twinaphex 9476cbe9eb (Xbox 1) Change hardcoded 'input_xinput' reference with macro
input_ptr
2012-08-02 17:57:53 +02:00
twinaphex 2f4d568ded (Xbox 1) Add some more menu logic 2012-08-02 17:22:13 +02:00
twinaphex cdb2a2b4e7 (Xbox 1) Streamline menu code with that of PS3's 2012-08-02 17:09:41 +02:00
twinaphex cd25e8b7c9 (Filebrowser) Cleanups 2012-08-02 16:27:40 +02:00
Twinaphex da9a47dfa2 (PS3) Platform-agnostic button labels - pt.3 2012-08-02 15:52:31 +02:00
Twinaphex d78ab56fee (PS3) Platform-agnostic button labels - pt.2 2012-08-02 05:49:37 +02:00
Twinaphex 1c09aa4fdd (PS3) RGL cleanups 2012-08-02 03:24:14 +02:00
Twinaphex 16119d8ad7 (PS3) Platform-agnostic button labels 2012-08-02 01:59:05 +02:00
Twinaphex a90171b9cc (PS3) Replace another hardcoded value 2012-08-01 21:19:13 +02:00
Twinaphex 136cd5db9c (PS3) Replace some hardcoded font values 2012-08-01 20:59:03 +02:00
Twinaphex 0f1e673b2e (PS3) Will no longer crash program if a directory can not be
loaded in the filebrowser (for whatever reason)
2012-08-01 17:22:10 +02:00
Twinaphex 931aa7de89 (PS3) Remove non-working info messages 2012-08-01 16:51:16 +02:00
Twinaphex 1e414eb398 (PS3) Dehardcode font width/height/scale variables for portability 2012-08-01 16:47:37 +02:00
Twinaphex 99bdfc6713 (PS3) Replace PS3-specific defines 2012-08-01 06:17:25 +02:00
Twinaphex bfb045066d (PS3) Fix warnings in menu.c 2012-08-01 05:48:39 +02:00
Toad King b1f5052fbc (Wii) GUI code for code switching
Actuall switching not yet implemented
2012-07-31 21:20:06 -04:00
Twinaphex 5cbdc41093 (PS3) Enums should be included regardless of whether or not HAVE_OSKUTIL
is defined
2012-08-01 03:01:29 +02:00
Twinaphex 6d280e9fbb (PS3) Clean up Cellframework2 leftovers from ps3_input.c 2012-08-01 03:00:12 +02:00
Twinaphex b7570aca07 (PS3) Platform-independent input code in menu 2012-08-01 02:56:15 +02:00
Twinaphex 62a69f01ac (PS3) Input refactoring 2012-08-01 00:00:44 +02:00
twinaphex bc8675f711 (360/Xbox 1) Use the same input driver now for both 360 and Xbox 1 2012-07-31 20:56:05 +02:00
twinaphex ff54bc6c0f (Xbox 1/360) Control input refactoring 2012-07-31 20:09:17 +02:00
twinaphex 881a1458af (Xbox 1) Fill in rarch_key_pressed 2012-07-31 17:56:32 +02:00
twinaphex 20490fe81b (Xbox 1) Bring menu code inline with that of PS3 2012-07-31 17:12:10 +02:00
Twinaphex 6146d64474 (PS3) Menu refactoring 2012-07-31 16:06:34 +02:00
Twinaphex c7937d321e Merge branch 'master' of github.com:Themaister/RetroArch 2012-07-31 05:05:10 +02:00
Twinaphex d5cc93213a (PS3) Menu cleanups 2012-07-31 05:04:47 +02:00
Toad King fa4898757c (Wii) testing code for core switching 2012-07-30 23:00:58 -04:00
Twinaphex 8f7b406611 (PS3) Small fix in display_menubar 2012-07-31 03:28:40 +02:00
Twinaphex 1365ac3aca (PS3) Use more wrapping in menu 2012-07-31 03:26:00 +02:00
twinaphex 43077df35b (Xbox 1) Use font wrapper functions 2012-07-31 01:23:42 +02:00
Twinaphex b425531dd9 (Xbox 1) Add Xbox 1 font files 2012-07-31 00:14:23 +02:00
Twinaphex d963e256d2 (PS3) Wrap cellDbgFont calls for portability 2012-07-30 23:42:29 +02:00
Twinaphex cfc694b193 (PS3) Some more menu changes 2012-07-30 23:27:16 +02:00
Twinaphex ab97a624f4 (PS3) Split up filebrowser code from menu stack code 2012-07-30 21:20:42 +02:00
Twinaphex e1e3909034 (PS3) Menu stack code can now be split up 2012-07-30 17:54:11 +02:00
Twinaphex d72bc6558a (PS3) Menu cleanup 2012-07-30 17:19:05 +02:00
Twinaphex 463c8c551c (PS3) Refactor menu code 2012-07-30 16:24:28 +02:00
Twinaphex 51b49ac027 (RGL) Tweaks 2012-07-30 14:28:36 +02:00
Themaister d038cdce37 Refactor ifdef logic in config to r/a+ modes. 2012-07-30 07:58:07 +02:00
Twinaphex 88e02be97a (RGL) Logging exit fix 2012-07-30 05:32:04 +02:00
Twinaphex b03fa0c37b (RGL) Cleanups 2012-07-30 04:02:15 +02:00
twinaphex d324683306 (xbox 1) Rewrite IoSupport.cpp 2012-07-30 02:11:50 +02:00
twinaphex 62673179ab (Xbox 1) Minor cleanup - menu 2012-07-30 01:46:23 +02:00
Twinaphex e4fe183a2c (PS3) Faster menu - cut down on unnecessary disk access 2012-07-30 01:35:11 +02:00
twinaphex 5811df47e3 (Xbox 1) Remove useless log 2012-07-30 01:30:14 +02:00
twinaphex 5264bbb7dc (Xbox 1) Clean up unsigned/signed comparison mismatch warning 2012-07-30 01:24:59 +02:00
Twinaphex 0067710c65 (RARCH_CONSOLE) Only compile in rarch_console_input.c if HAVE_DEFAULT_RETROPAD_INPUT
is defined
2012-07-30 01:10:36 +02:00
Twinaphex 3d47ee9ea4 (RARCH_ZLIB) Stick to 'ret' naming convention for return error values 2012-07-30 01:01:20 +02:00
Twinaphex 9d16bca7c8 Rename rarch_console_sound.c to rarch_console_rsound.c 2012-07-30 00:58:47 +02:00
Twinaphex daff4fb27c (PS3/UNIX-type FS) Skips '.' and '..' directories from being
included in the dir list when doing dir_list_new
2012-07-30 00:36:09 +02:00
twinaphex 1be33ff581 (RARCH_CONSOLE) Create default_paths.filebrowser_startup_dir -
to get rid of system-specific hacks
2012-07-30 00:26:37 +02:00
twinaphex 2d3a2ac7c9 (Xbox 1) Clean up Surface.cpp 2012-07-30 00:11:56 +02:00
twinaphex 676f16b284 (Xbox 1) Rewrite Surface.cpp 2012-07-30 00:08:07 +02:00
twinaphex 293740c4d5 (Xbox 1) Slim down surface class 2012-07-29 23:24:39 +02:00
twinaphex 23dbd820d2 (Xbox 1) Remove MenuMain and MenuManager 2012-07-29 23:09:23 +02:00
Twinaphex e96b29a4bb (PS3) Do same revisions in PS3 menu code - for later integration
with Xbox 1 code
2012-07-29 22:34:03 +02:00
twinaphex f8ee763cf9 (Xbox 1) Revisions to menu code 2012-07-29 22:42:55 +02:00
twinaphex 213bc33238 (Xbox 1) refactoring in MenuMain.cpp 2012-07-29 22:33:10 +02:00
twinaphex a478c88387 (Xbox 1) Build fix 2012-07-29 22:21:57 +02:00
Twinaphex 49847e90bd (Xbox 1) Cleanups to MenuMain.cpp 2012-07-29 22:09:47 +02:00
twinaphex 629dfe4a15 (Xbox 1) Uses filebrowser code now - now lists subdirs as well 2012-07-29 22:07:40 +02:00
twinaphex 49bbacdaf1 (Xbox 1) Remove Global.h header 2012-07-29 20:45:21 +02:00
twinaphex 6926b78840 (Xbox 1) Remove Font.cpp - shaves off another MB of memory usage 2012-07-29 19:54:20 +02:00
twinaphex 1b45c5b5de (Xbox 1) Use debug fonts for menu instead of textures per ROM
- we don't have much RAM on Xbox 1 - TODO: make certain text smaller
2012-07-29 19:47:45 +02:00
twinaphex d7fc00757d (Xbox 1) Change sprintfs to snprintfs 2012-07-29 18:46:52 +02:00
twinaphex c92c08ff31 Replace strcpys with strlcpy (except for librsound.c) 2012-07-29 18:38:55 +02:00
Twinaphex 22dc1b9e72 (RARCH_CONSOLE) If a config file does not exist, try to create it
first before entering out of config_file_new function - reduces
some code bloat in console ports
2012-07-29 18:17:53 +02:00
twinaphex 6aa0eea7bf (Xbox 1) Properly configure analog D-pad mapping
(Xbox 1) Build fix
2012-07-29 17:50:33 +02:00
twinaphex b2f9b90f1c (360) Gamma correction enabled by default now 2012-07-29 17:27:20 +02:00
Twinaphex 4cdd4eb8db We need to implement this properly or not at all - removing this
hackish thing for now
2012-07-29 17:09:48 +02:00
Themaister e5a7ef7cf5 Fix subtle bug in file_path_basedir.
Also applies minor stylistic fixes to file_path.c.
Adds return type to wchar/char conversion functions.
2012-07-29 09:23:04 +02:00
Twinaphex a75ca75fd1 (RGL) Cleanups 2012-07-29 01:10:15 +02:00
twinaphex c9607c4684 (360) Filebrowser open crash fix - was happening because of
path issue - remove retroarch.cfg and try again
2012-07-29 00:03:13 +02:00
Twinaphex 8451cf867e (Griffin) Cleanups 2012-07-28 22:58:08 +02:00
Twinaphex 08eb81ca64 (RARCH_CONSOLE) Remove rarch_console.c 2012-07-28 22:52:30 +02:00
twinaphex 376ca9d087 (360) Build fix 2012-07-28 22:51:33 +02:00
Twinaphex 6ada9080f1 Move char to wchar and wchar to char conversion functions to
file_path.c
2012-07-28 22:36:49 +02:00
twinaphex e9862014c2 (Xbox 1) Build fix 2012-07-28 22:34:18 +02:00
Toad King 183369fd4b (Wii) fix compile warnings 2012-07-28 15:36:03 -04:00
Toad King 649832e702 (Wii) disable ASM blitter, optimization breaks it 2012-07-28 15:15:47 -04:00
Twinaphex f4559bf636 Move rarch_extract_directory to file_path.c and rename it
fill_pathname_basedir
2012-07-28 20:43:34 +02:00
Twinaphex eff526076b (RARCH_CONSOLE) Make rarch_console_name_from_id static 2012-07-28 20:31:58 +02:00
Twinaphex fb85f5950e (RARCH_CONSOLE) Some refactorings to reduce dependencies on
g_console being there
2012-07-28 19:17:34 +02:00
twinaphex 383be7bd29 (360) Salamander build fix 2012-07-28 19:11:58 +02:00
Twinaphex 131444a9f8 (Salamander) Build fixes 2012-07-28 18:53:44 +02:00
twinaphex 4242295f93 (360)Include rarch_console_libretro_mgmt.c into Salamander solution
and remove duplicate code in Salamander
2012-07-28 18:55:40 +02:00
Twinaphex ba64d7fa3f (RARCH_CONSOLE) Refactor rarch_configure_libretro_core 2012-07-28 18:41:18 +02:00
twinaphex 528ba5c9bb (360) Include rarch_console_exec.c in Salamander solution 2012-07-28 18:40:09 +02:00
Twinaphex 7f269779ce (Salamander) Reuse rarch_console_exec for Salamander 2012-07-28 18:26:30 +02:00
Twinaphex 9e3848e423 (Wii) Makefile typo - fix CFLAGS typo and remove CXXFLAGS (RetroArch
is C - there is no C++ code being compiled in for Wii or PS3)
2012-07-28 17:57:36 +02:00
Twinaphex dd522e23bb (Logger) Throw error and stop compilation if UDP port and IP address are not defined
instead of ugly hardcoded static IP address/UDP port defaults
2012-07-28 17:43:45 +02:00
twinaphex 122943299a (360) Add IS_SALAMANDER to 360 Salamander solution 2012-07-28 17:48:52 +02:00
Twinaphex 5da0354257 Make logging defines reusable by Salamander without having to
include general.h (full of dependencies which can't be met for
standalone app)
2012-07-28 17:32:30 +02:00
Twinaphex eef755d525 (RARCH_CONSOLE) Split up rsound helper functions into rarch_console_sound.c 2012-07-28 16:42:57 +02:00
Twinaphex a5beb54ad4 (RARCH_CONSOLE) Split up HAVE_EXEC functions into new file rarch_console_exec.c 2012-07-28 16:35:07 +02:00
Twinaphex c77b49b19a (RARCH_CONSOLE) Split up main_wrap code into its own file 2012-07-28 16:21:05 +02:00
Twinaphex 739fd99a21 (RARCH_CONSOLE) Split up video code for console into rarch_console_video.c 2012-07-28 16:10:59 +02:00
twinaphex 10c00eaf70 (360) Build fix 2012-07-28 16:08:49 +02:00
twinaphex b03c18187a (Xbox 1) Build fix 2012-07-28 16:05:56 +02:00
Twinaphex 714837e8c0 (RARCH_CONSOLE) Namespaced all files in console/ 2012-07-28 15:54:35 +02:00
Twinaphex 5c5ab6e510 (RARCH_CONSOLE) Make rarch_main_init_wrap static 2012-07-28 15:35:11 +02:00
Twinaphex 38001bd65f (Wii) Use audio rate control delta 0.006 by default (better sound - less pops)
(Wii) Remove test defines from gx_input.c
2012-07-28 14:51:09 +02:00
Themaister f3d9eed89f Add preliminary stdin reading for Win32 (untested). 2012-07-28 10:57:14 +02:00
Themaister 3b4ac42724 Add missing command.h. 2012-07-28 07:47:35 +02:00
Themaister 4d5c4bfd08 Add additional comments for libretro defines. 2012-07-28 07:39:05 +02:00
Themaister 488d2c5a63 Move keysyms to libretro.h.
Should allow RETRO_KEYBOARD to work on GL/SDL/X11 drivers.
2012-07-28 07:39:05 +02:00
Themaister 8fe47d5c16 Log screensaver disable in xvideo. 2012-07-28 07:39:05 +02:00
Themaister e3a846ba54 Do not reinvent screensaver wheel in sdl_gfx.c. 2012-07-28 07:39:04 +02:00
Toad King b61720ab4d (Wii) set correct d-pad emulation
remove stray log
2012-07-28 00:17:38 -04:00
Toad King abcd2e50ac (Wii) Big GUI settings cleanup, added initial controller settings support
*NOTE: Settings currently do not save*
2012-07-27 23:17:12 -04:00
Twinaphex 091e91b945 Make some unused extern functions static in retroarch_console_input.c 2012-07-28 02:47:57 +02:00
Toad King 770715501b (Wii) fix message length 2012-07-27 20:46:16 -04:00
Toad King 33d3da8142 (Wii) device settings 2012-07-27 20:40:08 -04:00
Twinaphex e0f4953de8 (RARCH_CONSOLE) Add second param to set_default_keybind_lut (port
is player no)
2012-07-28 02:28:10 +02:00
twinaphex 33c54d0906 (360) Build fix 2012-07-28 02:26:37 +02:00
Themaister 7346d0f959 Suspend screensaver on SDL/GL as well. 2012-07-28 01:55:00 +02:00
Twinaphex b29b04b4b0 (RARCH_CONSOLE) Add 'device' param to set_default_keybind_lut and
set_analog_dpad_mapping
2012-07-28 01:37:15 +02:00
Twinaphex 4cf8b6e1ea (Wii) Fixes Classic controls 2012-07-28 01:21:16 +02:00
Toad King 995a7aee85 (Wii) Wiimote+Nunchuk default binds 2012-07-27 19:14:02 -04:00
Toad King 1a65439560 (Wii) input fixes 2012-07-27 18:23:48 -04:00
Toad King 1297bf4fd3 (Wii) enable verbose logging when net logging 2012-07-27 17:55:10 -04:00
Toad King e9440d7ac8 (Wii) fix net logging 2012-07-27 17:51:36 -04:00
Toad King 184821f60e Merge branch 'master' of github.com:Themaister/RetroArch 2012-07-27 16:23:05 -04:00
Toad King 1e91c7e6cd (Wii) configure network for net logger 2012-07-27 16:22:49 -04:00
Twinaphex 03f6fa9e90 Remove broken solution 2012-07-27 22:01:15 +02:00
Twinaphex 5643ef1473 (PS3) Compiles with HAVE_LOGGER set to 1 again 2012-07-27 21:36:49 +02:00
Twinaphex 44cd3dc701 (Wii) Should compile now with HAVE_LOGGER set to 1 2012-07-27 21:33:18 +02:00
Twinaphex af6f103014 (Wii) Compile fixes for compiling with HAVE_LOGGER 2012-07-27 21:29:42 +02:00
Twinaphex 9f899b1f01 (Wii) Add WIIMOTE_PAD LUT bindings 2012-07-27 21:13:24 +02:00
Twinaphex e6a3737386 (Wii) Add some ifdefs for different LUT bindings for now - will need
to be changeable on-the-fly later
2012-07-27 21:00:56 +02:00
Toad King 501f02df64 Merge branch 'master' of github.com:Themaister/RetroArch 2012-07-27 14:55:41 -04:00
Toad King a2575d939a (Wii) add polling of Classic Controller D-Pad 2012-07-27 14:54:57 -04:00
Twinaphex 5af83668fb (Wii) Set up most of the paths on Wii 2012-07-27 19:15:42 +02:00
Twinaphex 61bfa98f5e (Wii) Quick hack so that 'ROM loading' message shows again - should
just make it so that g_console.info_msg_enable can be enabled/disabled
in the menu
2012-07-27 17:51:38 +02:00
Twinaphex 6a28a741df (Wii) get rid of warnings 2012-07-27 16:10:35 +02:00
Themaister ba05aa9f8b Place #ifdeffed stuff in null input together. 2012-07-27 16:06:39 +02:00
twinaphex 0b0a9e0f96 (Xbox 1) Build fix 2012-07-27 16:03:54 +02:00
twinaphex 6bc690b774 (360) Build fix 2012-07-27 16:01:49 +02:00
Twinaphex bf9980d8bc (RARCH_CONSOLE) Control refactor - add post_init and set_analog_to_dpad_mapping
members
2012-07-27 15:46:15 +02:00
Themaister e13b2e1cb5 Cleanup screensaver code. 2012-07-27 15:47:56 +02:00
Themaister ff9820af68 Merge branch 'master' of github.com:Themaister/RetroArch
Conflicts:
	gfx/gfx_common.c
2012-07-27 15:37:10 +02:00
twinaphex 243944ac62 (360) Build fix
(XDK) Fix system_dir setting
2012-07-27 14:59:45 +02:00
Twinaphex 3a661bff71 (RARCH_CONSOLE) Add new load_game_wrap function that all
console ports use - this abstracts away ZIP loading of ROMs too
(PS3) Add new 'ZIP Extract' mode - 'Current dir and load first
file'
2012-07-27 14:32:23 +02:00
Squarepusher f2e22e4b70 Merge pull request #33 from ficoos/linux_screensaver
Linux screensaver
2012-07-26 14:54:59 -07:00
Twinaphex 870f3a4b19 (Wii) Rename wii input/audio/video drivers - add ToadKing
to Wii port credits
2012-07-26 23:11:52 +02:00
Twinaphex ea32b7ac6d Merge git://github.com/ToadKing/RetroArch-Rpi 2012-07-26 23:03:27 +02:00
Toad King 02ee5b7948 (Wii) use input driver for menu 2012-07-26 17:07:47 -04:00
Twinaphex 6ed82854bf Merge git://github.com/ToadKing/RetroArch-Rpi 2012-07-26 21:38:37 +02:00
Twinaphex 468f7256df (PS3) Add new ZIP extract mode - can extract ZIP to current directory
now
2012-07-26 13:08:08 +02:00
Toad King 30b77de46c Merge branch 'master' of git://github.com/Themaister/RetroArch
Conflicts:
	console/retroarch_console.c
	console/retroarch_console_input.h
	wii/input.c
2012-07-26 03:20:28 -04:00
Toad King 8d7ec021f5 (Wii) Lots of input work, interface is now ready for control rebinding
Issues:
* Wiimote with nunchuk attached has button holding issue, Classic Controller might have same issue
* Have to decide how D-Pad emulation should work with Wiimotes and GC controllers
* Add special cases for menu navigation for holding up/down/left/right
2012-07-26 01:28:57 -04:00
Twinaphex 61c5bef909 (RGL PS3) Get rid of 30 microsecond sleep 2012-07-26 00:49:09 +02:00
Twinaphex 19836d5f4c (RGL) Tweaks 2012-07-26 00:35:51 +02:00
Twinaphex 1ab3cdd30a (PS3) Small cleanup in ps3_audio.c 2012-07-25 23:31:15 +02:00
twinaphex 5087d9f69c (Xbox 1) build fix 2012-07-25 23:24:38 +02:00
Twinaphex bfb933d98d (PS3) Split up more code in retroarch_console.c 2012-07-25 23:09:36 +02:00
Twinaphex 2ab5f84e5c (360/PS3) Ports that support HAVE_HDD_CACHE_PARTITION will
fill in default_paths member with path to cache dir
2012-07-25 21:46:22 +02:00
Twinaphex 811abcf612 (RARCH_CONSOLE) Further Input rewrite for console ports 2012-07-25 21:02:01 +02:00
Twinaphex 4ed249fe18 (RARCH_CONSOLE) Split up input code into retroarch_console_input.c -
beter segregation of input code
2012-07-25 19:35:21 +02:00
Twinaphex 86067e3aeb (RARCH_CONSOLE) Split up rzlib helper functions into separate file 2012-07-25 19:03:01 +02:00
Squarepusher a6c2139a21 Merge pull request #34 from freakdave/master
(Xbox 1) Rom list/text position fixes, 720p background image fix
2012-07-25 06:43:53 -07:00
freakdave 3c1a55dce4 (Xbox 1) Fixed rom list/text position in 720p
(Xbox 1) Fixed 720p background image problem (loads native 720p image now)
2012-07-25 14:23:59 +02:00
twinaphex d1d10eefdf (360) Get rid of ifdefs in 360-specific input driver 2012-07-25 14:11:00 +02:00
Saggi Mizrahi de8c4b9a5f (Linux) Suspend screen saver when using SDL or XVIDEO
This doesn't add support for the opengl backend because I'm too tired to
figure out the context mess.

Signed-off-by: Saggi Mizrahi <[email protected]>
2012-07-25 02:04:33 -04:00
Saggi Mizrahi 5a6bec18b6 Remove trailing newlines from some files
Signed-off-by: Saggi Mizrahi <[email protected]>
2012-07-25 01:22:49 -04:00
Themaister dd3a1d0df2 Error out in linuxinput if stdin is used for rom loading. 2012-07-25 04:50:47 +02:00
Themaister 38f7673fac Add command functionality to stdin. 2012-07-25 04:50:46 +02:00
Themaister bfdb1615b5 Style nitting. 2012-07-25 04:50:46 +02:00
Themaister fa1c92d7cf Clear up ifdef usage. 2012-07-25 04:50:46 +02:00
twinaphex eb0b1f9327 (Xbox 1) Cleanups to Xinput 1 driver 2012-07-24 20:04:42 +02:00
Twinaphex 04e6ef4719 (Xbox 1) Change around default keybinds for Xbox 1 2012-07-24 19:50:12 +02:00
twinaphex 19c611bf42 (Xbox 1) Dehardcoded controls 2012-07-24 19:58:49 +02:00
twinaphex c29a7e80c9 (Xbox 1) Get rid of retrolaunch.cpp wrapper file - put include lines
in griffin.c instead
2012-07-24 18:35:29 +02:00
twinaphex e88c6b5cfe (Xbox 1) Add Griffin-like wrapper file for the RetroLaunch source
files
2012-07-24 18:16:03 +02:00
twinaphex 5d22842f75 (Xbox 1) Slimming down of RetroLaunch 2012-07-24 18:03:55 +02:00
twinaphex a82d0c7a9e (Xbox 1) Freed up some more memory (32MB to 36MB free in VBA Next) 2012-07-24 17:45:28 +02:00
twinaphex 2240e96b20 (Xbox 1) RetroLaunch - complexity cleanups 2012-07-24 17:00:24 +02:00
Twinaphex 53c5ff80ed (Xbox 1) Resize title image to 128x128 2012-07-24 16:09:48 +02:00
twinaphex 37f5799302 (Xbox 1) Remove retroarch.h header file 2012-07-24 16:17:50 +02:00
twinaphex 5930c85321 (Xbox 1) RetroLaunch- remove unnneeded files 2012-07-24 16:09:01 +02:00
twinaphex c0e7511d04 (Xbox 1) RetroLaunch's Input.cpp deleted too 2012-07-24 16:06:16 +02:00
twinaphex 3e82330132 (Xbox 1) Controls now work in menu - very twitchy - will be fixed 2012-07-24 16:00:59 +02:00
twinaphex 79bd5a844b (Xbox 1) Replaced Debug.cpp code with calls to RARCH_LOG/RARCH_WARN/
RARCH_ERR
2012-07-24 12:27:49 +02:00
twinaphex 199871955c (Xbox 1) Shows menu now 2012-07-24 12:04:26 +02:00
twinaphex 58a3c8ac86 (Xbox 1) Menu shows (corrupted) screen now 2012-07-24 11:58:11 +02:00
Twinaphex 7b01393941 (PSL1GHT/RGL) Add PSL1GHT defines for GCM method macros 2012-07-24 10:36:32 +02:00
Twinaphex 83ae89dc4c (RARCH_CONSOLE) Create more helper functions for RARCH_CONSOLE 2012-07-24 09:57:34 +02:00
Twinaphex 463b43724c (PS3) Added entries to default_paths 2012-07-24 00:15:33 +02:00
twinaphex 7a74886730 (Xbox 1) Split up Xbox 1-specific code into xbox1/frontend/menu.cpp 2012-07-23 18:52:58 +02:00
Twinaphex 0fb0b26838 (RARCH_CONSOLE) Clean up ZIP extraction error/warning messages 2012-07-23 18:29:41 +02:00
Twinaphex 0e6e563b08 (PS3/360/Xbox 1) Create and use default_paths struct 2012-07-23 18:17:50 +02:00
twinaphex 2f51da4034 (Xbox 1) Remove Video.cpp from RetroLaunch - still black 2012-07-23 16:38:29 +02:00
Squarepusher b9090fca96 Merge pull request #32 from freakdave/master
(Xbox 1) Modified RetroLaunch to use RetroArch's D3D device (!NOT TESTED!)
2012-07-23 07:10:58 -07:00
freakdave fe4b07d8b1 (Xbox 1) Modified RetroLaunch to use RetroArch's D3D device (!NOT TESTED!) 2012-07-23 16:05:16 +02:00
twinaphex 7395c805e6 (Xbox 1) For testing 2012-07-23 15:42:31 +02:00
twinaphex 99b8b40ab2 (Xbox 1) Rename 'media' folder to 'Media' folder 2012-07-23 15:22:08 +02:00
twinaphex baa25cdaa2 (Xbox 1) Included RetroLaunch into the solution - not yet working
though
2012-07-23 15:11:15 +02:00
Twinaphex cecc7613db (Xbox 1) Add system and roms dir 2012-07-23 14:49:33 +02:00
twinaphex 3b7da4c020 (Xbox 1) Add media files to xbox1 dir 2012-07-23 14:58:41 +02:00
Twinaphex ec827d862b (RGL) Cleanups 2012-07-23 14:14:38 +02:00
Twinaphex 2b0bbb9fa1 (RGL) Make RGL more compatible with PSL1GHT 2012-07-23 12:27:43 +02:00
Twinaphex bf746281bd (PS3) Cleaned up RGL code + fixed ifdef error in Salamander 2012-07-23 11:09:36 +02:00
twinaphex c800df6fd5 (360) Quick compile fix 2012-07-23 10:23:27 +02:00
twinaphex 009addb8d5 (360) remove redundant code in main.c 2012-07-23 10:18:32 +02:00
twinaphex c79dbebc90 (Xbox 1) Minor changes to RetroLaunch 2012-07-23 10:15:17 +02:00
twinaphex 772ff6005f (Xbox 1) Move bottom text to 'safe area' for SDTV screens 2012-07-22 22:32:54 +02:00
Squarepusher 4c96ce8054 Merge pull request #31 from freakdave/master
(Xbox 1) Added a simple GUI
2012-07-22 11:19:10 -07:00
freakdave 7fe5059267 (Xbox 1) Just a quick fix ^^ 2012-07-22 20:12:11 +02:00
freakdave 41de6da14e (Xbox 1) Added a simple GUI, right now it browses and lists all files contained in the "roms" folder. The selected rom (its filename) is saved into T:\\tmp.retro. Press start and core.xbe will be launched. If you want to apply changes to the launching code, take a look into MenuMain.cpp.
(Xbox 1) Todo: Pass arguments (filename, settings, etc.. ?) into core.xbe or read tmp.retro and get the filename / settings from there
2012-07-22 19:54:04 +02:00
Squarepusher 3ddb4a97ec Merge pull request #29 from freakdave/master
(Xbox 1) Fixed low volume issue
2012-07-22 04:28:43 -07:00
freakdave 64378ea072 (Xbox 1) Fixed low volume issue 2012-07-19 16:53:24 +02:00
freakdave 2400e92028 Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-19 16:24:50 +02:00
Toad King f9d72f583e (Wii) implement audio controll rate settings
have left/right act as page up/down in file browser
change "Start" to reset values in settings
2012-07-18 20:38:09 -04:00
freakdave bec2a220b4 Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-17 18:40:47 +02:00
Twinaphex 64260b8d33 (Wii) Settings value text can contain more characters now 2012-07-17 09:49:22 +02:00
Twinaphex 968924eca6 (Wii) Use rarch_settings_change for toggling settings-related options
as much as possible
2012-07-17 01:06:13 +02:00
Twinaphex 050441741b Merge git://github.com/ToadKing/RetroArch-Rpi 2012-07-16 23:51:36 +02:00
Toad King ad1ccae211 (Wii) allow basic Wiimote navigation
map Home button to quit
fix reset button for quit
2012-07-16 17:58:50 -04:00
Toad King 7f0d3c3e38 (Wii) initial code for a settings menu 2012-07-16 17:57:43 -04:00
Twinaphex a3b0f3164d (PS3) Redefine macros used for two SDKs 2012-07-16 23:30:13 +02:00
Twinaphex 7ba26db5e7 (PSL1GHT) Attempt to compile RGL driver with PSL1GHT 2012-07-16 22:22:05 +02:00
Twinaphex 5994f6b6df (PS3/PSL1GHT) Redefine SDK function macros - fix some PSL1GHT
incompatibilities
2012-07-16 21:49:51 +02:00
freakdave c81e083958 Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-16 20:55:09 +02:00
freakdave 616bfea527 Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-16 20:47:17 +02:00
Twinaphex 4b3a9c6a14 (PS3) menu - Remove useless trigger_st variable 2012-07-16 20:44:01 +02:00
freakdave 679e8934e1 Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-16 20:39:08 +02:00
Twinaphex 57c90ffc69 (PS3) Small cleanups in menu code 2012-07-16 20:35:11 +02:00
Twinaphex 1ee3524820 (PS3) menu - cleaned up trigger_state 2012-07-16 20:11:39 +02:00
Twinaphex 812e903125 (PS3) More replacing of PS3-specific input code in menu 2012-07-16 19:47:32 +02:00
freakdave fd5908786b Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-16 19:22:26 +02:00
Twinaphex 0f483b041d (PS3) Replace PS3-specific input code 2012-07-16 19:10:22 +02:00
freakdave f270b0a723 Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-16 18:59:50 +02:00
Twinaphex 05e83e2f92 (PS3) control_update_wrap placed at start of menu_loop now 2012-07-16 18:29:01 +02:00
Twinaphex 821b114c6b (PS3) Better held_state mechanics 2012-07-16 18:18:12 +02:00
freakdave baa174e5bf Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-16 16:56:46 +02:00
Twinaphex 74e118aec5 (PS3) More reworking of controls in menu code 2012-07-16 09:53:27 +02:00
Twinaphex d6c32186d6 (PS3) Beginning of platform-agnostic controls - using a wrapper
for now
2012-07-16 09:40:26 +02:00
Twinaphex dcb670f243 Revert "(PS3) Put filebrowsers on heap"
This reverts commit 69cd4ffc46.
2012-07-16 08:44:13 +02:00
twinaphex 28691bef9a (360) put filebrowser on heap 2012-07-16 08:37:58 +02:00
Twinaphex 69cd4ffc46 (PS3) Put filebrowsers on heap 2012-07-16 08:13:05 +02:00
Twinaphex 9695761cfe (PS3) Fix build on PS3 2012-07-16 06:10:02 +02:00
twinaphex eb20bf47ea (Xbox 1) Fix FPS onscreen - needs an additional temp char buffer 2012-07-16 05:55:44 +02:00
Twinaphex d1231fb55b (Xbox 1/RARCH_CONSOLE) Create member in console_settings for showing
FPS onscreen
2012-07-16 05:40:57 +02:00
Twinaphex 58595a7c97 (Salamander) Add Xbox 1 defines 2012-07-16 05:24:32 +02:00
freakdave 8da3f8c387 Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-16 05:15:44 +02:00
twinaphex 38cde55b78 (360/Xbox 1) Move frontend/main.c to xdk dir 2012-07-16 05:13:30 +02:00
Twinaphex ec291ed398 Remove bloat code for custom gettimeofday implementation 2012-07-16 05:12:33 +02:00
twinaphex 14eb5a53cb (360) Move 360 Xinput driver back to 360 dir 2012-07-16 04:24:46 +02:00
twinaphex 4b0d3620c7 (360/Xbox 1) Move reusable XDK files to new folder - xdk -and
create header for XDK definitions
2012-07-16 02:15:47 +02:00
twinaphex 077d9a1f63 (360/Xbox 1) Xbox 1 and 360 now use the same resource
ile - xdk_resources.cpp
2012-07-16 01:58:15 +02:00
freakdave 6608b3facb Merge branch 'master' of https://github.com/Themaister/RetroArch 2012-07-15 21:39:21 +02:00
Squarepusher 14a998e3d1 Merge pull request #26 from freakdave/master
(Xbox 1) Debug output bugfixes
2012-07-15 12:28:33 -07:00
freakdave 4994404006 Merge branch 'master' of https://github.com/freakdave/RetroArch 2012-07-15 21:22:52 +02:00
freakdave 7cfe0fef40 (Xbox 1) Fixed debug output not showing correctly on HDTV's
(Xbox 1) Fixed debug output in debug mode not showing the second line (FPS/Frames)
2012-07-15 21:22:33 +02:00
Twinaphex b79a87932e Cleanups 2012-07-15 21:09:37 +02:00
freakdave ff7b280321 (Xbox 1) Fixed debug output not showing correctly on HDTV's
(Xbox 1) Fixed debug output in debug mode not showing the second line (FPS/Frames)
2012-07-15 20:49:34 +02:00
twinaphex aa150c439f (Xbox 1) FPS reporting for Xbox 1 2012-07-15 19:12:58 +02:00
Twinaphex 15e08db76e Use gfx_window_title for console ports as well - make gfx_get_fps
static
2012-07-15 18:40:41 +02:00
Twinaphex ddc1e0fda7 Make it possible to reuse FPS logging in console ports 2012-07-15 18:37:59 +02:00
Squarepusher 29d269b282 Merge pull request #24 from freakdave/master
(Xbox 1) Even more indenting fixes
2012-07-15 09:14:33 -07:00
freakdave ac83729207 (Xbox 1) Even more indenting fixes 2012-07-15 18:11:24 +02:00
twinaphex fb8c08c998 (Xbox 1) More indenting nits 2012-07-15 18:04:54 +02:00
Twinaphex a1adf7ac4b (Xbox 1) Indenting nits 2012-07-15 17:40:12 +02:00
Squarepusher 69e5223e1d Merge pull request #23 from freakdave/master
(Xbox 1) Fixed analog stick controls
2012-07-15 08:06:15 -07:00
freakdave 987943a52c (Xbox 1) Added on-screen debug output (memory usage), this can be toggled in xdk_d3d8.h -> #define SHOW_DEBUG_INFO 2012-07-15 16:27:50 +02:00
freakdave c8d74c35c9 (Xbox 1) Fixed analog stick controls 2012-07-15 15:50:30 +02:00
twinaphex ee5ca45396 (360) Move 360-specific code out of xdk360_video_resources 2012-07-15 07:25:42 +02:00
twinaphex bbd7d4d410 (360) Cleanup xdk360_fonts.cpp 2012-07-15 05:54:28 +02:00
twinaphex eb3c3d4362 (360) Cleanups in font code 2012-07-15 05:35:45 +02:00
twinaphex c2e2104c3b (360) Clean up xdk360_fonts.cpp 2012-07-15 05:21:39 +02:00
twinaphex c480c6a3d1 (Xbox 1) Working controls - hardcoded binds - will be done
properly later
2012-07-14 17:47:57 +02:00
Twinaphex 3913697cd2 (AUTHORS) Add e-mail address 2012-07-14 16:53:33 +02:00
Twinaphex 204633b0ca Add to AUTHORS 2012-07-14 16:39:48 +02:00
Squarepusher 4ffcb10a23 Merge pull request #22 from freakdave/master
(Xbox 1) Additional D3D8 driver fixes
2012-07-14 07:39:30 -07:00
freakdave 0208a18b81 (Xbox 1) Fixed a small bug in xdk_d3d_set_viewport which was causing scaling issues with some HDTV/PAL resolutions 2012-07-14 16:16:28 +02:00
freakdave 303d5c7eac (Xbox 1) Revisited and cleaned up video initialization code, this also fixes lockups for PAL users using 16:9 mode
(Xbox 1) Fixed back buffer artifacts (it's now showing proper black instead of garbled gfx)
2012-07-14 15:54:26 +02:00
freakdave bf5bfd481e (Xbox 1) Minor cleanup in D3D8 driver 2012-07-14 12:56:18 +02:00
twinaphex 57f6a06647 (360) rarch_xinput2 - Turn hardcoded values into bitshifts 2012-07-14 06:30:39 +02:00
twinaphex 6b04a46c59 (Xbox 1) (Broken) controls 2012-07-14 06:15:03 +02:00
twinaphex d9ff2d7c8f (Xbox 1) Compile in keybinds 2012-07-14 03:19:28 +02:00
twinaphex a82c1cb6e5 (xbox 1) Changes to Xinput1 driver - still not working - WIP 2012-07-13 23:34:46 +02:00
Squarepusher 6ccc887542 Merge pull request #21 from freakdave/master
XBOX 1 HDTV / wide screen modes
2012-07-12 13:29:23 -07:00
freakdave 64e4724663 (XBOX 1) Added HDTV and wide screen (some needs to test this with standard video cables) modes
(XBOX 1) Several cleanups and minor fixes
2012-07-12 22:23:25 +02:00
Twinaphex 2a9441d411 (PS3) Fix startup ROM directory not being used 2012-07-12 16:27:39 +02:00
twinaphex 5431601083 (360/Xbox 1) Input changes 2012-07-12 02:27:00 +02:00
twinaphex 6eb392766a (360/Xbox 1) Standardize Xbox1 and 360 input code 2012-07-12 02:01:13 +02:00
twinaphex 4b07c7dfc1 (Xbox 1) take out unused surface 2012-07-11 22:31:16 +02:00
Squarepusher 3bfe0a82c8 Merge pull request #18 from freakdave/master
XBOX1 D3D8 driver fixes
2012-07-11 13:08:56 -07:00
freakdave 191763a5c6 Fixed: Garbled output which was caused by missing and faulty D3D formats
Fixed: Minor speedup for Release build, see project properties-> C/C++ ->Optimization
Fixed: Texture scaling issue, at least it displays full screen now, it may still need some work though
2012-07-11 21:41:06 +02:00
twinaphex 11e2367cda (Xbox 1) Always compile as C++ for all targets 2012-07-11 18:00:19 +02:00
Twinaphex bf668ad37e (PS3) Fixed System Directory path in Settings menu 2012-07-11 05:26:52 +02:00
twinaphex 41cb7cae63 (360) Fix for SYSTEM_DIR environ 2012-07-11 04:08:36 +02:00
twinaphex 1c0fb47c59 (Xbox 1) Shows 'something' now - courtesy of freakdave 2012-07-10 22:48:41 +02:00
twinaphex 875082748c (360/Xbox 1) Small build fix 2012-07-10 17:39:26 +02:00
Themaister fe88693c90 Fix font rendering on Pi. 2012-07-10 13:40:52 +02:00
Twinaphex 9e56315cdf (PS3) Change PNG background 2012-07-10 06:48:33 +02:00
Twinaphex af560abfa4 (PS3) Don't assume slash is appended at the end of systemDirPath 2012-07-10 05:44:05 +02:00
Twinaphex 93cbc72733 (PS3) Use SYSTEM_DIRECTORY environ 2012-07-10 04:00:04 +02:00
Themaister faedd18b1c Check more explicitly for X11 presence. 2012-07-09 16:57:23 +02:00
Themaister ffbf6d7586 Fix build on ArchLinux/Pi. 2012-07-09 16:49:20 +02:00
twinaphex 29f3543b06 (Xbox 1) Add BeginScene/EndScene 2012-07-09 05:35:37 +02:00
twinaphex 5039fec1fd (Xbox 1) FF viewport stuff 2012-07-09 01:07:36 +02:00
twinaphex 91fca12b05 (Xbox 1) Add z to vertex struct 2012-07-09 00:27:37 +02:00
twinaphex 96cb6c8f53 (Xbox 1) Fixed crash - was due to BackBufferFormat being set to
erroneous value - device could not be created
2012-07-08 23:36:27 +02:00
twinaphex 7f915e3718 (Xbox 1) Some debug printfs for init device function 2012-07-08 23:21:19 +02:00
twinaphex c23f47c41f (360) Use LPDIRECT3DVERTEXBUFFER typedef 2012-07-08 23:06:57 +02:00
twinaphex fd94eee988 (Xbox 1) Compile with HAVE_D3D8 defined - cleaned up some stuff
from xdK_d3d8.cpp/h that we won't need for Xbox 1
2012-07-08 21:57:26 +02:00
twinaphex ce9601e491 (Xbox 1) Small build fix 2012-07-08 21:45:24 +02:00
twinaphex c3d9899dd1 (360/Xbox 1) Split up video/input drivers for systems 2012-07-08 21:42:26 +02:00
twinaphex c676341404 (Xbox 1) DirectSound works 2012-07-08 19:30:19 +03:00
twinaphex ae1f0cdb6d (Xbox 1) Runs a ROM now - null video/audio 2012-07-08 19:09:49 +03:00
Twinaphex 2d237784b3 (RARCH_CONSOLE) rarch_console_load_game created 2012-07-08 17:49:58 +02:00
Themaister 23904c4740 Only build in start/stop/restart on RARCH_CONSOLE. 2012-07-08 17:29:09 +02:00
twinaphex ded6f69933 (Xbox) Added RARCH_CONSOLE functions for null video driver - using null video driver for Xbox 1 for now 2012-07-08 18:21:29 +03:00
twinaphex 15dff68684 (Xbox 1/360) clean up configure_libretro 2012-07-08 17:29:36 +03:00
twinaphex 072abdb8bf (Xbox 1) Libretro management code works now - have to debug xdk_d3d_init now 2012-07-08 17:25:33 +03:00
twinaphex 6fb7e71871 (Xbox) Small cleanup to logger_override.h 2012-07-08 16:47:00 +03:00
twinaphex 65d4d44dc6 (Xbox 1) Debug output working 2012-07-08 16:43:50 +03:00
twinaphex 9a1fe3dbfb (xbox 1) changes 2012-07-08 00:34:11 +03:00
twinaphex 189ac29b11 (Xbox 1/360) main.c changes in xdk-frontend/ 2012-07-08 00:27:48 +03:00
twinaphex 8f9f7116a1 (Xbox) Fixed-function FVF for Xbox 1 2012-07-07 23:02:01 +03:00
twinaphex 1c5861650b (360/Xbox 1) Some more work on xdk_d3d.cpp 2012-07-07 22:47:23 +03:00
twinaphex 80afd6a73f (Xbox 1) Inserted XInput 1 code 2012-07-07 22:10:27 +03:00
twinaphex 0951020196 (360/Xbox 1) Refactor XInput driver with portability in mind 2012-07-07 20:56:46 +03:00
twinaphex fcb7be874e (360) Add HAVE_FBO defines 2012-07-07 20:31:04 +03:00
twinaphex 9d5978cb3e (360/Xbox 1) xdk360_video changed 2012-07-07 20:15:06 +03:00
Twinaphex dcae878cd0 getopt_long_ssnes -> getopt_long_rarch 2012-07-07 17:22:25 +02:00
Twinaphex c3d40d0f5a Snes exorcism 2012-07-07 17:19:32 +02:00
Twinaphex 2fd12edfb6 Libsnes exorcism 2012-07-07 17:08:55 +02:00
twinaphex de6d88959f (Griffin) Add compiling in of sync resampler if HAVE_FIXED_POINT is defined 2012-07-07 18:06:42 +03:00
twinaphex 6203c787bb (360) Resolve new names for video/input drivers 2012-07-07 17:53:33 +03:00
Twinaphex 4ba68cf450 Snes-isms changed 2012-07-07 16:28:01 +02:00
Twinaphex d2dfe38170 Merge branch 'master' of github.com:Themaister/RetroArch 2012-07-07 16:24:50 +02:00
Twinaphex 67d6308ffe (360) Setup Griffin for Xinput2 driver 2012-07-07 16:24:25 +02:00
Twinaphex 5b8c426b3c (360) Xinput2 driver moved to input/ 2012-07-07 16:20:31 +02:00
twinaphex 7d38649d3c (Xbox/360) Changes for interoperability 2012-07-07 16:40:14 +03:00
twinaphex e2484ce545 (360) Build fixes 2012-07-07 15:55:44 +03:00
Twinaphex 4216cded79 (360) Add 360-specific ifdefs 2012-07-07 14:41:58 +02:00
twinaphex d6718adb97 Add *.ncb to gitignore 2012-07-07 15:46:23 +03:00
twinaphex fddeac7fa9 (360/Xbox 1) Move more 360-specific code out of xdk360_video.cpp 2012-07-07 15:39:19 +03:00
twinaphex 2818673d4b (360) Include xgraphics.h in xdk360_video_resources.cpp 2012-07-07 15:31:54 +03:00
Twinaphex 12a97e675a (360/Xbox 1) Make more 360-only code generic (for Xbox 1 reuse) 2012-07-07 14:06:21 +02:00
Twinaphex 39be012268 (360/Xbox 1) Refactor code so it can be reused for Xbox 1 2012-07-07 13:57:19 +02:00
twinaphex 8a0a5b6e41 (Xbox 1) Xbox 1 solution updates 2012-07-07 06:19:29 +03:00
Themaister b84bcc3670 Check if use_float is set while doing fixed point. 2012-07-06 18:15:14 +02:00
Themaister 45481634f2 Add tests for fixed point sinc. 2012-07-06 17:04:54 +01:00
Themaister 7b12182a0f Add optional fixed point resampler. 2012-07-06 17:36:37 +02:00
Themaister 0649d36c7d Fix wording. 2012-07-06 16:00:36 +02:00
Twinaphex 4e139465d2 Merge git://github.com/lifning/RetroArch 2012-07-04 15:49:14 +02:00
Twinaphex c21c51732a Added Darren Alton to AUTHORS for Pandora port - e-mail address missing 2012-07-04 15:18:58 +02:00
Darren Alton 5a97075c95 (Pandora) Remember last-selected ROM for each backend. 2012-07-04 03:32:51 -04:00
Darren Alton 2213a4d977 (Pandora) Tweaks to default cfg file.
- Enable on-screen text with DejaVuSansMono.ttf.
- Let libretro decide the aspect ratio (TODO: determine whether this is good)
- Comments above settings specifically chosen for Pandora.
2012-07-03 22:17:27 -04:00
Darren Alton 94b8325244 (Pandora) More emulator-specific resolutions for whole-number scaling.
Also added ".zip" for the arcade emulators' file choosers.
2012-07-03 22:16:27 -04:00
Squarepusher 16586eae4e Merge pull request #17 from lifning/master
OpenPandora support.
2012-07-03 11:35:57 -07:00
Darren Alton 20d1c0e250 (Pandora) Prefer squashfs to iso9660 for building PND. 2012-07-03 03:43:43 -04:00
Darren Alton 7a71f4dce6 (Pandora) Remind packager to include libretro cores. 2012-07-03 03:40:02 -04:00
Darren Alton d8fca2014e (Pandora) Makefile.pandora creates $(BINDIR) if it doesn't exist 2012-07-03 03:33:43 -04:00
Darren Alton f307084ba5 (Pandora) Config files and build scripts for OpenPandora 2012-07-03 02:36:27 -04:00
Twinaphex c770717e91 (PSL1GHT) Take out XML support 2012-07-02 02:33:19 +02:00
Twinaphex 90c6e9d069 (PSLIGHT) Compile with HAVE_XML and include libxml2 lib 2012-07-01 23:09:34 +02:00
Twinaphex 241368b0f6 Add HAVE_GLSL define 2012-07-01 22:46:25 +02:00
Twinaphex 2ec2b70a72 (PSL1GHT) Add some GL ES 2.0 hooks 2012-07-01 22:44:33 +02:00
Twinaphex 34bcb938b8 (PS3) Use HAVE_OPENGLES11 for PS3 RGL/PSGL driver 2012-07-01 22:31:44 +02:00
Twinaphex a6e1844dfd Add skeleton OpenGL ES driver 2012-07-01 22:25:02 +02:00
Twinaphex 0490e80fb2 (PSL1GHT) Add some ifdef includes 2012-07-01 22:20:59 +02:00
Twinaphex 4848403161 (PS3) refactored input 2012-07-01 22:14:09 +02:00
Twinaphex 277e1f61cd (PS3/PSL1GHT) Make commented out line SDK-agnostic too 2012-07-01 20:49:22 +02:00
Twinaphex cd00eb2b04 (PSL1GHT) Compile in OSK now too 2012-07-01 20:45:13 +02:00
Twinaphex e59d66251b (PSL1GHT) Links now 2012-07-01 18:39:40 +02:00
Twinaphex c6f6b66278 (PS3) Add HAVE_OPENGL ifdefs to ps3_input.c 2012-07-01 18:30:51 +02:00
Twinaphex 1ad679faac (PSL1GHT) ps3_audio.c compiles now 2012-07-01 18:22:57 +02:00
Twinaphex f8a2fc9fc1 (PS3) ps3_audio.c no longer uses pthread 2012-07-01 17:54:04 +02:00
Twinaphex 8bbd63ccb9 (RARCH_CONSOLE) Only compile in thread.c if HAVE_THREAD is
defined - shouldn't need it for consoles - only used for FFMPEG
recording and autosaves
2012-07-01 17:29:24 +02:00
Twinaphex 3aeb74c920 (PS3/PSL1GHT) Add stub thread.c file - now to edit it 2012-07-01 16:35:20 +02:00
Twinaphex de972fd0a3 (PSL1GHT) Add compatibility for mouse code 2012-07-01 16:32:15 +02:00
Twinaphex 51600c82d1 (PSL1GHT) Add PSL1GHT header includes for OSK/mouse 2012-07-01 16:20:33 +02:00
Twinaphex 593dae2833 (PS3/PSL1GHT) Move define party over to separate file - sdk_defines.h 2012-07-01 16:13:25 +02:00
Twinaphex d47cf7cddc (PSL1GHT) Add HAVE_FILEBROWSER - get rid of warnings in file_browser.c 2012-07-01 15:51:49 +02:00
Twinaphex b9cae6e0af (PSL1GHT) audioAddData is there in SPRX it seems but there is no
prototype in the audio.h header in PSL1GHT - found way to
workaround mutex / cond attribute initialize functions
missing
2012-07-01 15:47:57 +02:00
Twinaphex 960fc7651f (PSL1GHT) Initial PSL1GHT compatibility for ps3/audio.c -
missing pthread, missing cellAudioAddData
2012-07-01 15:18:26 +02:00
Twinaphex 4a703f80fb (PSL1GHT) Made ps3_input.c PSL1GHT-compatible 2012-07-01 14:10:13 +02:00
Twinaphex b5753c1d8a (PSL1GHT) Start to make PS3 port compatible with PSL1GHT too 2012-07-01 13:33:30 +02:00
Twinaphex 0930ff1269 Updated README.md to reflect changes 2012-06-30 16:41:35 +02:00
Twinaphex 46f64f2627 (PS3) The separate libs for PS3 (libretroarch.a and librgl.a) should
now be named libretroarch_ps3.a and librgl_ps3.a - changed in
Makefile too
2012-06-30 15:06:59 +02:00
Twinaphex ba03ae59e7 Each platform now links in a differently named libretro file - ie.
libretro_ps3.a, libretro_wii.a, libretro_xdk360.a, libretro_xenon360.a,
libretro_xdk1.a, and so on
2012-06-30 14:59:39 +02:00
Twinaphex eb76385a45 (PS3) Much-needed style nits 2012-06-30 14:04:34 +02:00
Twinaphex 23f18bd494 (PS3) Ifdef include for syscache header as well 2012-06-30 13:39:41 +02:00
Twinaphex 3ad124e4af (PS3/360) Add HAVE_HDD_CACHE_PARTITION define 2012-06-30 13:37:18 +02:00
Themaister 50acc3dcf6 Clean compat/*.o as well. 2012-06-30 13:09:34 +02:00
Twinaphex 313086482b Merge git://github.com/ToadKing/RetroArch-Rpi 2012-06-30 11:14:26 +02:00
Toad King aae5870412 (Wii) remember file browser position after returning from game 2012-06-30 04:54:20 -04:00
Toad King c6fdbaa86d (Wii) remember position in file browser when going back up the folder hierarchy 2012-06-30 04:49:50 -04:00
Toad King 89d2be66da (Wii) display current directory in file browser 2012-06-30 04:03:48 -04:00
Toad King 66300fa787 Windows Makefile fix 2012-06-30 03:25:00 -04:00
Toad King c9c723482a (Wii) allow changing between SD and USB 2012-06-30 03:08:05 -04:00
Toad King 65a269a532 do not specify device, let launcher choose default one 2012-06-30 01:54:32 -04:00
Toad King 581591591c some message display changes 2012-06-30 04:36:36 +02:00
Toad King e1110718f2 only for Wii, not GC 2012-06-30 04:36:36 +02:00
Toad King b8ae9f3c8a L2Enhance() 2012-06-30 04:36:36 +02:00
Toad King 7666d376ab some message display changes 2012-06-29 21:53:00 -04:00
Themaister c7179404e0 Fix embarassing memory leak. *hides* 2012-06-30 01:18:08 +02:00
Toad King 0d4c14c6d6 Merge branch 'master' of git://github.com/Themaister/RetroArch 2012-06-29 19:14:29 -04:00
Toad King 8f5300072d only for Wii, not GC 2012-06-29 19:10:41 -04:00
Toad King 7156c47054 L2Enhance() 2012-06-29 18:42:42 -04:00
Twinaphex 81c35236fa (Wii) Set audiorate control delta to 0.004 2012-06-29 21:39:28 +02:00
Twinaphex 824f62fd8e (Wii) Use audio rate control - seems to eliminate frame skipping
problem for now
2012-06-29 21:06:38 +02:00
Twinaphex 21241ddbf0 Merge git://github.com/ToadKing/RetroArch-Rpi
Conflicts:
	console/console_settings.h
	wii/frontend/rgui.c
2012-06-29 17:18:13 +02:00
Twinaphex 1a760f2448 (PS3) Add ROM loading message 2012-06-29 16:47:02 +02:00
Twinaphex 2832ca0fb1 (PS3) Change background to accomodate for message queue buffer 2012-06-29 16:29:52 +02:00
Twinaphex b273659975 (PS3) OSD message now at same position both ingame and in menu 2012-06-29 16:02:31 +02:00
Twinaphex 9c03883149 (PS3) More aesthetic improvements 2012-06-29 15:43:09 +02:00
Twinaphex bac23cc7de (PS3) Aesthetic improvements 2012-06-29 14:40:50 +02:00
Twinaphex 5ea167a2c3 (PS3) Beginning ingame menu refactor 2012-06-29 13:30:25 +02:00
Themaister 30fd6ddca0 Merge branch 'master' of github.com:Themaister/RetroArch 2012-06-29 13:35:14 +02:00
Twinaphex df306320e5 (PS3) Reuse some settings code in ingame menu - cut down on loc 2012-06-29 12:44:11 +02:00
Twinaphex e773381f4c (PS3) Cut down on loc 2012-06-29 12:27:17 +02:00
Twinaphex 1d2f7634d7 (PS3) Move filebrowser menu stack push to menu_init so it isn't
being done everytime we go back from ingame to menu
2012-06-29 11:56:58 +02:00
Twinaphex 62925dcda1 (PS3) refactor messy set_initial_dir_tmpbrowser logic 2012-06-29 11:44:50 +02:00
Twinaphex 511fe80b9a (PS3) Fix typos in ingame menu caused by regex replace 2012-06-29 11:15:37 +02:00
Twinaphex e764fbb08d (360/PS3) Fix regression - libretro path is no longer being
cleared after first boot
2012-06-29 11:09:01 +02:00
Themaister 83da5f2035 DRIVER_X11 appears to be defined on OSX. 2012-06-29 09:48:37 +02:00
Toad King 43ead728b3 Merge branch 'master' of git://github.com/Themaister/RetroArch 2012-06-28 21:14:09 -04:00
Toad King 1db8efedbc (Wii) message box fixes
Have ROM error boxes display for a short period and not reset the file browser
2012-06-28 21:13:45 -04:00
TwinAphex51224 f9f564c6c9 (360) Fix unused variable warning 2012-06-29 00:38:26 +02:00
Twinaphex 86df47497e (PS3/360) Create rarch_configure_libretro_core for console ports 2012-06-29 00:24:10 +02:00
Twinaphex a8c3b9c8ee (PS3) Cut down on memory usage menus 2012-06-28 22:55:55 +02:00
Twinaphex 5ad0a94b73 (PS3) remove static menus 2012-06-28 22:19:03 +02:00
Twinaphex e1e7faacc6 (PS3) Refactor menu - add menu_stack_refresh 2012-06-28 21:49:40 +02:00
Twinaphex 74e15d89f3 (PS3) Remove pointer(s) to items_generalsettings in menu struct 2012-06-28 21:29:12 +02:00
Twinaphex 98b1ecab58 (PS3) Fix: don't render filebrowser in ingame menu 2012-06-28 21:19:23 +02:00
Twinaphex 6a5ddee67e (PS3) Menu stack code cleanups 2012-06-28 21:03:14 +02:00
TwinAphex51224 4293872f5c (360) Move xdk360_input_loop to menu.cpp 2012-06-28 18:54:06 +02:00
Twinaphex c0f10f41ed (Console) rarch_startup returns bool value now - indicating
ROM loading error/success
2012-06-28 18:33:40 +02:00
Themaister c440c7a50a Add support for RETRO_DEVICE_ANALOG. 2012-06-28 18:32:06 +02:00
Twinaphex 32383f168b (Console) Attempt to trap ROM loading errors 2012-06-28 18:10:04 +02:00
Twinaphex f0026384d3 (Console) Rename console_ext.c to retroarch_console.c 2012-06-28 17:52:51 +02:00
Twinaphex ed57cc81f9 (PS3/360) Add load_shader wrapper function for consoles 2012-06-28 17:35:20 +02:00
Twinaphex 2865fc1fc9 (PS3) Menu refactor - get rid of hardcoded waitstates for every action 2012-06-28 17:11:22 +02:00
Twinaphex 968d8b300a (PS3) More shoddy menu code refactored 2012-06-28 14:10:05 +02:00
Twinaphex 56a05bdbee (PS3) Refactor sucky menu code - beginning with input 2012-06-28 13:11:07 +02:00
Twinaphex f6b1d8cfca (Wii) Use rarch_settings_msg for platform-agnostic string representation
in RetroArch console ports
2012-06-28 12:05:36 +02:00
Themaister 41868ac1da Hoist out #ifdefs from gfx_ctx_get_window_size (SDL). 2012-06-27 20:03:36 +02:00
Toad King 470dda1e3c (WII) add message box when loading a rom (feedback when loading large roms)
fix file browser list stretching past the bottom of the screen
2012-06-27 02:30:14 -04:00
Toad King 6b28b48c37 (WII) compile fix 2012-06-27 02:26:56 -04:00
Toad King bae4f75d2c Merge branch 'master' of git://github.com/Themaister/RetroArch 2012-06-27 00:57:59 -04:00
Toad King 0eac1aea7d .gitignore 2012-06-27 00:56:56 -04:00
Toad King c32b5985b8 better sdl_x11 detection, don't resize on non-x11 video 2012-06-27 00:54:42 -04:00
Toad King 0a64640303 don't error on no window manager SDL video 2012-06-27 00:44:20 -04:00
Toad King 5713f88f11 (WII) enable file browser loop-around 2012-06-27 00:43:25 -04:00
Twinaphex 41259ad334 (Wii) Add File Browser string on top - move filebrowser entries
down
2012-06-27 00:17:02 +02:00
Themaister b3c270d3f3 Add rate control interface for Wii audio. 2012-06-26 20:11:52 +02:00
Twinaphex ad8cc4a37e (Wii) Support video frame duping - for Gambatte 2012-06-26 19:04:37 +02:00
Twinaphex d97465d16d (Wii) Removed freetype dependency 2012-06-26 18:58:41 +02:00
Twinaphex 2133691d9d (PS3) Add CELL_MK_DIR define to Salamander makefile 2012-06-26 17:19:59 +02:00
Hans-Kristian Arntzen 921a91210f Merge pull request #16 from ToadKing/master
Optimizations and fixups for Wii port.
2012-06-25 13:48:22 -07:00
Toad King 25a55c1565 audio fix 2012-06-25 16:46:09 -04:00
Toad King 6b90c32d3f audio fixes 2012-06-25 16:33:40 -04:00
Toad King 077ebdafa7 Merge branch 'master' of github.com:ToadKing/RetroArch-Rpi 2012-06-25 15:34:48 -04:00
Toad King 96cf65f70e Merge branch 'master' of http://github.com/Themaister/RetroArch 2012-06-25 15:31:50 -04:00
Toad King ebf7259128 Merge branch 'master' of http://github.com/Themaister/RetroArch 2012-06-25 15:27:55 -04:00
Toad King 49c9e766af Wii changes 2012-06-25 15:27:41 -04:00
Twinaphex adecf622eb (Wii) Updated links to RGUI 2012-06-25 21:20:56 +02:00
TwinAphex51224 0ba4dd8eae (Xbox 1) Links 2012-06-25 00:13:24 +02:00
TwinAphex51224 2e18773ad7 (Xbox 1) Use Sleep for Xbox 1 as well 2012-06-25 00:03:56 +02:00
TwinAphex51224 1654c5b7d1 (Xbox 1) Down to 3 linking errors 2012-06-24 23:59:16 +02:00
TwinAphex51224 0faac2faf9 (Xbox 1) Don't include in the Xbox 360 drivers 2012-06-24 23:31:36 +02:00
TwinAphex51224 f3cbdb2522 (Xbox 1) Add __STDC_CONSTANT_MACROS to preprocessor defines 2012-06-24 23:28:18 +02:00
TwinAphex51224 4de1348dc2 (Xbox 1) Add fprintf pre-appending to Xbox 1 logger_override 2012-06-24 23:26:04 +02:00
TwinAphex51224 675b033eba (Xbox 1) Use xtl.h for Xbox 1 too 2012-06-24 23:22:46 +02:00
TwinAphex51224 fd31071451 (Xbox 1) Add _XBOX define rule for custom stdint.h 2012-06-24 23:19:30 +02:00
TwinAphex51224 38abfd9ed1 (Xbox 1) Include 'include' dir for Xbox 1 so xtl.h is accessible 2012-06-24 23:14:49 +02:00
TwinAphex51224 0ef1e9e4ab (Xbox 1) Fixups to PACKAGE_VERSION define / settings function 2012-06-24 22:54:43 +02:00
TwinAphex51224 b5acc3863e (Xbox 1) Variadic macros workaround for VC 7.1 2012-06-24 22:47:51 +02:00
TwinAphex51224 31bab3015a (Xbox1) Non-hardcoded include path 2012-06-24 22:08:01 +02:00
TwinAphex51224 2b1a4e22ca (Xbox 1) stdint.h inclusion in a clean way 2012-06-24 22:04:20 +02:00
Twinaphex 6ba868a8ff Fix rarch_stdint.h reference in fifo_buffer.c 2012-06-24 21:48:10 +02:00
TwinAphex51224 e4e7216b90 Revert rarch_stdint.h references 2012-06-24 21:55:36 +02:00
TwinAphex51224 d5bb5fd7af (Xbox 1)) Changes 2012-06-24 21:25:11 +02:00
TwinAphex51224 f201819ce0 (360) Introduce new 360 define - _XBOX360 - for differentating between
Xbox 1 and 360
2012-06-24 21:13:56 +02:00
TwinAphex51224 abca1fca60 (Xbox 1) Add initial Xbox 1 solution + cover stdint.h missing in
pre-MSVC 2010
2012-06-24 21:09:52 +02:00
Twinaphex 3cd656313b (PS3) Filebrowser - directories are colored green 2012-06-24 17:55:31 +02:00
Squarepusher 15032d065f Update master 2012-06-24 14:38:06 +03:00
Twinaphex 08e50935ca (PS3) Remove some frontend/shared.h includes 2012-06-24 13:23:57 +02:00
Twinaphex 3e4f09d66d (Wii) Move RGUI code over to wii/frontend 2012-06-24 13:20:55 +02:00
Twinaphex a62893610e (PS3) don't use Griffin override for audio_flush anymore, but
do keep optimizations when we aren't using DSP audio plugins
2012-06-24 13:11:10 +02:00
TwinAphex51224 82b18e7cad (360) cleanup font code (again) 2012-06-24 12:03:46 +02:00
TwinAphex51224 33340aa870 (360) font code cleanup 2012-06-24 11:41:12 +02:00
TwinAphex51224 7b84d5c3d7 (360) Move font files 2012-06-24 11:33:25 +02:00
TwinAphex51224 1c495f1f94 (360) Refactor font code 2012-06-24 11:20:52 +02:00
TwinAphex51224 ca52859b7a (360) Cleanup reinterpret_cast party 2012-06-24 09:39:12 +02:00
TwinAphex51224 9c0cab70d6 (360) Small cleanups 2012-06-24 08:57:48 +02:00
Toad King ad345918dd compile fix 2012-06-23 20:55:26 -04:00
Themaister e5b3a61f9f Replace use of unsafe strtok() with strtok_r.
Implement compatibility for strtok_r() on Win32.
2012-06-24 02:37:19 +02:00
TwinAphex51224 35f1cfa7b9 (360) Simplified xd360_console_format 2012-06-23 23:47:16 +02:00
TwinAphex51224 a19e359362 (360) Some refactoring in fonts.cpp 2012-06-23 23:39:13 +02:00
TwinAphex51224 d6fedb0522 (360) Create rarch_settings_create_menu_item_label_w 2012-06-23 22:55:46 +02:00
Twinaphex 347e03b767 (PS3) Small cleanups 2012-06-23 22:36:35 +02:00
Twinaphex 0f7c24fd49 (360/PS3) Get rid of XBOX ifdef for rarch_convert_char_to_wchar 2012-06-23 22:09:53 +02:00
TwinAphex51224 9e76591e11 Portable convert_char_to_wchar function 2012-06-23 22:13:50 +02:00
Twinaphex 3cec90b1ed Relocate MSVC solutions / vcxprojs into single directory 2012-06-23 21:39:24 +02:00
TwinAphex51224 c58d18b1c1 (360/Wii) Move to frontend directories 2012-06-23 21:06:38 +02:00
TwinAphex51224 c38df90f20 (360) Works wit new dir_list code + fixes Gambatte (dupe frames) 2012-06-23 19:58:30 +02:00
Twinaphex 322473f348 (Salamander) Fixes for new dir_list_new code 2012-06-23 19:17:41 +02:00
Twinaphex 5b5ba8ac58 (PS3) Works with new dir_list code 2012-06-23 18:22:48 +02:00
Themaister 9f60e48a98 Redefine behavior of NULL in video_frame(). 2012-06-23 18:01:01 +02:00
Themaister 83c60aa94e Add some some FIXMEs for broken code. 2012-06-23 16:10:56 +02:00
Themaister 14f7f641f3 Refactor directory listing to greatly optimize sorting. 2012-06-23 15:32:46 +02:00
Toad King ea806a6203 Merge branch 'master' of http://github.com/Themaister/RetroArch 2012-06-22 21:11:44 -04:00
Themaister 031e37db9c Should clarify error message when pkg-config is missing. 2012-06-23 00:00:23 +02:00
Themaister 084bdcef97 Style nitting. 2012-06-22 19:17:28 +02:00
Twinaphex 7d60c06679 (360) Moved libxenon files to 360/ directory 2012-06-22 18:58:19 +02:00
Themaister 951721d2ab Clean up ifdef properly this time ... 2012-06-22 19:03:46 +02:00
TwinAphex51224 4711b6c7e3 (360) Move frontend files to frontend/ directory 2012-06-22 07:38:53 +02:00
TwinAphex51224 32287f0f41 (360) Set file extensions per browser session 2012-06-22 07:30:26 +02:00
TwinAphex51224 99679001cb (360) Use rarch_input_get_default_keybind_name 2012-06-22 07:20:58 +02:00
Twinaphex ce0422c780 Revert "Kill useless ifdef." - this breaks PS3/360 port -
so moving it back

This reverts commit f9c347cb0a.
2012-06-20 19:03:52 +02:00
Themaister f9c347cb0a Kill useless ifdef. 2012-06-20 09:53:32 +02:00
Twinaphex 47b3453c29 (PS3) RetroArch compiles as a static library - and gets linked in
with the rest of the package - README for compilation instructions
updated
2012-06-20 08:25:23 +02:00
Twinaphex eae8ac714f (PS3/360) Create rarch_input_controls_set_default and use it 2012-06-20 07:52:05 +02:00
Twinaphex 8bd85e1bfe (PS3/360) Get rid of Griffin override for rarch_render_cached_frame 2012-06-20 07:39:20 +02:00
Twinaphex 0ff97b4213 (PS3/360) Quick fix 2012-06-20 07:30:31 +02:00
Twinaphex 0c7af232cc (Android) Have Android port use null video/input/audio drivers
for now - also changed some things in Griffin so things work again
after null drivers commit
2012-06-20 06:39:52 +02:00
Themaister acda9dea35 Forgot to commit null drivers ... 2012-06-20 00:44:40 +02:00
Themaister fd017b8f57 Add NULL drivers. 2012-06-20 00:43:41 +02:00
Squarepusher e6ba30f722 Update master 2012-06-20 00:57:46 +03:00
Themaister 613c86be68 Drop useless gl error check. 2012-06-19 23:49:10 +02:00
Twinaphex 50a538b120 (Android) JNI Makefile for retroarch - don't define HAVE_OPENGL*
right now
2012-06-19 23:38:51 +02:00
Twinaphex 4dbfbbfe7f (Android) Preliminary NDK Makefile for compiling retroarch as a
shared library - we will need a separate gles driver
2012-06-19 23:34:19 +02:00
Toad King 91e7855bd6 only detect CTRL+C for SIGINT, not C+CTRL 2012-06-19 15:26:09 -04:00
Hans-Kristian Arntzen ca552db8d2 Merge pull request #14 from ToadKing/master
Raspberry Pi support for RetroArch.
2012-06-19 12:04:08 -07:00
Toad King c5a2fbc6e6 EOL fixes 2012-06-19 15:01:34 -04:00
Toad King 92f345cb5e AUTHORS 2012-06-19 14:55:06 -04:00
Toad King ed14c8c6b8 misc. fixes
add ctrl+c handler to linuxraw_input
2012-06-19 14:49:38 -04:00
Toad King 3e1b621e7a signal -> sigaction 2012-06-19 14:14:00 -04:00
Toad King 0337e4fc0f move SIGINT and SIGTERM handlers to video driver 2012-06-19 13:40:49 -04:00
Toad King 55b7267694 tabs -> 3 spaces 2012-06-19 12:44:10 -04:00
Toad King 8e360138d3 detect Raspberry Pi through bcm_host library 2012-06-19 12:42:32 -04:00
Toad King 9a35040fe6 try to restore keyboard mode on program crashes
use keycode defines instead of numbers
2012-06-19 12:42:08 -04:00
Toad King f21371f166 reuse font code for Raspberry Pi graphics core
also move bcm_host_init() to graphics core
2012-06-19 12:41:06 -04:00
Twinaphex 0aa3ad0ce2 (Android) Small tweaks 2012-06-19 09:55:02 +02:00
Twinaphex 9697937130 (Android) We shouldn't be including a bin directory 2012-06-19 09:10:49 +02:00
Twinaphex 080a7ea96f (Android) Add resource XML files for filebrowser 2012-06-19 09:09:30 +02:00
Twinaphex bc36993f8b (Android) Rudimentary filebrowser code - copy/paste of a copy/paste
from a tutorial for now - we'll slim it down and extend it later
2012-06-19 09:08:07 +02:00
Twinaphex b07f73d302 (Android) Add missing rombrowser.java 2012-06-19 07:50:04 +02:00
Twinaphex 9404548080 Some menu navigation now possible - can go from main screen to
'open' (rom browser screen - stub for now) and back
2012-06-19 07:48:13 +02:00
Twinaphex b429637d1c (Wii) Makefile fixes to wii 2012-06-19 06:44:36 +02:00
Twinaphex 733c3f25c7 (PS3) Add preliminary USB/Bluetooth mouse support 2012-06-19 05:10:42 +02:00
TwinAphex51224 1e6bcb6b7f (360) Updated to work with new code refactorings 2012-06-19 04:18:41 +02:00
Twinaphex 8e2c3717de (PS3) menu code/file browser refactoring 2012-06-19 03:44:17 +02:00
TwinAphex51224 3eddb91750 (360) Updated to work with filebrowser code changes 2012-06-19 02:05:02 +02:00
Twinaphex cc993e341f (PS3) Cleanup filebrowser code 2012-06-19 01:48:46 +02:00
Toad King 4f3e54529b Merge branch 'master' of http://github.com/Themaister/RetroArch
Conflicts:
	qb/config.libs.sh
2012-06-18 18:50:22 -04:00
Twinaphex 958b869c81 (PS3/360) Directories are now correctly placed before files 2012-06-19 00:11:51 +02:00
Themaister f0fab577e7 Take the slow but more correct path for directory sorting. 2012-06-19 00:16:59 +02:00
Themaister 7d05d051b4 Sort directories before files. 2012-06-19 00:01:13 +02:00
Twinaphex d8b9d4b4f6 (PS3) Got rid of cell_fs includes 2012-06-18 23:43:21 +02:00
Themaister bebc4462a6 Should fix dir_list_new on 360. 2012-06-18 23:43:24 +02:00
Twinaphex 75f1cef303 (PS3) Directory / extension filtering works on PS3 now 2012-06-18 23:29:43 +02:00
Twinaphex 2e94fdca36 (PS3/360) Made libretro_mgmt.c portable 2012-06-18 23:27:18 +02:00
Themaister e252ab8f61 Optimize dir reading on Unix. 2012-06-18 23:27:49 +02:00
Twinaphex f81c9c3166 (PS3) use stat for PS3 - get rid of cellFsStat 2012-06-18 22:59:33 +02:00
TwinAphex51224 d300656990 (Filebrowser) nit 2012-06-18 21:06:01 +02:00
Twinaphex 72985dd4d6 (Filebrowser) Get rid of platform-specific ifdefs 2012-06-18 20:44:21 +02:00
Twinaphex f335ee2dab (Filebrowser) Remove duplicate code 2012-06-18 20:37:17 +02:00
Themaister 84cf67525a Use strcasecmp() for sorting. 2012-06-18 20:37:35 +02:00
Themaister 214f8563c4 Fix bug when ext is NULL in dir_list_new. 2012-06-18 10:02:00 +02:00
TwinAphex51224 e760807d47 (360) Add filebrowser free to menu_deinit (now renamed menu_free) 2012-06-18 06:22:26 +02:00
Twinaphex 54273d94b1 (PS3) Deallocate filebrowser code at shutdown 2012-06-18 06:06:49 +02:00
TwinAphex51224 21a344e61b (360) Works now too with refactored filebrowser code 2012-06-18 06:12:37 +02:00
Twinaphex 805ca7e027 (PS3) More refactoring of filebrowser - should be mostly platform-
agnostic now
2012-06-18 05:31:43 +02:00
TwinAphex51224 0b84f1744e (360) Updated for filebrowser changes 2012-06-18 02:27:54 +02:00
Twinaphex 49535b3a54 (PS3) Refactor of filebrowser 2012-06-18 02:07:19 +02:00
Themaister a1f5715431 Add sorting and size query to dir_list_new. 2012-06-18 01:11:03 +02:00
Themaister e455e52e06 MAJOR refactor of dir_list_new. 2012-06-18 00:34:47 +02:00
Themaister e71115151b Add libpng screenshot support. 2012-06-17 13:11:39 +02:00
Twinaphex 999ece77af (Android) Most Action Bar actions now part of popup menu 2012-06-17 05:53:59 +02:00
Twinaphex 93d2e69773 (Android) Upload drawable-xhdpi 2012-06-17 04:41:00 +02:00
Twinaphex d843dacfd4 (Android) Added placeholder ActionBar 2012-06-17 03:36:59 +02:00
Twinaphex 13839bc511 (Android) Add initial audio driver 2012-06-17 00:48:07 +02:00
Themaister 042eb51d74 Don't automatically add -O3 to Makefile.win. 2012-06-17 00:20:12 +02:00
Themaister 7fcfbecf0f Add DEBUG=1 to Makefile.win. 2012-06-17 00:18:23 +02:00
Twinaphex 3ad9c7ba84 (Android) OpenGL ES 2.0 skeleton driver - shows a triangle right now 2012-06-16 22:47:16 +02:00
Twinaphex f432463aed (Android) Replace icons 2012-06-16 22:07:29 +02:00
Twinaphex b3e74aa189 (Android) Start skeleton app dir 2012-06-16 22:03:08 +02:00
Themaister 53f645ed0b Add SET_PIXEL_FORMAT environ. 2012-06-16 15:07:31 +02:00
Toad King 0ca21ef321 ignore extended scancodes 2012-06-16 03:58:21 -04:00
Toad King e1b58ca683 calculate aspect ratio better 2012-06-14 03:04:17 -04:00
Toad King 7986e01cbf Merge branch 'master' of http://github.com/Themaister/RetroArch
Conflicts:
	qb/config.libs.sh
2012-06-14 03:03:12 -04:00
tukuyomi ae33d8c899 Refactored quickbuild. 2012-06-13 20:46:56 +02:00
Themaister 4ee0bde039 Add RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY. 2012-06-12 00:28:34 +02:00
Themaister 649dd03fce Fix C++ build. 2012-06-11 07:56:25 +02:00
Themaister e4556ab73c Update input indices to 8. 2012-06-10 12:00:25 +02:00
Themaister 43be487a39 Update external GFX plugin interface. 2012-06-10 11:46:24 +02:00
Themaister a0b9e6b55e Fix screenshot crashes. 2012-06-10 11:10:14 +02:00
Themaister 0668fa4062 Change default screenshot key to F8. 2012-06-10 10:48:44 +02:00
Themaister e32f879179 Fix C++ build. 2012-06-10 10:44:08 +02:00
Twinaphex df6a9a0f85 Set up dir_list_new so that we can use it for the 360/PS3 filebrowser 2012-06-10 03:50:06 +02:00
Twinaphex 3a01bad0ec (PS3/360) Slimmed down filebrowser - still too big though 2012-06-10 01:30:53 +02:00
Themaister 9e650a9540 Add some clarifying comments on screenshots. 2012-06-09 10:29:50 +02:00
Themaister 553b1d640a Ifdef for HAVE_RGL. 2012-06-09 00:24:43 +02:00
Themaister 19f0c04021 Add screenshot support from backbuffer. 2012-06-08 22:39:18 +02:00
Toad King 217b0157f3 fixes for new Raspberry Pi SDK 2012-06-07 20:24:06 -04:00
Toad King 88144ba6d2 Merge branch 'master' of http://github.com/Themaister/RetroArch
Conflicts:
	qb/config.libs.sh
2012-06-07 20:22:50 -04:00
TwinAphex51224 f088ba7bb4 (360) SD menu placement fixed 2012-06-05 21:01:58 +02:00
Twinaphex cc1d5600b8 Set Makefile for PS3 RGL back to SNC as default compiler 2012-06-05 19:37:05 +02:00
Twinaphex 7b511f064a (PS3) Removed ps3_video_psgl.h 2012-06-05 19:35:36 +02:00
Twinaphex ec63eb6434 Refactored some code - added 5x scale 2012-06-05 18:11:42 +02:00
Themaister 33271647af Update joyconfig for l2/r2/l3/r3. 2012-06-05 00:32:44 +02:00
Themaister bc5d73dbdd Update to 0.9.6. 2012-06-03 22:09:04 +02:00
Twinaphex c39cc503df Updated common-shaders link 2012-06-03 21:40:28 +02:00
Themaister 5c564723df Update libretro link. 2012-06-03 21:40:10 +02:00
Themaister b6ca3e0e33 More verbose logging on auto save states. 2012-06-02 22:32:27 +02:00
Themaister 1b02235b8f Change "ssnes" to "retroarch". 2012-06-02 22:19:42 +02:00
tukuyomi d7c16c7b30 Greatly clean up quickbuild's handling of parameters. 2012-06-02 22:11:39 +02:00
Themaister 7a4ef581a4 Add auto save state on end. 2012-06-02 21:34:26 +02:00
Twinaphex ddb03333e3 (Rzlib) Included uncompress 2012-06-02 14:37:10 +02:00
Themaister e00edebc98 Clarify where *_LEVEL should be called. 2012-06-01 16:52:05 +02:00
Themaister b2387e06bc Add RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL. 2012-06-01 16:50:38 +02:00
Themaister b97644f52f Make sure that network is inited. 2012-06-01 15:20:53 +02:00
Themaister a0ec6da2a8 Allow sending UDP commands from RetroArch. 2012-06-01 15:15:06 +02:00
Themaister 02c77d3685 Drop useless (void). 2012-06-01 14:22:13 +02:00
Themaister 2c674ef8d1 Correctly walk the addrinfo tree to determine all addresses. 2012-05-31 20:34:33 +02:00
Toad King 9340830991 Merge branch 'master' of http://github.com/Themaister/RetroArch 2012-05-31 10:55:06 -04:00
Toad King 8833bd0fd1 code cleanup 2012-05-31 10:54:50 -04:00
TwinAphex51224 e9cf861f7f (360) fix 360 build 2012-05-30 17:24:02 +02:00
Twinaphex 3e6a10ffb6 (PS3) Add some Griffin overrides 2012-05-30 17:03:23 +02:00
Themaister 3902bc19b3 Fix strange newlines. 2012-05-30 16:55:23 +02:00
Themaister 10b0c2ee94 Merge branch 'master' of github.com:Themaister/RetroArch 2012-05-30 16:53:34 +02:00
Twinaphex 3fd10a723d (PS3) Cleanups 2012-05-30 16:30:25 +02:00
Themaister f600bf437c Move message queue out of RetroArch core's control. 2012-05-30 01:20:47 +02:00
Twinaphex 2f8c4c10a9 (PS3) Fix reentrant ROM loading - input wasn't being brought up
again after deiniting input - will just comment out cellPadEnd
for now
2012-05-30 01:19:25 +02:00
TwinAphex51224 502fd8ff54 (360) Use S_START_RARCH setting 2012-05-29 23:00:38 +02:00
TwinAphex51224 6222329a7b (360) Fixed control strings in Controls menu 2012-05-29 22:52:08 +02:00
Twinaphex 8e37cd4d89 (360/PS3) Make Quick Menu enums universal for console ports 2012-05-29 22:36:17 +02:00
Twinaphex 369e99efa8 (PS3) Use rarch_settings_create_menu_item_label in PS3 port now too 2012-05-29 22:22:47 +02:00
TwinAphex51224 841304619d (360) Add LBL_LOAD_STATE_SLOT and LBL_SAVE_STATE_SLOT 2012-05-29 22:12:28 +02:00
TwinAphex51224 fcdeed2a82 (RARCH_CONSOLE) Non-unicode version of rarch_settings_create_menu_item_label
if _XBOX is undefined
2012-05-29 21:59:03 +02:00
TwinAphex51224 074ff4b2fc (360) Add S_LBL_RARCH_VERSION 2012-05-29 21:47:53 +02:00
TwinAphex51224 5f0991c052 (360) Can increment/decrement save state slots now in Quick Menu 2012-05-29 21:40:45 +02:00
TwinAphex51224 321697f029 (360) Add changing of rotation / aspect ratio with left/right
D-pad buttons
2012-05-29 21:29:32 +02:00
TwinAphex51224 37140c1cd9 (360) Use rarch_settings_set_menu_item_label more 2012-05-29 20:34:06 +02:00
TwinAphex51224 346745e24b (360) Use rarch_settings_create_menu_item_label 2012-05-29 20:01:29 +02:00
TwinAphex51224 4e6b50b8ee (360) Fixed placement of some rarch_convert_char_to_wchar calls 2012-05-29 19:54:05 +02:00
TwinAphex51224 6c7e3ec571 (360) char to wchar helper revisions - now uses a wchar_t buffer
in menu.cpp - buffer is passed to helper functions
2012-05-29 19:51:35 +02:00
TwinAphex51224 67ffd5226a (360) Properly implement OnControlNavigate 2012-05-29 19:00:48 +02:00
Twinaphex 7ce9e4f9b0 (PS3) Use S_ASPECT_RATIO_DECREMENT / S_ASPECT_RATIO_INCREMENT 2012-05-29 17:55:45 +02:00
TwinAphex51224 f7bf8e9725 (360) Add S_ASPECT_RATIO_INCREMENT and S_ASPECT_RATIO_DECREMENT 2012-05-29 18:03:58 +02:00
Themaister ef3adc7c42 Not supposed to declare variables. 2012-05-29 17:45:32 +02:00
TwinAphex51224 0c4f14a14f (360) message queue stuff works properly now before Rarch is inited 2012-05-29 17:44:07 +02:00
Twinaphex 27aa887fcb (PS3) gl_restart works properly now 2012-05-29 17:20:23 +02:00
Twinaphex 8f6c4f30c3 (PS3) Use rarch_settings_msg 2012-05-29 16:51:08 +02:00
TwinAphex51224 1597c5a2cf (360) Abstracted message queue push code for generating messages -
seems to only work when Rarch is initialized - if not, it will
keep returning the first message that was pushed in the queue.
2012-05-29 16:45:37 +02:00
Twinaphex 68af1626d9 Indentation fixes 2012-05-29 15:25:39 +02:00
Twinaphex b995f8da9f (gl.c) Turned some functions inline 2012-05-29 04:53:42 +02:00
TwinAphex51224 0473785f65 (360) Small cleanups 2012-05-29 04:54:45 +02:00
TwinAphex51224 0555a703a7 (360) Cleanups 2012-05-29 04:39:54 +02:00
Twinaphex 7de2e41c32 (PS3) Add S_QUIT 2012-05-29 04:16:38 +02:00
Twinaphex 9edeec41b7 (PS3) cleanups to menu code, fixes 2012-05-29 04:05:16 +02:00
TwinAphex51224 ca2e20be84 (360) Use S_REWIND 2012-05-29 03:49:19 +02:00
Twinaphex b0cf650e97 Implement S_REWIND 2012-05-29 03:35:59 +02:00
Twinaphex 4f662ff0e2 (PS3) Implement S_RETURN_TO_LAUNCHER 2012-05-29 02:48:13 +02:00
Twinaphex 4bb5066691 (PS3) Add S_RETURN_TO_MENU 2012-05-29 02:33:27 +02:00
TwinAphex51224 487856c2c3 (360) Indenting cleanups 2012-05-29 02:33:00 +02:00
Twinaphex 28e10c9ad4 (PS3) Implemented S_RETURN_TO_DASHBOARD 2012-05-29 02:08:54 +02:00
TwinAphex51224 396d57ae77 (360) Implemented S_RETURN_TO_DASHBOARD 2012-05-29 02:17:35 +02:00
Twinaphex 60165d4cd7 (PS3) Use rarch_settings_change for replacing return_to_game
static function for PS3 too
2012-05-29 01:57:33 +02:00
TwinAphex51224 87d04b4bbd (360) Replace static function return_to_game() with calls to new
rarch_settings_change
2012-05-29 02:05:23 +02:00
Twinaphex e49e23687a (RARCH_CONSOLE) Expand console_settings.c some more 2012-05-29 01:37:09 +02:00
Twinaphex e0b85596f6 (RARCH_CONSOLE) Add console_settings.c 2012-05-29 01:27:45 +02:00
TwinAphex51224 294e922ecc (360) Small fix 2012-05-29 00:08:58 +02:00
TwinAphex51224 f6f101b6ab (360) rarch_convert_char_to_wchar - use malloc 2012-05-29 00:06:43 +02:00
Twinaphex a133d2ebb5 (PS3) Menu speed tweaks 2012-05-28 23:41:06 +02:00
Themaister 6d1198bf55 Make rarch_init_msg_queue() public. 2012-05-28 23:30:29 +02:00
Twinaphex a171f4c9fd (RARCH_CONSOLE) We want to init the message queue way before RetroArch
actually starts on consoles - therefore we add this ifdef -
beats having to add this for every console port
2012-05-28 23:14:18 +02:00
TwinAphex51224 6a48f1e187 (360) Add menu toggle (between HD and SD) and add info message
enable/disable option
2012-05-28 23:19:40 +02:00
Twinaphex 705a0dd62e (PS3) Add info message enable/disable option 2012-05-28 22:43:08 +02:00
Twinaphex 75c1e56edf (PS3) OSD messages using frame_count used in menu now - same
as on 360
2012-05-28 22:18:50 +02:00
TwinAphex51224 82b7d4d046 (360) remove g_first_msg 2012-05-28 21:46:32 +02:00
Twinaphex 472ac47344 (360/PS3) use rarch_config_load for PS3 and 360 2012-05-28 21:21:03 +02:00
TwinAphex51224 148526a638 (360) Small build fix 2012-05-28 21:02:43 +02:00
Twinaphex 3e7b2b8fd4 (PS3/360) Refactor rarch_manage_libretro_install 2012-05-28 20:07:08 +02:00
Twinaphex cf77233896 Libretro management refactor 2012-05-28 19:39:31 +02:00
Twinaphex b43d4a27b9 (PS3/360) Add header file as well + cleanup 2012-05-28 18:58:34 +02:00
Twinaphex 4a7f10c94a (PS3/360) Split up libretro management code into file libretro_mgmt.c 2012-05-28 18:50:30 +02:00
Twinaphex 10ad19bf76 (360/PS3) rarch_manage_libretro_set_first_file - no more dependency on
HAVE_CONFIGFILE
2012-05-28 18:33:25 +02:00
Twinaphex eca9b3ddc9 (360/PS3) 360 and PS3 both use rarch_manage_libretro_set_first_file
now
2012-05-28 18:25:01 +02:00
Twinaphex 593376b9aa (360/PS3) Both ports use rarch_config_save now for saving
settings to config file
2012-05-28 17:49:31 +02:00
Twinaphex 944ddc589b (360/PS3) Use PATH_MAX instead of MAX_PATH_LENGTH 2012-05-28 17:34:58 +02:00
Twinaphex c4e0e45722 (PS3/RARCH_CONSOLE) Replace strncpys with strlcpys 2012-05-28 17:28:29 +02:00
Twinaphex 15b7e0fafc (360/PS3) Use rarch_create_default_config_file 2012-05-28 16:50:18 +02:00
TwinAphex51224 c9ce831e22 (360) Inits second shader in FBO mode on startup now 2012-05-28 15:53:04 +02:00
TwinAphex51224 c1143f9e2e (360) Restore xdk360_set_nonblock_state 2012-05-28 15:47:27 +02:00
TwinAphex51224 8889af2d19 (360) Starts up with default generated config file again 2012-05-28 15:43:56 +02:00
Themaister 79d508b05a Fix crash when only scale_type_x/y were used. 2012-05-28 14:05:34 +02:00
TwinAphex51224 70dbebcb5e (360) Clean up font code + remove some Win32-isms 2012-05-28 14:05:28 +02:00
Toad King 619db3a047 change default font paths to point to Debian font location 2012-05-28 07:53:39 -04:00
Toad King eaff0d0f38 Added messages support to the Raspberry Pi video driver 2012-05-28 06:33:13 -04:00
Toad King ec87f858f2 Merge branch 'master' of http://github.com/Themaister/RetroArch
Conflicts:
	qb/config.libs.sh
2012-05-28 02:27:25 -04:00
TwinAphex51224 232cf0d122 (360) Only print char * messages, not wchar 2012-05-28 05:42:00 +02:00
Twinaphex 663bab2c14 (Griffin) ifdef include config_file.c with ifdef HAVE_CONFIGFILE 2012-05-28 05:21:19 +02:00
Twinaphex dac3713454 (Griffin) Ifdef changes / annotations 2012-05-28 05:19:04 +02:00
Twinaphex c5735e0aec (360/Wii/PS3) Abstracted input code 2012-05-28 05:06:25 +02:00
Twinaphex 663268be24 (Wii) Remove some obsolete functions 2012-05-28 04:47:29 +02:00
Twinaphex 7dccb123f3 (PS3) Menu speed duration changed to one speed mode 2012-05-28 03:53:25 +02:00
Twinaphex ae4b8563c8 (PS3) Use identical TIMER macros as 360 2012-05-28 03:46:44 +02:00
TwinAphex51224 6e8e5ec89b (360) Remove xdk360_video_general.h header file - use uniform
IS_TIMER/SET_TIMER macros
2012-05-28 03:45:22 +02:00
TwinAphex51224 ca9b6ac0e2 (360) Turned xdk360_init_fbo static 2012-05-28 03:29:07 +02:00
TwinAphex51224 c1d8bf8bea (360) Fast forwarding mode works again 2012-05-28 02:51:34 +02:00
TwinAphex51224 463fdd9bdf (360) Add 360 context file and use it 2012-05-28 02:29:51 +02:00
Twinaphex 85850ffba1 (PS3) Add HAVE_VID_CONTEXT define 2012-05-28 01:15:00 +02:00
TwinAphex51224 b7fce9a98e (360) Removed g_d3d global pointer 2012-05-28 00:56:58 +02:00
TwinAphex51224 f8ad3dcc91 (360) Font subsystem works again - font crap needs to be badly
refactored
2012-05-28 00:45:30 +02:00
TwinAphex51224 e871f9523f (360) Fix 360 build 2012-05-28 00:37:54 +02:00
Themaister 28f3e473e3 Build fixes. 2012-05-28 00:27:53 +02:00
Themaister 5989fa0405 Nit. 2012-05-28 00:21:51 +02:00
Twinaphex ef0ab68c4b (PS3) Applies overscan / aspect ratio / rotation in non-FBO
mode now
2012-05-28 00:06:18 +02:00
Twinaphex 49e69a530d (RGL) Stripped some unused stuff 2012-05-27 23:57:16 +02:00
Themaister 2d3fed35e7 Avoid ugly #undefs. 2012-05-27 23:33:52 +02:00
Twinaphex fea9aa9e9c Removed glRotatef from RGL - didn't work anyway 2012-05-27 23:23:27 +02:00
Themaister 4e9a5a5360 DOS retardations creep in. 2012-05-27 23:30:00 +02:00
Themaister 6aa621a8f8 Minor refactor. 2012-05-27 23:21:30 +02:00
Themaister 4ffecbb058 Minor initializer fixup. 2012-05-27 23:16:22 +02:00
Themaister 72310b6661 Style nit party. 2012-05-27 23:15:02 +02:00
Twinaphex 1d05161723 (Griffin) Small nit 2012-05-27 22:58:14 +02:00
Twinaphex e88318e886 Fixed up initializer for gl driver 2012-05-27 22:50:03 +02:00
Twinaphex 15e16728f2 PC fix build 2012-05-27 22:45:00 +02:00
Twinaphex b6131dfcd7 (PS3) PS3 now uses gl.c - ps3_video_psgl.c removed 2012-05-27 22:39:29 +02:00
Twinaphex 4f9b284c6d (PS3) Restructure / move set functions to ps3_ctx.c 2012-05-27 21:52:52 +02:00
Twinaphex 232a3850d1 (PS3) Menu texture is no longer rotated 2012-05-27 21:42:30 +02:00
Themaister 0171023edc Fix build. 2012-05-27 21:24:55 +02:00
Twinaphex 1c2c2e1a37 Rename to gfx_ctx_set_projection 2012-05-27 20:55:11 +02:00
Twinaphex 6ff8154d19 (PS3) Abstracted rotation code to allow for different implementations 2012-05-27 20:50:06 +02:00
Twinaphex 1f6efc65ca (PS3) Don't use set_swap_block callback anymore 2012-05-27 19:36:31 +02:00
Twinaphex 29ba19bc73 (PS3) Implement start/stop/restart 2012-05-27 19:29:10 +02:00
Themaister 448bf2cdc8 Add static start/stop/restart to console video drivers. 2012-05-27 19:25:53 +02:00
Twinaphex e4367646c4 (PS3) Move resolution code to ps3_ctx.c 2012-05-27 19:11:52 +02:00
Twinaphex 4c1c9cfff5 (PS3) Sets vsync correctly now on startup 2012-05-27 19:03:14 +02:00
Twinaphex 1a4c122310 (PS3) Don't use custom type macros in ps3_video_psgl.c anymore 2012-05-27 18:46:20 +02:00
Twinaphex 336a805a5a (PS3) Got rid of warning ps3_video_psgl.c 2012-05-27 18:33:35 +02:00
Themaister 1b01a00e3e Fix trigger happy warnings. 2012-05-27 18:40:07 +02:00
Themaister 9cd51921cb Apply vsync on init. 2012-05-27 18:22:55 +02:00
Twinaphex 9ef37ca9d9 (PS3) Works just fine using standard texture formats 2012-05-27 18:08:46 +02:00
Twinaphex 90d6aca1e1 (PS3) Move set_filtering and set_fbo to ps3_ctx.c 2012-05-27 18:04:25 +02:00
Twinaphex f32bc9e017 (PS3) Implemented gfx_ctx_init, gfx_ctx_destroy and other
functions
2012-05-27 17:46:47 +02:00
Twinaphex 754e36ea33 (PS3) Moved gfx_ctx_menu_init to ps3_ctx.c 2012-05-27 17:20:02 +02:00
Twinaphex f3ea8aa051 (PS3) Fixed Resize Mode menu rendering 2012-05-27 17:11:30 +02:00
Twinaphex dfb5678ce1 (PS3) Put menu rendering code in gl_frame 2012-05-27 17:03:43 +02:00
Themaister ac96bee03d Fix build for Win32. 2012-05-27 16:52:30 +02:00
Twinaphex d1db5abb99 (PS3) ps3_video_psgl.c - cleanups 2012-05-27 16:30:38 +02:00
Twinaphex d72751956e (PS3) Implement gfx_ctx_swap_buffers 2012-05-27 16:23:01 +02:00
Twinaphex 3dbc1a3e7f (PS3) Clean up set_overscan 2012-05-27 15:03:33 +02:00
Themaister 9aaf878908 Init gl handle early. 2012-05-27 15:04:43 +02:00
Themaister a61e52b419 Do not call gl_render_msg_pre(). 2012-05-27 14:43:30 +02:00
Themaister 86295bf057 Re-add gl_render_msg_post(). 2012-05-27 14:27:17 +02:00
Themaister 65b78348f0 Use HAVE_NETWORK_CMD 2012-05-27 14:23:30 +02:00
Themaister 20472ae36d Don't include <fcntl.h> in Win32. 2012-05-27 14:18:37 +02:00
Themaister b01fc8b4f7 Handle errors. 2012-05-27 14:17:32 +02:00
Themaister 0b729e1707 SOCK_NONBLOCK doesn't exist on Win32. 2012-05-27 14:16:24 +02:00
Themaister 0375de48a2 Add preliminary network command interface. 2012-05-27 14:12:29 +02:00
Themaister e1a3bf48fd Use correlating ifdef. 2012-05-27 12:38:07 +02:00
Themaister 8e45e6bc4a Fix warnings on non-freetype builds. 2012-05-27 12:28:16 +02:00
Themaister 8e17f8695e Remove unneeded pre/post calls. 2012-05-27 12:26:43 +02:00
Twinaphex efa3bef528 (PS3) Move header file include for libdbgfont 2012-05-27 04:34:21 +02:00
Twinaphex 7f13257d1b Move remaining FREETYPE/font code from gl.c to font files 2012-05-27 04:21:54 +02:00
Twinaphex 503f01867a (PS3) Use new font abstraction code 2012-05-27 04:02:07 +02:00
Themaister ca0a5b9f76 Move font stuff to gfx/fonts. 2012-05-27 02:04:50 +02:00
Twinaphex 4176ddeccc Split up font code so that it's more portable 2012-05-27 01:16:55 +02:00
Twinaphex e53db23031 (PS3) Change HAVE_OPENGL_PBO to HAVE_OPENGL_TEXREF 2012-05-27 01:00:05 +02:00
Themaister 5d70568003 Micronit. 2012-05-27 01:03:58 +02:00
Twinaphex 42bcc8ea59 (PS3) Add HAVE_OPENGL_PBO and HAVE_CG_MENU defines 2012-05-27 00:51:02 +02:00
Twinaphex dd101ff04a (PS3) Updated set_viewport in ps3_video_psgl.c 2012-05-26 20:51:36 +02:00
Twinaphex 987d9c0b24 (PS3) Use fbo_inited 2012-05-26 20:25:37 +02:00
Twinaphex c40edf878c (PS3) Removed g_frame_count - will use pointer to gl->frame_count 2012-05-26 18:18:09 +02:00
Twinaphex e34f6aa774 (PS3) Removed g_gl - will use pointer to driver.video_data from now on 2012-05-26 17:35:40 +02:00
Twinaphex 87e850ea08 (PS3) Don't use global g_quitting anymore 2012-05-26 16:44:02 +02:00
Themaister 9e50b0a8bb Make GL texture types more generic. 2012-05-26 16:29:22 +02:00
Twinaphex 7ddad8ade9 (PS3) Streamline ps3_video_psgl.c with gl.c 2012-05-26 16:09:43 +02:00
Twinaphex 7ec17f1437 (PS3) Cleanup ps3_video_psgl.h header 2012-05-26 15:58:17 +02:00
Themaister f873960224 init_textures for ps3. 2012-05-26 16:01:59 +02:00
Themaister f121f8d2bc Style nits. 2012-05-26 15:59:58 +02:00
Twinaphex 6000bd33e9 (PS3) Cleaned up ps3_video_psgl.c code - added some PS3-specific
ifdefs to gl.c
2012-05-26 15:45:36 +02:00
Themaister 04f325dcc9 Refactor texture init. 2012-05-26 15:46:37 +02:00
Themaister 9040e3348f Delete unneeded prototype. 2012-05-26 15:36:42 +02:00
Themaister a10a5badcc Move font code to gl_font. 2012-05-26 15:22:48 +02:00
Twinaphex 15760c6a8b (PS3) Use gfx_ctx_set_swap_interval in gl_set_nonblock_state too 2012-05-26 15:04:10 +02:00
Twinaphex 97b966ab59 (PS3)_Made ps3_ctx file - implemented set_swap_interval function -
removed gl_common.c
2012-05-26 15:00:20 +02:00
Themaister 8f74b1a555 Build fixes for Win32. 2012-05-26 10:20:06 +02:00
Themaister 7cfd0a3660 Fix build. 2012-05-26 10:17:06 +02:00
Twinaphex 6583d8262b Add gl_common.c and move commonly used helper GL functions there 2012-05-26 06:45:55 +02:00
Twinaphex 95a236ac61 (PS3) Some cleanups to RGL 2012-05-26 06:20:14 +02:00
Twinaphex 69ffd1c7a7 (RGL PS3) Implemented glRotatef 2012-05-26 05:59:55 +02:00
Twinaphex 426daa117c Add missing sdl_ctx.h 2012-05-26 04:48:55 +02:00
Twinaphex 1386e2ee90 Restructuring of sdlwrap.c for portability reasons -
could need a code review
2012-05-26 04:47:24 +02:00
Toad King 2cb3ae3476 Change quality for smooth setting
Keep alpha channel for rgb32 mode
2012-05-25 20:38:14 -04:00
Toad King c0050a7c8b Don't use linuxraw input if the user isn't running RetroArch from a terminal 2012-05-25 18:12:07 -04:00
Themaister f29338580b Add missing config.h. 2012-05-25 23:31:24 +02:00
Twinaphex c3cb3ba876 Add some HAVE_SDL ifdefs to gl.c 2012-05-25 23:18:38 +02:00
Themaister 4fdfe6a935 Fix header. 2012-05-25 22:30:40 +02:00
Themaister a2e7805524 Move more SDL specifics to sdlwrap. 2012-05-25 22:28:20 +02:00
Themaister 1e73ba4661 Move SDL input driver init to sdlwrap. 2012-05-25 22:11:44 +02:00
Toad King 38ceb89ce4 set vsync correctly first time 2012-05-25 16:07:11 -04:00
Toad King f651b6d706 Merge branch 'master' of http://github.com/Themaister/RetroArch 2012-05-25 15:48:06 -04:00
Toad King 6c79d66e1b linuxraw input: gets input straight from stdin
WARNING: this mode uses a raw keyboard mode. if the emulator does not exit cleanly, you could be left at a terminal with no form of input. do not use this mode for testing.
2012-05-25 15:44:39 -04:00
Twinaphex b2c7b766ae Revert "(PS3) ps3_video_psgl.c cleanups"
This reverts commit 824d2923a5.
2012-05-25 21:40:28 +02:00
Twinaphex 417cb55a6e Revert "(PS3) ps3_video_psgl.c cleanups #2"
This reverts commit 8aafbf63b8.
2012-05-25 21:40:19 +02:00
Twinaphex 3649376c03 Revert "(PS3) Added HAVE_LIBDBGFONTS define for PS3 port"
This reverts commit 06bb45a856.
2012-05-25 21:39:59 +02:00
Themaister f248d8b54a Reserve defines for RETRO_DEVICE_ANALOG. 2012-05-25 18:24:23 +02:00
Twinaphex 06bb45a856 (PS3) Added HAVE_LIBDBGFONTS define for PS3 port 2012-05-25 18:05:30 +02:00
Twinaphex 8aafbf63b8 (PS3) ps3_video_psgl.c cleanups #2 2012-05-25 17:37:48 +02:00
Twinaphex 824d2923a5 (PS3) ps3_video_psgl.c cleanups 2012-05-25 16:43:07 +02:00
Twinaphex 1b4cb55846 (PS3) Made HAVE_SYSUTILS and HAVE_SYSMODULES defines for PS3 port 2012-05-25 16:24:51 +02:00
Themaister c986eb3491 Remove unneeded parens. 2012-05-25 16:20:28 +02:00
Twinaphex 989731bbd0 Add HAVE_OPENGLES define to Makefile.ps3 - add HAVE_OPENGLES ifdef
to gl.c
2012-05-25 16:00:54 +02:00
Themaister 1b962e1b0d Remove useless check. 2012-05-25 11:55:00 +02:00
TwinAphex51224 83d6fd3cbb (360) Preliminary FBO scaling options - need to restart before change
is applied, fbo_reinit function doesn't seem to work on-the-fly yet,
and 3x/4x FBO seems to crash right now
2012-05-24 11:34:10 +02:00
TwinAphex51224 11a03290ce (360) Got rid of crashes while repeatedly loading HLSL shaders -
apparently HLSL needs no memory management? (see comment for
source)
2012-05-24 09:39:03 +02:00
Toad King dca427c1ad Merge branch 'master' of http://github.com/Themaister/RetroArch 2012-05-24 03:17:02 -04:00
Toad King 4e600c5edd Drop OpenGLES in favor of OpenVG. Video now works.
Audio might work with the ALSA drivers, but SDL input is not playing nice with OpenVG/EGL.
2012-05-24 01:29:35 -04:00
Themaister 1bc5e338b9 Should fix crash. 2012-05-23 23:54:31 +02:00
Themaister 0657fd8e1d Hoist some FBO code outside. 2012-05-23 23:46:45 +02:00
TwinAphex51224 cef6dcec66 (360) Small fix - (preliminary) FBO mode seems to work 2012-05-23 23:36:42 +02:00
Themaister 45566c3663 Set identity matrices by default in HLSL. 2012-05-23 23:27:09 +02:00
Themaister 37d3163f76 Further PC/MSVC builds requires paid version.
Microsoft has stated that Visual Studio 11 will no longer
build desktop Windows applications with their free version.
We cannot require a paid version ($1k++) just to build RetroArch.
C++ compatibility however, will be maintained for XBox 360 port.

Source: http://www.microsoft.com/visualstudio/11/en-us/products/express
2012-05-23 11:11:52 +02:00
TwinAphex51224 176e4b2cb3 (360) Added preliminary controls settings/menu 2012-05-23 08:38:14 +02:00
Toad King 350af0a458 initial Raspberry Pi work. Currently just displays a solid blue screen. 2012-05-23 02:31:29 -04:00
Twinaphex b453bedcee Add HAVE_FILEBROWSER define 2012-05-22 22:11:21 +02:00
Themaister 802851ecf2 SHUTDOWN should exit RetroArch. 2012-05-22 20:25:03 +02:00
Themaister d2b55f38cd Add RETRO_ENVIRONMENT_SHUTDOWN. 2012-05-22 20:14:07 +02:00
TwinAphex51224 5185fb7baa (360) Filebrowser sorts files by name now 2012-05-22 20:50:29 +02:00
TwinAphex51224 1355f1204d (360) Cleanup to viewport resize function 2012-05-22 20:39:27 +02:00
TwinAphex51224 d7f8f847e5 (360) Implemented auto aspect ratio 2012-05-22 20:15:27 +02:00
Twinaphex 69209b5e2e Replace remaining strcats with strlcat 2012-05-22 19:03:42 +02:00
TwinAphex51224 3e10f615bd (360) small fix for 360 build 2012-05-22 19:03:47 +02:00
Twinaphex e8e9a71b60 replace remaining strcpys with strlcpy (except for librsound.c) 2012-05-22 18:51:06 +02:00
Twinaphex f5c4a29584 Replace remaining sprintfs with snprintf 2012-05-22 18:32:08 +02:00
Twinaphex f6839e58a1 Remove redundant auto_vp 2012-05-22 18:26:35 +02:00
Twinaphex 03f081ace6 (PS3) Automatic aspect ratio based on game width/height works
now
2012-05-22 18:23:58 +02:00
TwinAphex51224 e7e0b9ca27 (MSVC) Updated MSVC solution files 2012-05-22 17:38:33 +02:00
TwinAphex51224 4ad1a6243e (PS3) Some fixes to outdated MSVC PS3 project files 2012-05-22 17:26:23 +02:00
TwinAphex51224 3ec196d9e2 (360) Fix 360 build 2012-05-22 17:06:02 +02:00
TwinAphex51224 62beb6f63d (360/RARCH_CONSOLE) Change sprintfs to snprintfs 2012-05-22 17:02:24 +02:00
TwinAphex51224 dd6ec8222f (360) Shader selection - start in shaders subdir 2012-05-22 16:43:46 +02:00
Themaister 7137bfc10e Globally visible struct gets namespacing. 2012-05-22 15:36:29 +02:00
Themaister 2b712f5f46 Avoid ifdef. 2012-05-22 15:34:53 +02:00
TwinAphex51224 6d0c569f0a (360) Add color format setting for changing backbuffer color format -
32bit ARGB and 16bit RGBA
2012-05-22 16:04:39 +02:00
TwinAphex51224 56a9d359ba (360) OSD messages now also work if g_console.emulator_initialized
is false
2012-05-22 15:21:45 +02:00
TwinAphex51224 0a1cf3edba (360) Add more OSD messages for options 2012-05-22 04:52:12 +02:00
TwinAphex51224 4e05524172 (360) Add some more OSD messages 2012-05-22 04:25:45 +02:00
TwinAphex51224 7064abded5 (RARCH_CONSOLE) message queue needs to be inited long before
Retro arch main init function - also added some onscreen
messages to some of the settings for the 360 port
2012-05-22 04:14:28 +02:00
TwinAphex51224 611dd9f34e (360) Some menu usability tweaks 2012-05-22 03:40:55 +02:00
TwinAphex51224 81203de0a2 (360) B button works better now in menu 2012-05-22 03:10:56 +02:00
Twinaphex d51772dcb1 (PS3) Updated to work with new viewport settings code 2012-05-22 02:32:32 +02:00
TwinAphex51224 4ecdddb2cb (360) refactor viewport settings code - also need to update
PS3 after this commit
2012-05-22 02:36:31 +02:00
TwinAphex51224 74d12bf1a1 (360) Custom resize mode now works 2012-05-22 02:19:40 +02:00
Twinaphex 2103440c91 (PS3) Cleanups 2012-05-21 21:52:30 +02:00
TwinAphex51224 ad17453d5c (360) Shader filenames are now shown in settings menu 2012-05-21 21:20:28 +02:00
TwinAphex51224 025ea6608f rarch_convert_wchar_to_const_char function is portable, so
hose it out of ifdef _XBOX define
2012-05-21 19:08:37 +02:00
TwinAphex51224 8cb3172eea (360) Cleaned up messy char to wchar and vice versa conversion routines
in 360 menu code by using new helper functions
2012-05-21 19:06:31 +02:00
TwinAphex51224 9cd3db85aa (360) Very rough shader selection in Settings menu - second pass doesn't work yet - blank screen - some memory leaks when loading a lot of shaders one after another 2012-05-21 18:02:59 +02:00
Themaister 068b3b90f5 Update version to 0.9.6-rc1. 2012-05-11 21:43:56 +02:00
Themaister 4ddc5a9912 Fix strange bug where binds in player 2 would carry over to player 1. 2012-05-09 23:25:30 +02:00
Themaister 4debf60bad Do not output FFT sanity test to stdout. 2012-05-08 13:02:29 +02:00
Themaister bc604f5029 Output SNR results to CSV. 2012-05-08 12:55:12 +02:00
Themaister 3878e81ce4 Improve SNR measurement. 2012-05-08 12:14:03 +02:00
TwinAphex51224 16e7355314 (360) Add second hardware filter option 2012-05-08 04:22:53 +02:00
TwinAphex51224 9272fdcdd6 (360) Add FBO on/off switch 2012-05-08 03:37:06 +02:00
Twinaphex 318d7a85d6 Merge branch 'master' of github.com:Themaister/RetroArch
rsound works but sound is FUBAR

Conflicts:
	console/console_ext.c
2012-05-07 23:59:20 +02:00
Themaister da941b8c6c Do not start audio driver out of the blue. 2012-05-07 23:57:39 +02:00
Twinaphex bdba331096 (PS3) Preliminary rsound patches 2012-05-07 23:52:15 +02:00
Themaister a9eaa86683 Cleanup in driver selection. 2012-05-07 23:20:13 +02:00
TwinAphex51224 24d9f815ce (360) Added extra buttons 2012-05-07 22:47:36 +02:00
Twinaphex 9351ac9fd9 (PS3) Added extra buttons for PS3 port 2012-05-07 22:25:56 +02:00
Themaister 34553627b2 Add Python lookups to L2/R2/L3/R3. 2012-05-07 21:59:39 +02:00
Themaister dd90a338d5 Add L2/R2/L3/R3 keys. 2012-05-07 21:51:32 +02:00
Themaister 2e205f6a94 Update Makefiles to 0.9.6. 2012-05-07 20:58:32 +02:00
TwinAphex51224 df650a5e64 (360) Aspect ratio selection fix 2012-05-07 20:55:33 +02:00
Twinaphex ff9f07e23f (PS3) Aspect ratio selection fix 2012-05-07 20:33:46 +02:00
Twinaphex be5695f802 (PS3) Small cleanups to RetroArch Salamander 2012-05-07 19:45:13 +02:00
TwinAphex51224 b198fd1237 (360) More settings saved 2012-05-07 17:27:14 +02:00
TwinAphex51224 d50fb9ad06 Changed README.md to reflect changes on 360 side 2012-05-07 17:00:39 +02:00
TwinAphex51224 e0f3522892 (360) Renamed some solution files 2012-05-07 16:58:20 +02:00
TwinAphex51224 15d9af091e Revert "(360) Small code cleanups in fonts.cpp"
This reverts commit 4b7b47fbf1.
2012-05-07 16:43:26 +02:00
TwinAphex51224 8f7ca9130a Revert "(360) Cleanups fonts.cpp"
This reverts commit 0c5c3c4299.
2012-05-07 16:43:16 +02:00
TwinAphex51224 8e4d2f6feb (360) FBO/render target changes 2012-05-07 05:35:10 +02:00
Twinaphex 0c5c3c4299 (360) Cleanups fonts.cpp 2012-05-07 03:41:52 +02:00
TwinAphex51224 4b7b47fbf1 (360) Small code cleanups in fonts.cpp 2012-05-07 03:35:29 +02:00
Twinaphex d40c1b3be6 (PS3) Use built-in stock shader program 2012-05-07 00:18:02 +02:00
Themaister 549a6c1349 Condom code. Playing it safe. 2012-05-06 23:40:29 +02:00
Themaister f73a8d9875 Fix coding derp. 2012-05-06 22:38:25 +02:00
Themaister a5f1634dca NULL sets a program to stock. 2012-05-06 22:35:29 +02:00
TwinAphex51224 43dbec58a3 (360) Small fix 2012-05-06 22:11:06 +02:00
Themaister 51890d2609 Align vertex/texels. 2012-05-06 22:02:54 +02:00
TwinAphex51224 3af750de3a (360) HLSL shader code expanded 2012-05-06 21:57:01 +02:00
Twinaphex 959a0ea809 (PS3) FBO changes - no more needless deinit when not necessary 2012-05-06 20:05:13 +02:00
TwinAphex51224 cfe5ce5286 (360) Lay the groundwork for FBO mode 2012-05-06 18:54:17 +02:00
Themaister b69ba24a05 Update README. 2012-05-06 13:01:19 +02:00
Twinaphex 2a704179ea fixed typo in README.md 2012-05-06 05:00:11 +02:00
Twinaphex 5cce1f70e4 Expanded README.md 2012-05-06 04:56:36 +02:00
Twinaphex e6ef8a8682 (PS3) UI tweaks 2012-05-06 04:38:32 +02:00
Twinaphex 419bfc17ef (Rgui) Rename SGUI to RGUI 2012-05-06 04:04:33 +02:00
Twinaphex 20a1d5df29 (Rzlib) Rename szlib to Rzlib 2012-05-06 03:58:29 +02:00
Twinaphex 5107eb4fe3 (PS3) Some cleanups to RGL Makefile 2012-05-06 03:53:07 +02:00
Twinaphex 77bfce7cc7 (PS3) Add RGL video driver - compile with Makefile.ps3.rgl before
compiling RetroArch itself
2012-05-06 03:47:35 +02:00
Themaister 3c9d4cf73b Add small test for libretro. 2012-05-05 13:49:41 +02:00
Themaister 1c172d7947 Fix spectator mode crash. 2012-05-04 19:57:15 +02:00
Themaister 1e0ef3d08d Be more strict about init ordering of netplay, movies and states. 2012-05-04 00:47:35 +02:00
Themaister 81c4d29064 Move parse_input() after setjmp init. 2012-05-04 00:14:42 +02:00
Themaister 0b0da3c335 Should fix netplay segfault. 2012-05-03 20:29:58 +02:00
Themaister 5cf8b6041b Add convenience functions to start/stop RSound on consoles. 2012-05-02 18:16:45 +02:00
Themaister 1a744d33d6 Check for presence of -Wno-unused-result. 2012-05-01 23:00:37 +02:00
Themaister 202ecbb701 Fix wording in README. 2012-04-30 22:01:56 +02:00
Themaister 16ef16c733 Fixup wording. 2012-04-30 21:46:57 +02:00
Themaister 2c9eb8e840 Update version to 0.9.6-beta1. 2012-04-29 01:06:53 +02:00
Themaister 8e85275418 Do not look for libretro.so by default. 2012-04-28 10:06:10 +02:00
Twinaphex 7e850cd265 (PS3) Fix at exit/deiniting of context - don't do glFinish -
calls on jsValidateStates one more time when fragment/vertex
shaders have been debinded/deinited
2012-04-26 18:37:11 +02:00
Themaister 2453aaf513 Add VIDEO_RAM. 2012-04-26 08:45:08 +02:00
Themaister 6b6e1556f6 Clean up ALSA plug a bit. 2012-04-25 19:49:56 +02:00
Themaister dbfd847a60 Naming fixups. 2012-04-23 22:43:07 +02:00
Themaister c26b372fa5 Fixup in readme. 2012-04-22 18:05:08 +02:00
Themaister 2f26017197 Update README. 2012-04-22 17:13:26 +02:00
Themaister 9845710e24 Rename invocation. 2012-04-22 15:38:37 +02:00
Themaister 3db4a0da22 Fixups to Win32 makefile. 2012-04-22 12:17:22 +02:00
Themaister 37bb784e70 Move ssnes_dinput. 2012-04-22 12:15:51 +02:00
Themaister cc95e3b66b Fixups in readme. 2012-04-22 11:59:31 +02:00
Themaister 7bcb82a25e Updates to mingw build. 2012-04-22 11:42:22 +02:00
Themaister 58bf26caad Fixups in manpages. 2012-04-22 11:40:36 +02:00
Themaister 5e032d2677 Fix non-dynamic builds (mziab). 2012-04-22 10:46:06 +02:00
Twinaphex 69496bc291 Replace more SSNES strings/references 2012-04-22 02:06:34 +02:00
Twinaphex a00e8581e8 (Salamander) Get rid of SNES_ prefix 2012-04-22 01:51:20 +02:00
Twinaphex 5219ecaf67 (Salamander) Update Salamander for retroarch.cfg among other things 2012-04-22 01:50:04 +02:00
Twinaphex 4893696e22 Use retroarch.cfg now 2012-04-22 01:45:55 +02:00
Twinaphex 520f7a823a (PS3) Add Retro Arch logo to PS3 menu 2012-04-22 01:33:08 +02:00
Twinaphex b34da9df49 (Wii) Wii port compiles again. 2012-04-22 00:38:24 +02:00
Twinaphex 676e4f6348 (PS3) Works on PS3 now. 2012-04-22 00:32:01 +02:00
TwinAphex51224 61d88fe42d (360) Fixup 2012-04-22 00:34:33 +02:00
TwinAphex51224 7fa59c7f6a (360) 360 port mostly works again - some small things to take care of 2012-04-22 00:27:54 +02:00
TwinAphex51224 4514e67c6f (360) CSSNES instances changed to CRetroArch 2012-04-22 00:14:18 +02:00
TwinAphex51224 61eb18fa8a (360) More 360 changes 2012-04-22 00:11:48 +02:00
TwinAphex51224 7c462a1edc (360) Some more changes to vcxproj 2012-04-22 00:02:41 +02:00
TwinAphex51224 5672ac098b (360) Some more changes 2012-04-21 23:58:03 +02:00
TwinAphex51224 b93ca1653c (360) Fix up filenames 2012-04-21 23:54:20 +02:00
Themaister 161bed281f Win32 makefile fixes. 2012-04-21 23:51:05 +02:00
TwinAphex51224 96fbb76345 (360) Small 360 fixups 2012-04-21 23:48:27 +02:00
Themaister 19b2839eca Updates to retroarch-zip. 2012-04-21 23:43:29 +02:00
TwinAphex51224 959950d55e Fixup some console Makefiles 2012-04-21 23:42:20 +02:00
TwinAphex51224 52e4f7ad58 (360) Change references to SSNES in vcxproj file to rarch 2012-04-21 23:38:55 +02:00
Themaister b95b101a37 Add compat to external APIs. 2012-04-21 23:36:55 +02:00
Themaister 109dc7a64f More changes to RetroArch. 2012-04-21 23:33:35 +02:00
Themaister ce740f8948 More fixups. 2012-04-21 23:31:57 +02:00
Themaister d000563d89 Update README. 2012-04-21 23:27:15 +02:00
Themaister aab8fb6151 ssnes_* => rarch_*. 2012-04-21 23:25:32 +02:00
Themaister 9ab51ad23a SSNES => RetroArch. 2012-04-21 23:17:43 +02:00
Themaister 3a7ad61879 Rename ssnes.c to retroarch.c. 2012-04-21 23:11:18 +02:00
Twinaphex f74d5a03a9 (PS3) New icon/PARAM.SFO 2012-04-21 04:13:57 +02:00
Twinaphex 2fb6e84018 (PS3) Name change 2012-04-21 03:28:32 +02:00
TwinAphex51224 8da73e0434 (360) Name change 2012-04-21 02:55:55 +02:00
Themaister da4f176053 Fix segfault when audio driver fails to initialize. 2012-04-19 21:09:27 +02:00
Twinaphex 1eb1841c9b Revert "(360) Add offscreen render targets (FBO for D3D) to video driver"
This reverts commit 97aba979c0.
2012-04-19 15:59:47 +02:00
Twinaphex 3851664399 Revert "(360) Quick fix to gfx_frame"
This reverts commit 9d5da1e9e0.
2012-04-19 15:59:38 +02:00
Twinaphex c09fdcc14a Revert "(360) Corrections to gfx_init and fbo_init"
This reverts commit 7bab422a44.
2012-04-19 15:59:15 +02:00
Twinaphex 3492d89147 Revert "(360) FBO changes"
This reverts commit 77b4b76db4.
2012-04-19 15:59:07 +02:00
Twinaphex 808a7cee4a Merge branch 'master' of github.com:Themaister/SSNES 2012-04-19 15:58:15 +02:00
TwinAphex51224 77b4b76db4 (360) FBO changes 2012-04-18 23:57:01 +02:00
TwinAphex51224 7bab422a44 (360) Corrections to gfx_init and fbo_init 2012-04-18 23:35:01 +02:00
TwinAphex51224 9d5da1e9e0 (360) Quick fix to gfx_frame 2012-04-18 23:29:42 +02:00
TwinAphex51224 97aba979c0 (360) Add offscreen render targets (FBO for D3D) to video driver 2012-04-18 23:19:11 +02:00
Themaister 8fed2d1efb Should fix high CPU bug in Pulse. (Thanks to fable2012). 2012-04-18 20:30:32 +02:00
Themaister 00fd46c0f6 Style nit. 2012-04-18 20:19:58 +02:00
Twinaphex f764808578 Merge branch 'master' of github.com:Themaister/SSNES 2012-04-18 15:36:53 +02:00
TwinAphex51224 8e950ba5be (360) Convert texture first to some color format suitable for
GPU/sampling - this fixes most of the problems with the shaders
such as Lanzcos, Bead and Blinky.
2012-04-18 05:01:17 +02:00
TwinAphex51224 1f10d2d18a (360) Changes to shader_hlsl.c 2012-04-18 02:57:46 +02:00
TwinAphex51224 9bd2a4256b (360) Move to ps_3_0/vs_3_0 2012-04-17 21:27:47 +02:00
TwinAphex51224 23d05ea55d (360) Assume Release of d3d render device / device will also
free all associated resources
2012-04-17 05:45:55 +02:00
TwinAphex51224 3a99b0602e (360) Fixed memory freeing bug to do with XUI when exiting
program
2012-04-17 05:35:25 +02:00
TwinAphex51224 3868f42687 (360) Don't exclude stock.cg from deploy any longer 2012-04-17 05:27:16 +02:00
TwinAphex51224 ce7275393e (360) Attempt to make clear in xdk360_video.cpp what is 360-specific
and what is not
2012-04-17 05:23:54 +02:00
TwinAphex51224 6c5285c792 (360) Rewrite of xdk360_video.cpp and shader_hlsl.c - use
portable class-based function invocations
2012-04-17 05:12:47 +02:00
Themaister 2f693ad7f2 Add some comments to libretro header. 2012-04-16 22:25:09 +02:00
Themaister 0934d81a52 Add -Wno-unused-result. 2012-04-16 20:38:25 +02:00
Themaister 6824174397 Clarify README. 2012-04-16 18:52:14 +02:00
Themaister d51cce764d Update README a bit. 2012-04-16 18:41:29 +02:00
TwinAphex51224 731f3e7bba (360) found bug while in debug mode - have to set texture to NULL
first before doing lockrect / unlockrect
2012-04-16 18:32:57 +02:00
Themaister dcbd252c38 Style nits. 2012-04-16 18:11:20 +02:00
Twinaphex ac8ca5a526 Merge branch 'master' of github.com:Themaister/SSNES 2012-04-16 06:32:15 +02:00
TwinAphex51224 a8af68217f (360) Frame count in shaders works now 2012-04-16 04:22:16 +02:00
Themaister f6ed5902c2 Fixups for aspect_ratio_auto. 2012-04-15 21:48:32 +02:00
TwinAphex51224 6a942e046a (360) Flesh out hlsl_set_params 2012-04-15 20:02:51 +02:00
Twinaphex 10c2e86d14 Merge branch 'master' of github.com:Themaister/SSNES 2012-04-15 20:00:55 +02:00
TwinAphex51224 1cdaa652a9 (360) Attempt to fix memory leaks - still broken 2012-04-15 18:13:24 +02:00
TwinAphex51224 48b8c78de2 (360) Remove register specification for MVP - no longer need it 2012-04-15 17:53:48 +02:00
TwinAphex51224 17aa782223 (360) MVP now gets fetched from constant table too - stock.cg
now requires zero changes from Cg file
2012-04-15 17:51:01 +02:00
Themaister abaa4f371d Add video_aspect_ratio_auto setting. 2012-04-15 17:36:09 +02:00
Themaister 186ea8898b Add LIGHTGUN_START. 2012-04-15 17:08:43 +02:00
Themaister a725d2c506 Fix libretro header. 2012-04-15 16:47:16 +02:00
TwinAphex51224 f9ef9cd1f4 (HLSL) Implement set_program_attributes 2012-04-15 16:34:09 +02:00
Twinaphex 9f8f831450 Merge branch 'master' of github.com:Themaister/SSNES 2012-04-15 16:28:01 +02:00
TwinAphex51224 7271f61da0 (Libretro) Update to libretro header file - for when compiling in
C89 mode in MSVC 360
2012-04-15 15:00:26 +02:00
Twinaphex 5932829fd8 (PS3/360) Small indent cleanups 2012-04-15 02:41:44 +02:00
TwinAphex51224 dee9b69661 (HLSL) Implement constant table for HLSL 2012-04-14 22:44:46 +02:00
TwinAphex51224 2a8ea913c0 (HLSL) small cleanups 2012-04-14 22:19:39 +02:00
TwinAphex51224 f4f2ff386a (HLSL) D3D device ptr for shader_hlsl.c 2012-04-14 22:05:56 +02:00
TwinAphex51224 a50a9a6ba1 (360) 360 port works with skeleton HLSL driver now 2012-04-14 21:45:43 +02:00
Twinaphex 6f56942d44 (HLSL) Add skeleton gfx/shader_hlsl.c (for initial use with 360) 2012-04-14 20:33:56 +02:00
Twinaphex d95f5131c0 (PS3) Optimizations to ps3_video_psgl.c 2012-04-14 18:26:12 +02:00
Twinaphex a853964755 (Wii) Simplify macros in wii/video.c 2012-04-14 16:41:01 +02:00
Twinaphex fe38d090b3 (Wii) Use Griffin 2012-04-14 14:08:00 +02:00
Twinaphex 3b4644cd16 (Wii) Add Wii defines to Griffin 2012-04-14 13:42:25 +02:00
Twinaphex 00a20e80aa (360) menu.h indenting nits 2012-04-14 05:36:54 +02:00
Twinaphex 499a22df72 (PS3) main.c indenting nits 2012-04-14 05:30:10 +02:00
Twinaphex df5b772462 (PS3) menu.c indenting nits 2012-04-14 05:24:09 +02:00
Twinaphex 7273b9901d Nits in file_browser.h 2012-04-14 05:06:59 +02:00
Twinaphex d1e7a96e2b Change header guards of console_ext_input.h 2012-04-14 05:05:32 +02:00
Twinaphex 233730d03b (360) 360/fonts.cpp - indenting nits 2012-04-14 05:01:26 +02:00
Twinaphex 76493d26d4 (Xenon) Indenting nits 2012-04-14 04:43:29 +02:00
Twinaphex 089e97b942 (360/PS3) Indenting nits 2012-04-14 04:38:40 +02:00
Twinaphex 80e2f61eab (PS3/360) Moved some shared enums to console_ext.h 2012-04-14 03:51:25 +02:00
Twinaphex dd50c986ec (Wii) Some small fixes in wii/video.c 2012-04-14 02:35:19 +02:00
Twinaphex 0907eccc9c (Griffin) Removed Griffin by mistake 2012-04-14 01:02:37 +02:00
Twinaphex b0cc4a6f61 (Wii) Prepare for Griffin 2012-04-14 01:00:09 +02:00
Twinaphex 1bcb253ce7 (Wii) Works now - GETOPT_LONG on Wii seems to be broken 2012-04-13 23:43:38 +02:00
Twinaphex 1352c29f39 (Wii) Add HAVE_FILE_LOGGER debugging code 2012-04-13 23:40:10 +02:00
Twinaphex 9be0365b0e (SSNES_CONSOLE) Remove useless ifdef 2012-04-13 23:20:12 +02:00
Twinaphex 6fb2f9b161 Move to HAVE_SSNES_MAIN_WRAP for Wii 2012-04-13 23:16:51 +02:00
Twinaphex 1193d41360 Add some file logging stuff for Wii debugging 2012-04-13 22:54:30 +02:00
Twinaphex 96c20550b5 (SSNES_CONSOLE) Get rid of main_wrap.h header file - include
this in console_ext.h instead
2012-04-13 22:07:21 +02:00
TwinAphex51224 ab8c3085a6 (360) Added file_path to 360 solution for Salamander 2012-04-13 22:05:26 +02:00
Twinaphex 6ab12d1844 (Salamander) Move include of file.h below SSNES_ERR/SSNES_WARN/SSNES_LOG
defines in Salamander
2012-04-13 21:44:59 +02:00
Themaister 1bfba2f575 Macro guard loggers. 2012-04-13 21:50:52 +02:00
Twinaphex 6691ca2c91 (SSNES_CONSOLE) SSNES Salamander uses file_path.c now 2012-04-13 21:30:04 +02:00
Themaister 687d5a2b2b Fix build for Win32. 2012-04-13 21:30:55 +02:00
Themaister 8c426ed49a Split file.c in two. 2012-04-13 21:29:25 +02:00
Twinaphex 10be750aa6 (SSNES_CONSOLE) Introduce HAVE_SSNES_EXEC define 2012-04-13 21:01:04 +02:00
Twinaphex 79737aecf3 (SSNES_CONSOLE) Introduce HAVE_SSNES_MAIN_WRAP define 2012-04-13 20:40:22 +02:00
Twinaphex 782e8b8da9 (PS3/360) Removed duplicate keybind LUT 2012-04-13 17:03:30 +02:00
Themaister 38aa7da1ab Style nits and cleanups. 2012-04-13 16:30:13 +02:00
Twinaphex ad03ce8b58 (360) Unnecessary enum duplications in 360/shared.h 2012-04-13 16:15:57 +02:00
Twinaphex ccd160ac0d (PS3/360) Fixed ifdef in console_ext.h - change to HAVE_LIBRETRO_MANAGEMENT 2012-04-13 15:59:22 +02:00
Twinaphex 2ffffee571 (PS3/360) libretro_manage_core made portable and moved to console_ext.c 2012-04-13 15:57:59 +02:00
Twinaphex add97b9ef5 (360) Don't make a copy of dir_list_new in 360/main.c but rather use
the one in file.c with two small Xbox 360 tweaks to make it work
2012-04-13 14:52:51 +02:00
Twinaphex 5646140755 (360) Use ssnes_input_set_default_keybinds in 360 code too 2012-04-13 14:41:12 +02:00
Twinaphex 55d621e062 (PS3) Make use of ssnes_set_default_keybinds in ps3/main.c 2012-04-13 06:12:51 +02:00
Twinaphex 331d596940 (PS3) Made keybind changing code portable 2012-04-13 04:31:51 +02:00
TwinAphex51224 77bab1ad2d (360) Small cleanup to Salamander for 360 2012-04-13 03:55:09 +02:00
Twinaphex 9db2a51a81 Updated meta.xml + fixed some indenting in xdk360_video.cpp 2012-04-13 03:23:23 +02:00
Twinaphex 3e2769d199 (360) Updated 360 for new aspect ratio code too 2012-04-13 03:07:10 +02:00
Twinaphex 6c80cd81d0 (PS3) Cleaner aspect ratio changing code 2012-04-13 03:03:21 +02:00
Twinaphex 0ec50e8bc4 Moved font.bmp for Wii - had difficulty linking otherwise 2012-04-13 02:18:55 +02:00
Twinaphex 9cb9597e8a (Wii) Wii port updates - broken right now -
exits to HBC right after loading a ROM
2012-04-13 02:17:27 +02:00
Twinaphex 49a4ba73e0 whoops - SSNES PC seems to automatically overwrite this when
SSNES is started up from compile dir
2012-04-12 22:57:35 +02:00
Twinaphex 533d2683c5 (PS3/360) Uses block_extract from libretro API now 2012-04-12 22:53:05 +02:00
Twinaphex cb387342ba Small change for console ports who do not have HAVE_BSV_MOVIE
defined
2012-04-12 14:32:50 +02:00
Themaister c7e6a0de06 Fix bug when maximum geometry was not POT. 2012-04-11 23:14:08 +02:00
Themaister 60cf4e569a Fix some warnings. 2012-04-11 20:17:17 +02:00
Themaister 16d123dfab Fix home/end/pgup/pgdown keys. 2012-04-11 18:56:21 +02:00
Twinaphex d33e0250b6 (Wii/NGC) Add HW_RVL defines to wii/input.c (there will be
SSNES GameCube too)
2012-04-11 04:25:55 +02:00
Twinaphex 24ecf1c4e5 (Wii) Some cleanups to wii/input.c 2012-04-11 04:22:41 +02:00
Twinaphex f313d3c6bb (360/PS3) 360 and PS3 now both use the same salamander source
file
2012-04-11 04:07:17 +02:00
Twinaphex 61cea3f027 (PS3) Some indenting nits 2012-04-11 03:32:58 +02:00
Twinaphex 726fa479fa (SSNES_CONSOLE) Numerous cleanups, indenting cleanups, include header file fixes,
etc.
2012-04-11 02:42:27 +02:00
Twinaphex 1cdba6b0c5 (Wii) Updated Wii makefile again 2012-04-10 23:07:23 +02:00
Twinaphex 24ec735380 (Wii) Ifdeffed out LAST_PLATFORM_KEY 2012-04-10 23:03:08 +02:00
Twinaphex 0f473ddc4e (Wii) Another fix to Makefile 2012-04-10 22:58:05 +02:00
Twinaphex cd1d71120c (Wii) Update out-of-date Makefile 2012-04-10 22:56:30 +02:00
Twinaphex 063a736f4d (Wii) Updated Wii makefile -excluded Freetype font stuff 2012-04-10 22:53:16 +02:00
Twinaphex cb9fa07ad9 (Wii) Fix include path 2012-04-10 22:40:44 +02:00
Twinaphex 2e92640d2b (PS3) Fixed analog controls 2012-04-10 21:58:58 +02:00
Twinaphex db00f689c8 Fixed indenting in a lot of console files 2012-04-10 21:24:05 +02:00
Themaister 867df49fcf Reword for consistency. 2012-04-10 19:24:08 +02:00
Twinaphex 55d09ee494 (Salamander) Changes - now looks for libretro_path instead of
libsnes_path
2012-04-10 18:57:14 +02:00
Twinaphex b22f122c93 (PS3 Fixed two-player controls 2012-04-10 18:07:21 +02:00
Twinaphex eaaeda8c38 (PS3/360) ssnes_render_cached_frame fixed 2012-04-10 17:45:58 +02:00
TwinAphex51224 6c39e981a4 Merge branch 'master' of github.com:Themaister/SSNES 2012-04-10 13:58:49 +02:00
TwinAphex51224 678fbaff3b (360) 360 fix 2012-04-10 13:58:23 +02:00
Twinaphex 5906754468 (Libretro) libretro-related to ports 2012-04-10 03:14:21 +02:00
TwinAphex51224 9d3d696b3e (360) Some libretro ABI-related changes for 360 port 2012-04-10 03:13:04 +02:00
Twinaphex b2fcf5b281 (PS3) More libretro commits - broken right now on retro_run 2012-04-10 01:00:25 +02:00
Themaister 7c5c04bf36 Warning fixups. 2012-04-10 00:37:30 +02:00
Twinaphex 6c05eac2f5 (PS3) Preliminary PS3 conversion to libretro 2012-04-10 00:22:02 +02:00
Themaister a949c0ed37 Change another use of snes_library_id(). 2012-04-10 00:18:49 +02:00
Themaister 0cf7e2811e Use retro_get_system_info. 2012-04-09 23:52:05 +02:00
Themaister 1959f0d17b Add block_extract. 2012-04-09 23:46:26 +02:00
Themaister 9f0211d9d7 Fixup C++ build. 2012-04-09 22:30:29 +02:00
Themaister 0dff4dad52 Allow cores to infer aspect ratios other than PAR 1:1. 2012-04-09 22:19:51 +02:00
Themaister ba2e913908 Use unsigned port. 2012-04-09 22:05:26 +02:00
Themaister e3a71a8c5b Fixup headers. 2012-04-09 22:05:26 +02:00
Themaister 0f8a47467c Fixups. 2012-04-09 22:04:44 +02:00
Themaister e012e290ae Builds clean. 2012-04-09 22:04:44 +02:00
Themaister 5d51942f69 libretro fixups. 2012-04-09 22:04:43 +02:00
Themaister cb3a65a358 Minor tweaks. 2012-04-09 22:03:57 +02:00
Themaister cd3c9a548c Begin fixing up SSNES for libretro. 2012-04-09 22:03:57 +02:00
Themaister 9b57081097 Work on new libretro API. 2012-04-09 22:03:57 +02:00
Themaister fd5f495991 Fixup build script to reflect libretro. 2012-04-09 22:03:57 +02:00
Themaister 62c96ea937 Change license header. 2012-04-09 22:03:57 +02:00
Themaister 9698cd7dbd Change headers. 2012-04-09 22:03:57 +02:00
Themaister 84f40dab16 Move set_aspect_ratio to SSNES_CONSOLE. 2012-04-09 22:02:46 +02:00
Twinaphex e18a9e1001 Added set_aspect_ratio callback function 2012-04-09 16:04:24 +02:00
Twinaphex d617e50bbf Revert "Allow for preinit of message queue."
This reverts commit 7d2a00df4e.
2012-04-09 14:35:00 +02:00
Twinaphex 3dee9662e2 Revert "Add a FIFO-style interface to message queue."
This reverts commit fd44e0b9c6.
2012-04-09 14:34:48 +02:00
Twinaphex eb59aa6028 Revert "Fix FTBFS." See above revert message
This reverts commit da939a9986.
2012-04-09 14:34:31 +02:00
Twinaphex 755aeec226 Revert "(PS3) Initial implementation of new message queue" Get rid of
this stuff and the entire FIFO-style interface for the message
queue. It's far too unstable, the ports routinely crash for no
good reason - and I can't get it to display right anyway.
So, get rid of it all and back to the drawing board with it -
because this isn't working out

This reverts commit 29b2a560c3.
2012-04-09 14:32:56 +02:00
Twinaphex 29b2a560c3 (PS3) Initial implementation of new message queue 2012-04-05 00:00:33 +02:00
Themaister da939a9986 Fix FTBFS. 2012-04-04 23:54:37 +02:00
Themaister fd44e0b9c6 Add a FIFO-style interface to message queue.
Implement a virtual stderr for consoles.
2012-04-04 23:36:09 +02:00
Twinaphex ff7cbf5be2 (PS3) Fix 'change libsnes core' option 2012-04-04 23:12:21 +02:00
Themaister 7d2a00df4e Allow for preinit of message queue. 2012-04-04 20:02:41 +02:00
TwinAphex51224 55ddfb0dc6 (360) Add version number for emu cores in menu 2012-04-04 03:33:06 +02:00
TwinAphex51224 113e3006fa (360) Added HD menus / SD menus available too - will be autoselected
based on aspect ratio / HD availability - will need more refinement
2012-04-04 02:54:21 +02:00
Twinaphex 13e22788c9 (PS3) Add version string for emulators in menu 2012-04-03 23:23:54 +02:00
Themaister 865229820a Fix edge case on rotation with multiple pass shaders. 2012-04-02 17:26:23 +02:00
Twinaphex debba76dc4 (PS3) Multiman fix - different version 2012-04-01 20:15:58 +02:00
Twinaphex 163a7c2e87 (PS3) Hopefully fixes Multiman issue 2012-04-01 20:15:12 +02:00
Themaister fdcfd3fc71 SET_CORE_VERSION. 2012-04-01 20:11:19 +02:00
Themaister 2178a14952 Find drivers before snes_init() to allow rotation to work properly. 2012-04-01 19:38:50 +02:00
Themaister 34bdea0f1c Add rotation to GL driver (PC). 2012-04-01 19:20:37 +02:00
Themaister 2815d5f5cb Defer autoload after sram load. 2012-04-01 16:58:53 +02:00
Themaister 562b28caa7 Add savestate auto load on boot. 2012-04-01 16:57:39 +02:00
Themaister 38a4141eef Add allow_rotate. 2012-04-01 16:13:04 +02:00
TwinAphex51224 525d9b3cf5 (360) Implemented rotation callback function 2012-04-01 16:10:02 +02:00
Twinaphex 0eb49deaa8 (PS3) Forgot to hook up set_rotate function pointer 2012-04-01 01:32:05 +02:00
Twinaphex 239e491382 (PS3) Implemented rotation callback function 2012-04-01 01:01:01 +02:00
Twinaphex ed75cb8031 (PS3) Fixed 'Set default Libsnes core' option 2012-04-01 00:13:45 +02:00
Themaister ba0e7d5f2a Style nit. 2012-03-30 21:18:15 +02:00
Hans-Kristian Arntzen 0308d3fe2b Merge pull request #8 from AlexFolland/master
On ROM checksum mismatch, warn instead of stopping bsv playback.
2012-03-30 12:16:22 -07:00
AlexFolland a2013276d5 instead of stopping, warn about checksum mismatch on bsv playback 2012-03-30 15:13:26 -04:00
Themaister eca337ee55 Allow device to be selected in DirectSound. 2012-03-30 20:09:40 +02:00
Themaister 996d6d25b7 Add support to select device in XAudio2. 2012-03-30 19:53:12 +02:00
Themaister 35a9123bf8 Fix build on Mingw CXX_BUILD. 2012-03-30 19:15:18 +02:00
Themaister 5d4e32ef9d Add support for rotation. 2012-03-30 19:09:34 +02:00
Themaister 29ccd1a5a1 Should fix it properly. 2012-03-29 23:19:41 +02:00
Twinaphex 8ff9ae6b32 Revert "Avoid redundant copy. Remove some now unneeded ifdefs."
This reverts commit b52110f642.
2012-03-29 22:28:46 +02:00
Themaister b52110f642 Avoid redundant copy. Remove some now unneeded ifdefs. 2012-03-29 20:28:22 +02:00
TwinAphex51224 a7b486cef1 (360) Some cleanups to xdk360_video_resources 2012-03-29 17:27:42 +02:00
TwinAphex51224 a33c610149 (360) Don't copy over ssnes.cfg every time during Deployment 2012-03-29 16:54:16 +02:00
Twinaphex 1cc8a24b3c Get rid of Cellframework2 headers in file_browser.h 2012-03-29 16:21:30 +02:00
Twinaphex 75661e7527 (360/PS3) Moved file_browser.c to console/ - 360/PS3 now use
the same file browser code
2012-03-29 16:18:23 +02:00
TwinAphex51224 765ba65188 (360/PS3) Attempt to use the same file browsing code for 360 and
PS3
2012-03-29 16:10:16 +02:00
Twinaphex db7be5736b (360/PS3) OVERRIDE_VIDEO_FRAME_FUNC ifdeffed for 360/PS3 2012-03-29 15:33:28 +02:00
TwinAphex51224 23f9cf8618 (360) Have 360 use HAVE_GRIFFIN_OVERRIDE_VIDEO_FRAME_FUNC too 2012-03-29 15:30:27 +02:00
Twinaphex cf5fb8baaa (PS3) Some more Griffin overrides 2012-03-29 15:07:48 +02:00
Twinaphex 6b88330540 (Griffin) Griffin function override hooks 2012-03-29 14:17:03 +02:00
TwinAphex51224 9653e1f028 (360) Dodge function pointers / make direct calls through HAVE_GRIFFIN
define
2012-03-29 12:14:12 +02:00
TwinAphex51224 a860a71016 (360) 360 uses Griffin now too 2012-03-29 12:04:58 +02:00
Twinaphex 07c839f003 (Griffin) Integrate more source files into griffin.c 2012-03-29 02:10:49 +02:00
Twinaphex dc1616b7ce (PS3) No warnings when compiling griffin.c now 2012-03-29 02:07:05 +02:00
Twinaphex 5553774f6f (PS3) Dodge function pointers / make direct calls through
HAVE_GRIFFIN define
2012-03-29 01:15:22 +02:00
Themaister eee0233abb Wrap driver calls in overridable macros. 2012-03-29 00:30:50 +02:00
Twinaphex f8509ff325 Merge branch 'master' of github.com:Themaister/SSNES 2012-03-28 23:25:40 +02:00
Themaister a3e504ec49 Shut up compiler warning. 2012-03-28 23:32:29 +02:00
Twinaphex 105b6dbddc Merge branch 'master' of github.com:Themaister/SSNES 2012-03-28 23:22:54 +02:00
Twinaphex 24f5b2675b (PS3) Add Griffin to mass include files into one single source unit 2012-03-28 23:22:28 +02:00
Themaister da075bb261 Default initialize config macro values to stop eager compiler warnings. 2012-03-28 23:18:05 +02:00
Themaister 3ae401a2a4 Do not compile in main() in ssnes.c for consoles. 2012-03-28 23:08:57 +02:00
Themaister 104c92fa5d Add audio batch callback. 2012-03-27 22:24:46 +02:00
Twinaphex 29f1138ec6 (PS3) Fix indenting in ps3/file_browser.c 2012-03-26 15:14:25 +02:00
Twinaphex e7419d2fa5 (PS3) Menu cleanups 2012-03-26 15:03:50 +02:00
Twinaphex 6d0b8d1129 (PS3) Add some Windows-specific defines in Makefile 2012-03-26 14:52:58 +02:00
Twinaphex 6332ba3025 ssnes.c - better placement of HAVE_THREADS defines - some more
SSNES_CONSOLE defines
2012-03-26 03:24:28 +02:00
Twinaphex 45021bda3f (PS3) oskutil.c merged with ps3_input.c 2012-03-26 00:36:40 +02:00
TwinAphex51224 64fa27cdad (360) Update 360 solution 2012-03-26 00:27:48 +02:00
Twinaphex e75c1e9923 (PS3) Excluded movie.c from PS3 Makefile 2012-03-26 00:04:12 +02:00
Themaister a63968377a Fix warning. 2012-03-26 00:10:39 +02:00
Themaister 066e9608a1 Add HAVE_BSV_MOVIE define. 2012-03-26 00:06:25 +02:00
Themaister b273de1e99 Move netplay related bsv code to netplay. 2012-03-26 00:06:25 +02:00
Twinaphex 739bbe3aa6 (PS3) Update header on file_browser.c 2012-03-25 23:57:54 +02:00
Twinaphex 1ed6a622f1 (PS3) Move file_browser.c to root of PS3 dir 2012-03-25 23:57:07 +02:00
Twinaphex 5d535f6d54 Remove -DHAVE_SCREENSHOTS_BUILTIN from PS3 Makefile 2012-03-25 23:49:29 +02:00
Themaister c79e536b17 Use positive HAVE_SCREENSHOTS rather than a negative ifdef. 2012-03-25 23:41:20 +02:00
Themaister d73ec9b645 Move hashing code to hash.o. 2012-03-25 23:29:39 +02:00
Themaister 0726204505 If HAVE_ZLIB is set, use zlib internal crc32. 2012-03-25 22:21:08 +02:00
TwinAphex51224 a0a27658bd (360) 360 compile update 2012-03-25 03:12:31 +02:00
Twinaphex db6b9ba4a3 (SSNES_CONSOLE) Merged input_luts.c with console_ext.c 2012-03-25 01:56:27 +01:00
Twinaphex 38ae16f425 SSNES_CONSOLE ifdefs in ssnes.c 2012-03-25 01:19:44 +01:00
Themaister a569625ce9 Do not crash if ffmpeg format cannot be found. 2012-03-23 23:48:17 +01:00
Twinaphex 42b756480b (PS3) Integrated local shader_cg.c into ps3_video_psgl.c 2012-03-23 01:19:44 +01:00
Themaister 4a5104bfcf Use a more correct ifdef. 2012-03-22 22:55:30 +01:00
TwinAphex51224 6e24901d95 (MSVC 2010) Updated MSVC 2010 solution 2012-03-22 01:41:10 +01:00
Twinaphex e5a38bbd51 (SSNES_CONSOLE) More SSNES_CONSOLE ifdefs 2012-03-21 23:58:31 +01:00
Themaister 7ffc9db413 Do not care about cropping on consoles. 2012-03-21 22:47:03 +01:00
Themaister 63274f6f61 Only allow duping if ffmpeg is compiled in. 2012-03-21 22:36:11 +01:00
Themaister b907cb667a Mask away useless code for consoles. 2012-03-21 22:12:18 +01:00
Themaister 5272008f54 Add --no-patch to forcefully disable all patching. 2012-03-20 23:45:58 +01:00
Themaister 4e772003c8 Style nit. 2012-03-20 23:18:10 +01:00
Themaister 48cddde84a Add IPS patching. 2012-03-20 23:08:34 +01:00
Themaister acdc6179bb Add possibility to disable -static-libstdc++ for TDM_GCC. 2012-03-19 23:45:46 +01:00
Twinaphex fadd954618 (PS3) Made local PS3 copy of shader_cg.c 2012-03-19 03:28:04 +01:00
Twinaphex e0295a726a (PS3) Merged Cellframework2 pad_input.c with ps3_input.c from SSNES 2012-03-19 02:55:13 +01:00
Twinaphex f442c8ab5f (PS3) Small change 2012-03-19 01:41:55 +01:00
TwinAphex51224 885c165716 (360) Combine xdk360_video.cpp and xdk360_video_resources.cpp 2012-03-18 00:23:11 +01:00
TwinAphex51224 bd90e1c1a3 (360) Compile fix 2012-03-18 00:16:40 +01:00
Twinaphex 1b995917ce Moved SGUI files to subdir in console/ 2012-03-17 23:59:15 +01:00
Twinaphex 4e3359ec19 Merged console_ext.c / main_wrap.c and got rid of warning in file.c 2012-03-17 23:05:48 +01:00
Twinaphex 8ab536a968 Fix typo 2012-03-17 22:55:48 +01:00
Twinaphex ca25e51812 (PS3) Salamander fixes - still doesn't link with GCC though 2012-03-17 22:51:42 +01:00
Themaister 56e5c9fcec Refactor patch handling. 2012-03-17 01:12:29 +01:00
TwinAphex51224 cd0973d213 (360) Fixed build 2012-03-17 01:10:17 +01:00
Twinaphex 72efdbd916 (PS3) Fixed PS3 and Salamander PS3 builds 2012-03-17 00:58:44 +01:00
Themaister 13373f4873 Merge compat implementations into compat/compat.c. 2012-03-17 00:56:55 +01:00
Twinaphex edad44c950 (PS3) PS3 builds again 2012-03-17 00:45:00 +01:00
TwinAphex51224 6cd800f6ae (360) 360 builds again 2012-03-17 00:52:10 +01:00
Themaister 0ee6aa948e Merge netplay_compat.c into netplay.c. 2012-03-17 00:49:05 +01:00
TwinAphex51224 7974533452 (360) Fixed SSNES Salamander 360 2012-03-17 00:40:48 +01:00
Twinaphex 6c8dd72cd8 (PS3) Build fix for PS3 2012-03-17 00:09:38 +01:00
TwinAphex51224 6b45efa7bc (360) Some build fixes - still not compiling though 2012-03-17 00:13:49 +01:00
Themaister 224db6a4c8 Merge ups.h/bps.h into patch.h. 2012-03-16 23:47:31 +01:00
Themaister ef72584568 Merge ups/bps into patch.c. 2012-03-16 23:42:29 +01:00
Twinaphex 2a6551a62a Fixup includes 2012-03-16 23:31:26 +01:00
Themaister 9ab02b12be Move compat functionality to compat/. 2012-03-16 23:26:57 +01:00
Twinaphex e6b3b96400 (PS3) SDK is always Win32 anyway -so if run on Linux/WINE, we
just use .exe extension instead of setting up all sorts of
complicated symlinks from host-linux to host-win32
2012-03-14 03:19:13 +01:00
TwinAphex51224 47dcb54c1f (PS3/Wii) Make netlogger code portable 2012-03-13 00:45:12 +01:00
Themaister 6cd4989651 Rename macro. 2012-03-12 22:55:19 +01:00
TwinAphex51224 dd9f4be2aa (Wii) Some work on Wii port - included szlib.c - moved input-related
function over to input_luts.c
2012-03-12 22:40:04 +01:00
Themaister 36885e35d7 Kill obsolete test code. 2012-03-12 22:02:34 +01:00
Themaister 49f27c68ff Style nits. 2012-03-12 21:45:43 +01:00
Themaister 5d6c5af8be Style nit. 2012-03-12 18:50:25 +01:00
Themaister 0a2b3ede59 Cleanup. 2012-03-12 17:31:15 +01:00
TwinAphex51224 07a4619a70 (PS3) Now uses new environment extensions too 2012-03-12 17:05:37 +01:00
TwinAphex51224 37b8585df4 (Console) Clean up ssnes_console_get_rom_ext 2012-03-12 14:30:15 +01:00
TwinAphex51224 71189737de (360) Stack size increase - Gunbird 2 in FBA boots now 2012-03-12 06:30:41 +01:00
TwinAphex51224 8781b5c7d3 (360) Works now - environment settings were getting 'defaulted'
- placed init_libsnes_syms now right before menu_init
2012-03-12 04:34:49 +01:00
TwinAphex51224 ed4a81e497 (360) More of aforementioned 2012-03-12 03:53:44 +01:00
TwinAphex51224 e1bbaee64c (360) Set up SSNES 360 for new console environment settings 2012-03-12 03:08:15 +01:00
Themaister d7afd20346 Add new extensions to help FBA. 2012-03-12 00:39:24 +01:00
TwinAphex51224 fe0a6c8d07 (360 FB Alpha 360 libsnes works now 2012-03-11 23:03:20 +01:00
TwinAphex51224 a328bd578e (360/PS3) Some changes needed for FBA on consoles in specific 2012-03-11 22:39:48 +01:00
Themaister 7f4d701b19 Preparations for 0.9.5 release. 2012-03-11 17:52:10 +01:00
TwinAphex51224 06a951ef7f (360) Add NOD3D define to netplay.c too 2012-03-11 16:26:10 +01:00
TwinAphex51224 51b3cafed7 (360) Add xdk360_video_general.h header file 2012-03-11 16:19:47 +01:00
TwinAphex51224 81988fc1ef (360) Don't include D3D/Netcode where not needed through NOD3D/
NONET defines
2012-03-11 16:17:42 +01:00
TwinAphex51224 1f00ce1812 (360) Use C version code in objbase.h for XAudio2 2012-03-11 15:00:15 +01:00
TwinAphex51224 2295c4abd8 (360) Add objbase.h 2012-03-11 14:45:20 +01:00
TwinAphex51224 48230ba533 (360) Use more direct functions for Xaudio2 2012-03-11 07:24:53 +01:00
TwinAphex51224 4737d28644 (360) Add custom Xaudio header 2012-03-11 06:58:56 +01:00
TwinAphex51224 5c4ad2884e (360) Get rid of unused font_texture 2012-03-11 03:57:07 +01:00
TwinAphex51224 e30966bfd0 (360) Get rid of constant table - seem to be getting nowhere with
this
2012-03-11 03:40:52 +01:00
TwinAphex51224 c5d8e1a75c (360) Add constant table for fragment shader too 2012-03-10 20:55:55 +01:00
TwinAphex51224 c2cc7a278f (360) Nit 2012-03-10 18:54:07 +01:00
TwinAphex51224 5cad1e4c39 (360) Stock Cg/HLSL shaders should be now almost the same - only
mall 1/2-line ifdefs should be needed
2012-03-10 18:50:30 +01:00
Themaister 8a6b628bee Allow stopping playback early. 2012-03-10 18:31:25 +01:00
Themaister f78df09c38 Do not fail hard if serializer doesn't match. 2012-03-10 18:10:54 +01:00
TwinAphex51224 40035908f3 (360) Nit. 2012-03-10 17:00:21 +01:00
TwinAphex51224 b0de19f3e0 (360) force_resize_enable member was a hack for hacky orientation,
can go now that we do it properly
2012-03-10 16:57:59 +01:00
TwinAphex51224 a47bcf6cc1 (360) Texture coordinates updated now again per video width/height change 2012-03-10 16:50:11 +01:00
TwinAphex51224 bc307d4b63 (360) Moving away from crufty orientation code 2012-03-10 16:41:10 +01:00
TwinAphex51224 bdb8b3f0fe (360) MVP shader stuff fixed 2012-03-10 15:51:42 +01:00
TwinAphex51224 6053b61b5b (360) MVP stuff - right now ouputs black - to be fixed shortly 2012-03-10 15:32:36 +01:00
Themaister 7489f387c1 Do not block state saving when playing/recording a movie. 2012-03-10 14:08:04 +01:00
TwinAphex51224 31be6766c6 (360) Uses runtime shader compiler - loads stock shader from
file now
2012-03-09 21:50:12 +01:00
Themaister 6b552cfba1 Revert derp. 2012-03-09 18:20:03 +01:00
Themaister 848a67252f Fix subtle regression. 2012-03-09 18:18:35 +01:00
TwinAphex51224 8d5385d1d7 (PS3) Aspect ratio fix 2012-03-09 01:21:10 +01:00
TwinAphex51224 7d8d8f39f7 (360) Add aspect ratio changing - fixed bugs 2012-03-09 01:22:01 +01:00
TwinAphex51224 760d3bbecf (360) WIP aspect ratio changing - currently broken 2012-03-09 00:09:39 +01:00
TwinAphex51224 ac070a6b2b (360) Added gamma correction setting 2012-03-08 23:29:18 +01:00
TwinAphex51224 94f09d2093 (360) Some more replacing of D3D functions 2012-03-08 21:15:18 +01:00
TwinAphex51224 b8e6443710 (360) Use C functions for D3D 2012-03-08 16:14:09 +01:00
TwinAphex51224 8823b47a05 (360) Added screen orientation options - might want to refactor
this later on
2012-03-08 13:45:00 +01:00
Themaister a3351e17f1 Fix hang with FFV1. 2012-03-08 00:45:03 +01:00
Themaister c1544e88aa Cleanups, and fixes h264 with recent FFmpegs. 2012-03-08 00:33:22 +01:00
TwinAphex51224 4e68eb12ab Add back HAVE_ZLIB ifdefs for console_ext.c 2012-03-07 20:32:51 +01:00
TwinAphex51224 428050904c (360) ZIP files can now be unzipped - press X on a ZIP file to
unzip the files to the cache: partition - from the filebrowser
you can then go to the cache partition and load the unzipped ROM.
2012-03-07 20:33:14 +01:00
TwinAphex51224 ee806a0e2c (PS3) Don't compile in gfx_common.c 2012-03-07 17:55:04 +01:00
Themaister e318a1d5a7 Fix incompatibility with non-compilant C runtime. 2012-03-07 12:42:22 +01:00
Themaister ca0986064d Micronit (pt. 2). 2012-03-06 23:50:44 +01:00
Themaister 057846e45b Micronit. 2012-03-06 22:48:45 +01:00
Themaister d4c1cf4853 Style nits. 2012-03-06 22:45:51 +01:00
TwinAphex51224 9708536cd8 (PS3) ZIP files can now be unzipped - if you press X on a ZIP file
in the file browser, it will extract the contents to the /dev_hdd1
partition. You can then start the ROM from there. (problem right
now - savestates/SRAM get saved to this swap partition too -
which we flush at SSNES exit)
2012-03-06 22:20:15 +01:00
TwinAphex51224 f61348e53f (PS3) Mount system cache partition at startup and clear it at
exit - we'll use this for uncompressing ROMs in ZIP archives
2012-03-06 21:03:43 +01:00
TwinAphex51224 556e158020 (Szlib) Added unzip.c and fileapi.c to szlib.c 2012-03-06 20:23:24 +01:00
TwinAphex51224 d9337a2589 (Szlib) Cleanups #3 2012-03-06 18:15:48 +01:00
TwinAphex51224 cc476af1fe (Szlib) Cleanups #2 2012-03-06 18:02:54 +01:00
TwinAphex51224 4365b77577 (Szlib) cleanup 2012-03-06 17:49:49 +01:00
TwinAphex51224 f7c2bfe530 (PS3) Libsnes ports can now set per-system default keybind names 2012-03-06 16:06:47 +01:00
TwinAphex51224 44b873af5b Rename rom_ext.c to console_ext.c - rename xdk360_input.cpp to
xdk360_input.c
2012-03-06 14:12:28 +01:00
TwinAphex51224 4ff4957a45 (360) Use input LUTs in code 2012-03-06 13:35:20 +01:00
TwinAphex51224 3239edccb9 (360) Add keybind LUTs for 360 too 2012-03-06 12:59:40 +01:00
TwinAphex51224 fe0da105b5 (PS3) Add ssnes_ * to LUTs 2012-03-05 23:40:40 +01:00
Themaister 4c361bc648 Nit. 2012-03-05 23:48:14 +01:00
TwinAphex51224 9d17ccf4f3 (PS3) Ping pong commit to get everything working again 2012-03-05 23:32:51 +01:00
Themaister 25a97b1d8c Refactor. 2012-03-05 23:32:38 +01:00
TwinAphex51224 cd9dd6511d (PS3) Input can now be reconfigured 2012-03-05 23:01:26 +01:00
Themaister 37c29144d8 Log error code on dylib failure in Windows. 2012-03-05 21:40:00 +01:00
TwinAphex51224 3c2591f71f Revert "Revert "Remove useless return.""
This reverts commit 4959b8e20e.
2012-03-05 21:31:11 +01:00
TwinAphex51224 6ef7eae423 Revert "Attempt to fix set_keybind_digital."
This reverts commit 379614ca1c.
2012-03-05 21:30:28 +01:00
TwinAphex51224 4959b8e20e Revert "Remove useless return."
This reverts commit 24e807f520.
2012-03-05 21:30:28 +01:00
TwinAphex51224 7e1e293547 (PS3) Input changes 2012-03-05 21:30:28 +01:00
Themaister 4bd53c0b96 Properly extern. 2012-03-05 19:49:19 +01:00
Themaister 47f95020f0 Style nits. 2012-03-05 18:01:27 +01:00
TwinAphex51224 e4506d5a3e (PS3) Keybind name LUT 2012-03-05 17:33:41 +01:00
Themaister b612bb5290 Fix typo. 2012-03-05 17:37:18 +01:00
TwinAphex51224 f453ee7954 (PS3) Input LUTs 2012-03-05 16:57:43 +01:00
TwinAphex51224 0b3f0de625 (360) Will now start at root of game:\\ volume in ROM browser
as default path
2012-03-05 13:27:10 +01:00
TwinAphex51224 80a680a7ee (360) You can change between libsnes cores now from the menu 2012-03-05 13:06:24 +01:00
TwinAphex51224 762c2cb170 (360) Added SSNES Salamander to 360 - will now boot CORE.xex
from SSNES-Salamander.xex and rename CORE.xex once booted.
2012-03-05 12:07:09 +01:00
TwinAphex51224 7b4d48a69f (PS3) Use MAX_PADS for input state array 2012-03-05 07:35:50 +01:00
TwinAphex51224 bd500ae249 (360) Header typos 2012-03-05 01:15:27 +01:00
TwinAphex51224 ad5c890603 (360) Forgot to add new xdk360_input.h header file 2012-03-05 01:10:26 +01:00
TwinAphex51224 f46889daae (360) D-pad mapped to left analog stick -make this configurable
later on (same for PS3 port)
2012-03-05 01:00:09 +01:00
TwinAphex51224 b82d9be0ae (360) Compile in szlib.c 2012-03-04 23:28:32 +01:00
Themaister 449b08e9d5 Fix warning. 2012-03-04 23:17:27 +01:00
TwinAphex51224 a2fe0330eb (360) 360 compiles again 2012-03-04 23:15:25 +01:00
Themaister e3c5ebd937 Add define for strtoull. 2012-03-04 23:09:05 +01:00
TwinAphex51224 afdcae3ee8 (PS3) Link libsnes.a last in link order 2012-03-04 22:43:10 +01:00
TwinAphex51224 d2e3d8db28 (PS3) Compiles in szlib.c now 2012-03-04 21:53:04 +01:00
Themaister 10ac66e734 Legal stuff. 2012-03-04 21:54:07 +01:00
TwinAphex51224 5ebd0b4ed1 Initial commit of SZlib 2012-03-04 21:38:33 +01:00
Themaister 227ae4ca74 Small fix. 2012-03-04 18:24:11 +01:00
Themaister 379614ca1c Attempt to fix set_keybind_digital. 2012-03-04 14:51:43 +01:00
Themaister 24e807f520 Remove useless return. 2012-03-04 13:59:45 +01:00
Themaister 2463924d69 Use uint64_t across the board for joykeys. 2012-03-04 13:55:35 +01:00
Themaister 6e0da33c60 Fix allocation. 2012-03-04 13:20:09 +01:00
Themaister fd54b26532 Add to joyconfig. 2012-03-04 12:01:41 +01:00
Themaister ea0233716e Slow motion mode. 2012-03-04 12:01:07 +01:00
Themaister d891230800 Minor fix. 2012-03-04 01:11:49 +01:00
Themaister 1bf564955c Cleanup. 2012-03-04 00:36:28 +01:00
Themaister f548ebb1a2 Cleanup typedefs. 2012-03-03 23:57:42 +01:00
TwinAphex51224 6e1d48a625 (PS3) Default emulator core setting 2012-03-03 23:26:14 +01:00
TwinAphex51224 b73d8bb569 (PS3) Blending in menu now works correctly across all shaders 2012-03-03 17:58:14 +01:00
TwinAphex51224 ed5e67425c (PS3) Added custom BGM music hooks 2012-03-03 17:23:00 +01:00
TwinAphex51224 d76d8a7d9c (PS3) Updated PARAM.SFO - should now support custom BGM music 2012-03-03 16:53:38 +01:00
TwinAphex51224 8ef9e99960 (PS3) Saves custom viewport settings now 2012-03-03 16:10:03 +01:00
TwinAphex51224 cd08339051 (PS3) D-pad analog stick left mapping - make this configurable later
on
2012-03-03 14:57:28 +01:00
TwinAphex51224 85ee49b2cd (PS3) Add HAVE_RSOUND to PS3 Makefile 2012-03-03 14:12:14 +01:00
TwinAphex51224 5f3453bc38 (PS3) Another commit for multiMAN compatibility 2012-03-03 12:31:51 +01:00
TwinAphex51224 d8720ab9d8 (PS3) Should fix multiMAN compatibility 2012-03-03 12:29:16 +01:00
TwinAphex51224 04a1388640 (PS3) Fixed some settings 2012-03-03 12:09:56 +01:00
TwinAphex51224 db87f664b8 (PS3) Sound options added - reiniting sound has yet to happen 2012-03-03 11:54:14 +01:00
Themaister ae5900aaa1 Add video_h264_record option. 2012-03-02 22:19:49 +01:00
TwinAphex51224 4b67a3c59e (PS3) Compiles in rsound now 2012-03-01 21:32:01 +01:00
TwinAphex51224 c6fa39fde0 (PS3) Implemented Resize mode 2012-03-01 16:55:19 +01:00
TwinAphex51224 051c82daed (PS3) CGP files can now be saved 2012-03-01 14:50:37 +01:00
TwinAphex51224 de9db9bcea (PS3) More control settings - NOTE: public controller config save/load
functions do not work properly and do not save the proper values
2012-03-01 14:22:16 +01:00
TwinAphex51224 9a1cf7525e (PS3) Added oskutil.c 2012-02-29 20:20:25 +01:00
Themaister 90984ce3cc config_read_keybinds takes path. 2012-02-29 19:25:54 +01:00
Themaister dc1d9b674a config_save_keybinds takes a pathname directly. 2012-02-29 19:07:25 +01:00
Themaister 47c9fda3c9 Fix off-by-one bug in joypad ID handling. 2012-02-29 18:59:44 +01:00
TwinAphex51224 452f3f4c43 (PS3) Last control setting can now be changed 2012-02-29 18:41:09 +01:00
TwinAphex51224 6c64a024eb (PS3) Initial joypad button rebinding through menu 2012-02-29 09:16:21 +01:00
Themaister 59dbc4727b Generate for rest of slide window. 2012-02-28 23:01:18 +01:00
Themaister 57e17d9b14 Optimize resampler some more. 2012-02-28 22:58:19 +01:00
Themaister 7b0b1a7004 Only enable SINC by default for 64-bit Windows. 2012-02-28 19:28:06 +01:00
TwinAphex51224 fd99d9f3bc (PS3) You can set IP address of development PC and UDP port (for
UDP logging)
2012-02-28 16:32:52 +01:00
TwinAphex51224 1386c97ad2 (PS3) Multiman fixes 2012-02-28 16:26:54 +01:00
TwinAphex51224 9d19ef4969 (PS3) Small fix for Multiman - argc > 1 2012-02-28 15:54:51 +01:00
TwinAphex51224 ffc6fc5e24 (PS3) Added Multiman hooks 2012-02-28 14:42:29 +01:00
TwinAphex51224 11720b8113 (PS3) Added EMULATOR_CORE_DIR define 2012-02-28 12:07:55 +01:00
TwinAphex51224 308d89ead7 (PS3) Cleaned up Salamander 2012-02-28 11:09:43 +01:00
TwinAphex51224 c5cee1f945 (PS3) Salamander and exitspawn work now - thanks to deank 2012-02-28 10:42:34 +01:00
TwinAphex51224 ee99acfd71 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-28 09:38:50 +01:00
TwinAphex51224 08414d1f5c (PS3) Small push 2012-02-28 09:38:31 +01:00
Themaister 18aebfedc2 Test for IDFT. 2012-02-28 00:52:49 +01:00
Themaister c8173aaf62 Calculate imaginary part correctly. 2012-02-28 00:29:45 +01:00
Themaister c975145914 Use omega to report response. 2012-02-27 21:34:31 +01:00
Themaister 2fecfc7fca Drop phase measurement as they're kinda useless. 2012-02-27 21:13:50 +01:00
TwinAphex51224 a4b3fbcebe Merge branch 'master' of github.com:Themaister/SSNES 2012-02-27 20:08:04 +01:00
TwinAphex51224 f01663550c Added logging features - set HAVE_LOGGING to enable 2012-02-27 20:07:24 +01:00
Themaister 24817543e0 Implement FFT for better SNR verification. 2012-02-27 19:49:00 +01:00
Themaister b50ddfc87a Fix some static analyzer warnings. 2012-02-27 17:29:59 +01:00
Themaister 302dc9460f Add override possibility for logger interface. 2012-02-27 17:24:11 +01:00
TwinAphex51224 351e58b856 (PS3) fixed pkg rule 2012-02-27 14:01:05 +01:00
TwinAphex51224 8aa2eb9741 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-27 13:44:46 +01:00
TwinAphex51224 90165492a1 (PS3) Added makefile targets for PS3 CFW - NOTE: SSNES Salamander
doesn't seem to work yet on CFW PS3 - use make pkg-signed-standalone
for now on CFW PS3 until this gets sorted out.
2012-02-27 13:43:44 +01:00
Themaister afa6776b1d Add cutoff. 2012-02-26 19:18:51 +01:00
TwinAphex51224 60edff831a (PS3) Add override for Salamander -press and hold Triangle button
at startup to launch the first SELF file found in the cores/ directory
2012-02-26 18:12:18 +01:00
TwinAphex51224 98bd071fd3 (PS3) Add non-NPDRM exitspawn fallback 2012-02-26 17:30:01 +01:00
TwinAphex51224 ac5fb991a2 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-26 15:19:40 +01:00
TwinAphex51224 2e5e5f3c35 (PS3) Added SSNES Salamander - emulator cores can now be installed and
you can now switch between cores - if on an older install, remove your
ssnes.cfg file
2012-02-26 15:18:44 +01:00
Themaister 9d0a55285d Rename msvc-ps3 folder. 2012-02-26 02:50:52 +01:00
Themaister 9b4a91fd29 Add rate control to coreaudio. 2012-02-26 01:22:07 +01:00
Themaister b4fe5198b3 Win32 doesn't have memalign ... 2012-02-25 22:37:40 +01:00
Themaister c20df730e3 Make sinc resampler default on PC. 2012-02-25 22:12:49 +01:00
Themaister 37ed625bab Use shuffles/movehl. 2012-02-25 21:47:40 +01:00
Themaister 3446774547 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-25 21:18:09 +01:00
Themaister a5c47a568e Attempt to measure phase distortion as well. 2012-02-25 21:17:48 +01:00
TwinAphex51224 e70ea21a3a (PS3) Remove selected border option again 2012-02-25 20:40:02 +01:00
TwinAphex51224 c310e32dd0 Merge branch 'master' of github.com:Themaister/SSNES
Conflicts:
	console/rom_ext.c
	console/rom_ext.h
2012-02-25 20:15:22 +01:00
TwinAphex51224 248f5efbd6 (PS3) Initial WIP exitspawn loading of external executables -
will flesh this out in subsequent ports
2012-02-25 20:11:57 +01:00
Themaister a03c11d7d0 Clarify a bit. 2012-02-25 17:29:02 +01:00
Themaister 2e9fade00a Add name generation from id. 2012-02-25 17:05:52 +01:00
Themaister 3dc5b21b78 Use lanzcos instead (better SNR). 2012-02-25 16:45:06 +01:00
Themaister dd57e0ae63 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-25 16:33:51 +01:00
Themaister bdc8cd1cb1 Apply deltas to last phase as well. 2012-02-25 16:33:33 +01:00
TwinAphex51224 cacf15a065 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-25 14:39:07 +01:00
TwinAphex51224 989962f5a9 (PS3) Better environment detection rules for Windows 2012-02-25 14:38:28 +01:00
Themaister 7c15f5a537 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-25 14:32:59 +01:00
Themaister 6643bf3e1c Use floating point for sample offsets. 2012-02-25 14:31:57 +01:00
TwinAphex51224 60256eb52f (PS3) Remove SETTING_BORDER - will reintroduce this in CGP Manager
menu (implemented better)
2012-02-25 14:15:25 +01:00
Themaister 74de5350d2 Merge branch 'master' of github.com:Themaister/SSNES
Conflicts:
	audio/test/snr.c
2012-02-25 14:06:15 +01:00
Themaister cd54cc6822 Improve SNR testing routines. 2012-02-25 14:02:56 +01:00
Themaister 2fba62867f Attempt to account for make-up-gain. Still not good ... 2012-02-25 04:51:01 +01:00
Themaister 5f330cbfa5 Fix printf format. 2012-02-25 01:50:08 +01:00
Themaister 9bad6f2bba Add resampler tests. 2012-02-25 01:47:23 +01:00
Themaister 0496ffc007 Optimize sinc resampler a bit. 2012-02-24 21:01:29 +01:00
Themaister bb824b5679 Optional SINC. 2012-02-24 00:28:41 +01:00
Themaister 1ea4b5ce7c Fix build. 2012-02-23 23:57:35 +01:00
Themaister f5a4ea55f5 Add sinc resampler. 2012-02-23 23:53:18 +01:00
Themaister aecd9a1ecb Rename resampler functions to something more generic. 2012-02-23 23:22:08 +01:00
Themaister a797e1dbf4 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-22 23:35:29 +01:00
Themaister 9c664b875a LUT info for Cg. 2012-02-22 23:35:01 +01:00
TwinAphex51224 375d05ed13 (PS3) Fixes the issue with resolution switching + cleaned up
some stuff
2012-02-22 21:42:17 +01:00
Themaister a13684c80c gl_cg_invalidate_context. 2012-02-22 20:45:58 +01:00
TwinAphex51224 678269039b Merge branch 'master' of github.com:Themaister/SSNES 2012-02-22 19:49:51 +01:00
TwinAphex51224 ece5935ef9 (PS3) Improved controls in menu - less twitchy controls 2012-02-22 19:49:22 +01:00
Themaister 341baf6918 If samplerate is not supported, do not fail. 2012-02-21 23:39:50 +01:00
TwinAphex51224 4acf66edfd (PS3) Enable image SPU decompression again 2012-02-21 00:00:17 +01:00
TwinAphex51224 10cfe3daa8 (PS3) update_input works now on PS3 2012-02-20 23:44:56 +01:00
TwinAphex51224 be3839a9df (PS3) Proper FBO scales now 2012-02-20 22:34:11 +01:00
TwinAphex51224 0023b4b2ce Merge branch 'master' of github.com:Themaister/SSNES 2012-02-20 21:06:13 +01:00
TwinAphex51224 17e0f19859 (PS3) Do malloc of pixels inside texture_image_load instead
of outside - same with free - still a problem with load_cgp
2012-02-20 21:05:34 +01:00
Themaister 383b2abe58 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-20 20:36:42 +01:00
Themaister 5ce54cbbab Implement config_save_keybinds. 2012-02-20 20:36:21 +01:00
TwinAphex51224 2c2dcd58f2 (PS3) Initial cgp file loading - not yet working 2012-02-20 20:24:23 +01:00
TwinAphex51224 ee76898cab Merge branch 'master' of github.com:Themaister/SSNES 2012-02-20 19:01:31 +01:00
TwinAphex51224 a41e84749a (PS3) Quit crashes fixed 2012-02-20 19:01:09 +01:00
Themaister d68658b7fb Merge branch 'ratecontrol' 2012-02-20 18:40:07 +01:00
Themaister c833a71d2c Rate control for Pulse and Jack. 2012-02-20 18:39:50 +01:00
Themaister f1b135978c Merge branch 'master' of github.com:Themaister/SSNES 2012-02-20 18:30:44 +01:00
Themaister 6f04c38fda Use larger fragsize for OSS. 2012-02-20 18:30:26 +01:00
TwinAphex51224 cc979581eb Merge branch 'master' of github.com:Themaister/SSNES 2012-02-20 18:17:15 +01:00
TwinAphex51224 fe0ce2b78b (PS3) Better deiniting/freeing up of resources 2012-02-20 18:16:51 +01:00
Themaister b8382416ee Merge branch 'master' of github.com:Themaister/SSNES 2012-02-20 16:23:19 +01:00
Themaister 9bcbd27988 Add gl_cg_reinit(). 2012-02-20 16:22:58 +01:00
TwinAphex51224 3845844b83 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-20 16:11:14 +01:00
TwinAphex51224 d7a29a66b4 (PS3) Add some more notifications to get_environment_settings -
clean up 'block/unblock swap' printfs
2012-02-20 16:10:32 +01:00
Themaister 6a7144d41c Add absolute paths to .cgp. 2012-02-20 15:45:38 +01:00
TwinAphex51224 12cf639dfe (PS3) Initial (WIP) support for external launchers like multiMAN -
also some control flow cleanups
2012-02-20 07:50:59 +01:00
TwinAphex51224 4604a995e9 (PS3) Scale factor can now be changed from ingame menu and
regular menu
2012-02-20 04:07:18 +01:00
Themaister 0b9ee6055f Merge branch 'master' into ratecontrol 2012-02-19 20:22:02 +01:00
TwinAphex51224 acd51a7dad Merge branch 'master' of github.com:Themaister/SSNES 2012-02-19 03:27:15 +01:00
TwinAphex51224 6d98da16b0 (PS3) Add experimental HAVE_SSNES_GL option (for custom GL libs) 2012-02-19 03:26:45 +01:00
Themaister 3407e765c3 Merge branch 'master' into ratecontrol 2012-02-18 13:05:47 +01:00
Themaister 2ef54a7e01 Might fix hat lookup. 2012-02-18 13:00:14 +01:00
Themaister aac2533075 Streamline hat lookup. 2012-02-18 12:32:49 +01:00
Themaister fd2be071f8 Merge branch 'master' into ratecontrol 2012-02-18 12:12:05 +01:00
Themaister 947d2a3514 Fixed joypad index lookup. 2012-02-18 12:09:20 +01:00
Themaister 3fd630e062 Log anatomy of input device. 2012-02-18 11:59:55 +01:00
TwinAphex51224 471dfcd478 (360) Filebrowser can now load ROMs from subdir 2012-02-17 21:28:23 +01:00
TwinAphex51224 8e8f56b5e8 (360) Combined console and font code into one file 2012-02-17 19:35:51 +01:00
Themaister 744a433595 Merge branch 'master' into ratecontrol 2012-02-16 23:02:18 +01:00
TwinAphex51224 f9ab3711eb (360) Remove some comments 2012-02-16 22:34:19 +01:00
TwinAphex51224 96cb22dbaa Merge branch 'master' of github.com:Themaister/SSNES 2012-02-16 22:11:42 +01:00
TwinAphex51224 f2f09ce2ed (360) xdk360_video_debugfonts is no longer class-based 2012-02-16 22:10:54 +01:00
Themaister 6d1ab7ebfd Revert changes with HAVE_XML. The XML read for memory map are not parsed
in any way by SSNES and does not depend on libxml2.

Also keep removal of log where XML map is not found (very likely
anyways).
2012-02-16 20:25:25 +01:00
TwinAphex51224 356d565ce6 (360) xdk360_video_console no longer class-based 2012-02-16 18:19:22 +01:00
TwinAphex51224 8ec0cb4f6c (360) Simplified video console 2012-02-16 17:45:11 +01:00
TwinAphex51224 fd9f020afa (360) Remove PIX calls 2012-02-16 16:28:31 +01:00
TwinAphex51224 52402d02c5 (360) Some improvements to font rendering 2012-02-16 16:14:31 +01:00
TwinAphex51224 1373ba167d (360) Remove font centering/alignment code 2012-02-16 15:43:15 +01:00
TwinAphex51224 668aa9a9ac (360) removed some unused code in console/debug fonts 2012-02-16 15:27:51 +01:00
TwinAphex51224 3585e046de (Core) Add some more HAVE_XML ifdefs 2012-02-16 03:55:22 +01:00
TwinAphex51224 2760b5b0c2 (Core) Don't create 'can't load XML memory map' if HAVE_XML
is not defined for the port
2012-02-16 03:49:13 +01:00
TwinAphex51224 441cd2b82a (PS3) Some cleanups in ps3_video_psgl.c 2012-02-16 03:36:40 +01:00
Themaister fe2134cb8c Fix warning. 2012-02-15 20:19:29 +01:00
TwinAphex51224 04e2541694 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-15 18:58:02 +01:00
TwinAphex51224 878e612584 (PS3) Use new public save slot increment/decrement functions 2012-02-15 18:57:36 +01:00
TwinAphex51224 8dcf132b0c (360) Updated 360 port too 2012-02-15 18:57:29 +01:00
Themaister da7cf7e01d Merge branch 'master' into ratecontrol 2012-02-15 18:55:56 +01:00
TwinAphex51224 317f255eae (Core) Remove obsolete file checking function 2012-02-15 18:43:35 +01:00
Themaister b87e1c4f48 Make ssnes_state_slot_increase/decrease public. 2012-02-15 18:49:23 +01:00
TwinAphex51224 3cc042e2a6 (360) Compile fix for filepath_exists 2012-02-15 02:24:22 +01:00
TwinAphex51224 2cb946ec8b (Core) Add filepath_exists to file.c - needed for console ports 2012-02-15 02:09:55 +01:00
TwinAphex51224 8459f39933 (360) Remove PNGs we are no longer going to use in our GUI 2012-02-15 01:44:16 +01:00
TwinAphex51224 56e57d15bc (PS3) Fixed settings appearance 2012-02-15 01:37:49 +01:00
TwinAphex51224 975536ddbf (PS3) Some cleanups to ingame menu 2012-02-15 01:27:53 +01:00
TwinAphex51224 df997f6d23 (PS3) Better-looking Quick Menu/menu 2012-02-14 22:46:48 +01:00
TwinAphex51224 cb3064201e (PS3) Trying to have tranparent PNG with game image on back
in ingame menu
2012-02-14 21:34:18 +01:00
TwinAphex51224 48d589ffce (360) New Quick Menu 2012-02-14 17:34:25 +01:00
Themaister 16c740ffd8 Merge branch 'master' into ratecontrol 2012-02-14 16:58:55 +01:00
Themaister 80372f54a6 Add rate control calls for more backends. 2012-02-14 16:58:13 +01:00
Themaister a6a068e09e Add write_avail/buffer_size for XAudio. 2012-02-14 16:16:22 +01:00
TwinAphex51224 227f347e70 (360) Added initial Quick Menu 2012-02-14 02:41:35 +01:00
Themaister 438ac4ca4b Begin adding rate control. 2012-02-14 01:16:37 +01:00
TwinAphex51224 69a5faaaab (360) Implement swap callback 2012-02-13 22:53:07 +01:00
TwinAphex51224 1b28ea4945 (360) implement set swap block callback 2012-02-13 22:45:28 +01:00
TwinAphex51224 55a400f521 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-13 22:25:46 +01:00
TwinAphex51224 d77560f1ea (PS3) Implement swap callback as well 2012-02-13 22:25:25 +01:00
TwinAphex51224 786adb23ac (PS3) Implement ssnes_load_state/ssnes_save_state 2012-02-13 22:16:41 +01:00
TwinAphex51224 a03dd57166 (PS3) Use new set swap block callback 2012-02-13 22:07:19 +01:00
Themaister bb642d3010 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-13 22:04:46 +01:00
Themaister 21e39eea2b Use config_get_float. 2012-02-13 22:04:25 +01:00
TwinAphex51224 761f5d7a5c (PS3) Refactoring of ingame menu 2012-02-13 21:37:32 +01:00
Themaister e0408c30ae Slight refactor. Make ssnes_load_state(), ssnes_save_state() public. 2012-02-13 20:57:32 +01:00
Themaister 78136e0191 Make keybind loader public. 2012-02-13 19:20:24 +01:00
Themaister 77e55bb577 Add some video callbacks for consoles. 2012-02-13 19:17:13 +01:00
TwinAphex51224 89b99428f9 (PS3) Fix to Makefile for Win 2012-02-13 17:18:22 +01:00
TwinAphex51224 beeb660103 (360) Added new ingame menu (Right thumb stick) - will still have
to add a 'Quick Menu'
2012-02-13 16:45:08 +01:00
TwinAphex51224 9969474326 (360) Dehardcode control binds 2012-02-13 15:53:50 +01:00
TwinAphex51224 1307648d08 (360) Simplify filtering types to 'point filtering' and 'linear
interpolation' (anisotropic is useless for 2D) - also get rid
of filter_type member in g_console
2012-02-13 15:16:01 +01:00
TwinAphex51224 eeafd335fa (PS3) ingame_menu_item now part of console_settings 2012-02-13 14:33:24 +01:00
TwinAphex51224 32a52f5d01 (PS3) Windows compiler compatibility fix 2012-02-13 14:00:27 +01:00
TwinAphex51224 08f3313a3b (360) Some more cleanups to console/debug fonts/resources 2012-02-13 04:28:44 +01:00
TwinAphex51224 98f30469eb (360) Some cleanups 2012-02-13 02:51:07 +01:00
TwinAphex51224 36309050c4 (360) Skeleton ingame menu - doesn't yet draw anything yet other
than cached game image
2012-02-13 02:35:01 +01:00
TwinAphex51224 5a3b88bdd6 (360) Added /privilege=6 to imagexex command line (allow insecure
sockets - no more 'couldn't resolve symbolic link root name
XlfsUploadCache'
2012-02-13 00:05:23 +01:00
Themaister 000d863ae0 Fix nonblock bug. 2012-02-12 21:12:55 +01:00
Themaister 38d73e9da2 Use SSNES_CONSOLE. 2012-02-12 20:56:57 +01:00
TwinAphex51224 5f649bf2be Merge branch 'master' of github.com:Themaister/SSNES 2012-02-12 18:43:25 +01:00
TwinAphex51224 9609eca940 (360) Added fast forwarding option (hold down RStick down) 2012-02-12 18:42:51 +01:00
Themaister 5f71f48973 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-12 18:07:07 +01:00
Themaister 5aa6acf031 Add *_equal semantics. 2012-02-12 18:05:33 +01:00
TwinAphex51224 ccfa448a66 (360) Some more cleanups 2012-02-12 17:39:02 +01:00
TwinAphex51224 1090eeb159 (360) Some cleanups 2012-02-12 17:13:13 +01:00
TwinAphex51224 3a66829933 (360) Working debug fonts 2012-02-12 15:23:35 +01:00
TwinAphex51224 045e72661a Merge branch 'master' of github.com:Themaister/SSNES 2012-02-12 01:36:01 +01:00
TwinAphex51224 b9ef2ff133 (360) Added missing header file for debug fonts 2012-02-12 01:35:38 +01:00
TwinAphex51224 80136435d2 (360) Experimental WIP debug fonts (not yet working) 2012-02-12 01:34:48 +01:00
Themaister 9c861f13be Fix additional exclamation marks. 2012-02-11 21:16:01 +01:00
Themaister 1cff87c758 Change exclamation marks with dots for less scream factor. 2012-02-11 20:59:41 +01:00
TwinAphex51224 ffc0c1d77e (PS3) Frame advance implemented 2012-02-11 19:22:51 +01:00
TwinAphex51224 2148ce9dec (PS3) Can now return to menu from game by pressing L3 + R3 2012-02-11 16:27:13 +01:00
TwinAphex51224 390628b1e3 (360) Can now return back to game from the menu by pressing
L3 + R3 (if a ROM has already been loaded)
2012-02-11 15:31:11 +01:00
TwinAphex51224 6e753d7d99 (360) Non-HD height fix 2012-02-10 17:32:43 +01:00
TwinAphex51224 c07bcbea53 (360) Support for non-HD TVs 2012-02-10 17:31:20 +01:00
TwinAphex51224 c0cba36dec (360) Added hardware filtering settings 2012-02-10 17:17:44 +01:00
TwinAphex51224 34b85e115b Merge branch 'master' of github.com:Themaister/SSNES 2012-02-09 18:12:37 +01:00
TwinAphex51224 40c3158d7e (360) Some more settings read from/saved to config file 2012-02-09 16:47:29 +01:00
TwinAphex51224 64728e38a4 (PS3) Use new members in g_console 2012-02-09 14:25:13 +01:00
TwinAphex51224 979b54178e (360) Moved some state variables to g_console struct 2012-02-09 14:11:55 +01:00
TwinAphex51224 3a33c5e1ec (360) Push small fix for config file loading/saving 2012-02-09 03:06:43 +01:00
TwinAphex51224 aeeb491a49 (360) Config file gets loaded and saved now 2012-02-09 03:10:20 +01:00
TwinAphex51224 38fb6f0a62 (360) Added header for menu.h 2012-02-09 02:36:09 +01:00
TwinAphex51224 b094151abb (360) Use LTCG 2012-02-09 02:00:24 +01:00
TwinAphex51224 e5e19edc65 (360) Special button mappings added - RSTICK Up - Rewind - RSTICK
Up + RT - Load State - RSTICK Down + RT - Save State -RSTICK
Left + RT - Save State Minus - RSTICK Right + RT - Save State Plus
2012-02-09 00:58:22 +01:00
TwinAphex51224 2cd7349cac (360) No more memset in input_poll function 2012-02-08 21:10:13 +01:00
TwinAphex51224 dc1a32f7f7 (360) Can exit back to menu and load another ROM with thumb stick
left + thumb stick right - loads several ROMs fine but might still
be crash-prone
2012-02-08 18:52:42 +01:00
Themaister 315b28862a Add gl_cg_save_cgp(). 2012-02-08 17:23:44 +01:00
TwinAphex51224 f6edb9a607 (360) Menu - A/B images show up now 2012-02-08 16:10:01 +01:00
TwinAphex51224 93072b926e Merge branch 'master' of github.com:Themaister/SSNES 2012-02-08 15:23:59 +01:00
TwinAphex51224 c161e3bc35 (360) Filebrowser can now navigate subdirs 2012-02-08 15:23:12 +01:00
Themaister 3bda32d6f1 Add SET_VARIABLES interface. 2012-02-06 16:13:29 +01:00
Themaister fea632b0e9 Add environment variable system extension. 2012-02-06 15:51:35 +01:00
TwinAphex51224 d959bc968a Merge branch 'master' of github.com:Themaister/SSNES 2012-02-05 01:49:36 +01:00
TwinAphex51224 e33221b52a (360) Linked static library should now be called libsnes.lib 2012-02-05 01:49:08 +01:00
Themaister c32d321b06 stdbool.h is C99. Use a more proper define. 2012-02-05 00:50:47 +01:00
TwinAphex51224 18d6d58a2b (360) Small fix 2012-02-05 00:32:31 +01:00
TwinAphex51224 996794134f (360) Give menu screens some more real estate (480p lowest res) 2012-02-05 00:25:57 +01:00
TwinAphex51224 02996fbe2e (360) Rudimentary working filebrowser - hardcoded to game://roms/
path right now
2012-02-04 23:40:11 +01:00
TwinAphex51224 e85471a239 (360) renamed fileio.c to file_browser.c 2012-02-04 20:43:56 +01:00
TwinAphex51224 0e2de25f85 (360) Add fileio for 360 2012-02-04 20:33:51 +01:00
TwinAphex51224 402be572ea (360) Added some extra printf reports to get_environment_settting 2012-02-04 14:25:44 +01:00
TwinAphex51224 1317ce1aea (PS3) Rename get_path_settings to get_environment_settings for
consistency
2012-02-04 13:29:02 +01:00
TwinAphex51224 884e39c58d (360) Added get_environment_settings 2012-02-04 13:33:19 +01:00
Themaister 0bb0b96623 Bump to 8 players bind input. 2012-02-04 01:54:19 +01:00
TwinAphex51224 61c1b2bb1b (360) Some settings XUI tweaks 2012-02-03 11:35:47 +01:00
TwinAphex51224 979b7e6479 (360) Can now enable/disable rewind setting in Settings menu -
can now return from Settings menu to main menu
2012-02-03 11:32:31 +01:00
TwinAphex51224 862082915b (360) Fix 360 build 2012-02-02 21:50:11 +01:00
Themaister fba6f36cb8 Fix typo. 2012-02-02 21:04:05 +01:00
Themaister 0cb2436a59 Bump to 8 players max. Futureproofing a bit. 2012-02-02 21:02:36 +01:00
Themaister 18c259e19a Revert "(PS3) Fix for Cg reset context - seems to work on PS3"
This reverts commit 56e862edf8.
Implementation is not quite correct.
2012-02-02 20:42:20 +01:00
Themaister e3a2ab0347 Change perform_reset() to ssnes_game_reset() to better advertise itself
as a public function.
2012-02-02 20:39:28 +01:00
TwinAphex51224 15bc0e0813 (360) Have 360 port use same setting variables as PS3 port
from g_console struct
2012-02-02 19:01:52 +01:00
TwinAphex51224 a328dbd213 (PS3) Overscan options added 2012-02-02 18:39:09 +01:00
TwinAphex51224 09a6566be0 (PS3) Moved some setting variables to g_console 2012-02-02 16:59:06 +01:00
TwinAphex51224 3eaa942e58 (PS3) Some cleanups for keybinding 2012-02-02 16:12:38 +01:00
TwinAphex51224 40ce42c87c (PS3) Initial keybind implementation 2012-02-02 15:46:27 +01:00
TwinAphex51224 a14bdb82b1 (PS3/Core) Increase MAX_PLAYERS from 5 to 7 - PS3 supports 7
controllers at once and there are games in FBA that have simultaneous
six-player support
2012-02-02 15:19:01 +01:00
TwinAphex51224 ee5d43486c (PS3) Use msg_queue for outputting text in-game 2012-02-02 14:41:05 +01:00
TwinAphex51224 02c3977e9d (PS3/Core) Make reset into an extern function so it can be called
from port-specific code
2012-02-02 14:22:43 +01:00
TwinAphex51224 a509d40bf6 Add some information for Wii target 2012-02-02 13:51:15 +01:00
TwinAphex51224 4501832997 Added some information in README.md for the new ports 2012-02-02 13:45:59 +01:00
TwinAphex51224 56e862edf8 (PS3) Fix for Cg reset context - seems to work on PS3 2012-02-02 13:13:16 +01:00
Themaister 945a086edf Verify that binds are in correct order. 2012-02-01 23:02:17 +01:00
Themaister 72f5748b28 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-01 21:33:05 +01:00
Themaister 79f29a3966 Add test case and some fixes for re-entrancy. 2012-02-01 21:32:27 +01:00
TwinAphex51224 6843514f86 (PS3) Initial stab at frame advance - WIP - doesn't work yet -
probably some unforeseen gotcha I need to be aware of
2012-02-01 15:15:15 +01:00
TwinAphex51224 ff6b9bd0bf (PS3) Refactoring of FBO code 2012-02-01 14:24:48 +01:00
Themaister 3576613f52 Merge branch 'master' of github.com:Themaister/SSNES 2012-02-01 00:14:35 +01:00
Themaister 02cfa3f651 Big refactor of GL routines. 2012-02-01 00:14:04 +01:00
TwinAphex51224 87a0d3f413 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-31 20:17:33 +01:00
TwinAphex51224 407205a4e5 (PS3) Create reinit_fbo function 2012-01-31 20:17:12 +01:00
Themaister 6f368200b9 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-31 19:15:34 +01:00
Themaister f669f02407 Drop redundant ifs. 2012-01-31 19:14:48 +01:00
TwinAphex51224 e7d3e524bb (PS3) Added menu font options/settings 2012-01-31 18:51:45 +01:00
TwinAphex51224 d3d97bf11e Merge branch 'master' of github.com:Themaister/SSNES 2012-01-31 18:22:14 +01:00
TwinAphex51224 766bdf727c (PS3) Added aspect ratio settings/options 2012-01-31 18:21:53 +01:00
Themaister f2264ebb3e Do not use av_samples_get_buffer_size as it breaks older FFmpeg. 2012-01-31 18:06:20 +01:00
TwinAphex51224 2c61f2b1e7 (PS3) Use fill_pathname_base for displaying shader names in settings
screen
2012-01-31 14:34:43 +01:00
TwinAphex51224 cab8fd2a80 (PS3) WIP aspect ratio settings 2012-01-31 14:12:00 +01:00
TwinAphex51224 56a1877d15 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-31 12:14:00 +01:00
TwinAphex51224 3096e154c9 (PS3) Add some settings 2012-01-31 12:13:43 +01:00
Themaister accb011196 Add fill_pathname_base. 2012-01-30 22:45:43 +01:00
TwinAphex51224 93068a376a (PS3 MSVS 2010) Get rid of ssnes.cfg copy buildevent rule 2012-01-30 21:43:25 +01:00
TwinAphex51224 5be17933e9 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-30 20:28:21 +01:00
TwinAphex51224 f4183d2c8f (PS3) MSVS 2010f fix plus got rid of some warnings 2012-01-30 20:27:52 +01:00
Themaister 576855de4f Slight refactor. 2012-01-30 20:23:36 +01:00
TwinAphex51224 35b386df0d (PS3) Implemented savestate functionality in ingame menu 2012-01-30 20:05:36 +01:00
TwinAphex51224 2702299e7b (PS3) Added orientation options 2012-01-30 19:44:21 +01:00
TwinAphex51224 65e4357af7 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-30 18:46:43 +01:00
Themaister 904cdd3fb4 Add ps3graphics_set_orientation. 2012-01-30 18:49:05 +01:00
TwinAphex51224 e48ec1ea20 (PS3) Rely on custom border-only.cg file being in the common-shader
subrepo instead of overwriting it for every 'make pkg' operation
2012-01-30 18:45:59 +01:00
Themaister 467023692f Should fix set_filter. 2012-01-30 18:33:47 +01:00
Themaister b861c11253 Fix screenshots. (Mziab) 2012-01-30 18:28:11 +01:00
TwinAphex51224 e538fe4364 (PS3) Implement ssnes_main wrap 2012-01-30 18:17:47 +01:00
Themaister e0aa65efc3 Should fix crash. 2012-01-30 18:21:46 +01:00
Themaister c569d9e179 Call ssnes_main_init(). 2012-01-30 18:15:14 +01:00
Themaister ef280919d3 Add a ssnes_main wrapper for more simple code. 2012-01-30 17:50:00 +01:00
TwinAphex51224 734afe2058 (PS3) Implement file_is_directory on PS3 2012-01-30 17:18:31 +01:00
TwinAphex51224 b4e3786aa1 (PS3) Free 'conf' pointer after use in save_settings 2012-01-30 16:36:08 +01:00
TwinAphex51224 feec19940a (PS3) 'Get all available resolutions' is only fetched one time at
startup
2012-01-30 16:21:22 +01:00
TwinAphex51224 ec97970206 (PS3) Saves to config file now 2012-01-30 15:59:15 +01:00
TwinAphex51224 4a9e7f7b7e Merge branch 'master' of github.com:Themaister/SSNES 2012-01-30 15:18:12 +01:00
TwinAphex51224 73fa4ea199 (PS3) Implemented a bunch of settings :
* Audio can be muted
* Buffering mode can be changed from double to triple buffering
and vice versa
* Default ROM startup dir and cheat path can be specified - now
to save the config file at exit
2012-01-30 15:16:29 +01:00
Themaister ce08251f53 Replace usage of DOUBLE with FLOAT in configs. 2012-01-30 15:14:30 +01:00
TwinAphex51224 bbd6e16bbe (Core) Remove float macros 2012-01-30 14:13:04 +01:00
TwinAphex51224 959411c094 (PS3) Uses config file macros now 2012-01-30 13:45:37 +01:00
TwinAphex51224 a64ae92d9d (PS3) Resolution can be changed now - deiniting/initing of video 2012-01-30 13:18:13 +01:00
TwinAphex51224 bad72987d0 (PS3) V-sync can be switched on/off now 2012-01-30 09:53:16 +01:00
TwinAphex51224 8deab9ea35 (PS3) set_filtering function (WIP) 2012-01-30 09:28:41 +01:00
TwinAphex51224 35e5f2dbc6 (PS3) Remove unnecessary debug printf 2012-01-30 01:43:50 +01:00
Themaister cd11f65956 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-30 01:46:02 +01:00
Themaister 08686bcd06 Debork input some more ... 2012-01-30 01:45:18 +01:00
Themaister 5b0a948797 Refactor input config. 2012-01-30 01:20:35 +01:00
TwinAphex51224 b060c71de4 (PS3) Shaders can be loaded through the menu 2012-01-30 00:48:42 +01:00
Themaister fac78083ca Clarify path operations. 2012-01-30 00:01:59 +01:00
Themaister 230f47d00c Add helper function to replace Cg shaders on-the-fly. 2012-01-29 23:43:11 +01:00
TwinAphex51224 1cfc4c6cc0 (PS3) Fix indenting - somewhat 2012-01-29 23:16:39 +01:00
TwinAphex51224 f89060e7ff (PS3) Take out setting callback - was crashing the PS3 port 2012-01-29 23:11:47 +01:00
TwinAphex51224 16faee9ae2 (PS3) Add MSVS 2010 solution 2012-01-29 23:08:20 +01:00
TwinAphex51224 352b8e4cef (PS3) Still broke, still crashes after 'loading texture image' 2012-01-29 22:06:51 +01:00
Themaister 2c40567030 Properly return false from config_load_file. 2012-01-29 22:00:21 +01:00
Themaister ac3f80d738 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-29 21:44:54 +01:00
Themaister 2721ccb52a Style nits. 2012-01-29 21:44:37 +01:00
TwinAphex51224 0fc36bfe0a (PS3) Some fixes in main.c 2012-01-29 21:35:20 +01:00
Themaister 559fc5b67f Fix issue with _CONSOLE config macro. 2012-01-29 21:32:13 +01:00
Themaister bd15206599 Fixup C++ build. 2012-01-29 19:12:29 +01:00
Themaister e5d3894bc4 Check for AV_NOPTS_VALUE. 2012-01-29 19:10:58 +01:00
Themaister 0bc0ae40a5 Fix audio_encode2. 2012-01-29 19:08:22 +01:00
Themaister 3c15bb06db Attempt to completely flush audio stream as well. 2012-01-29 18:59:56 +01:00
Themaister 9ce3331f04 Use av_samples_get_buffer_size. 2012-01-29 18:13:20 +01:00
Themaister 9508cc4eb3 Start fixing deprecation. Not used as it's broken atm. 2012-01-29 18:01:10 +01:00
Themaister 0bb1f7292c Cleanup settings handling a bit to avoid lots of dummy variables. 2012-01-29 15:52:59 +01:00
TwinAphex51224 b56b09af35 Added common macro file for CONFIG_ macros - used now too by PS3
port
2012-01-29 14:10:57 +01:00
TwinAphex51224 a685701805 (PS3) use custom Makefile rules for shader subrepo 2012-01-29 04:35:42 +01:00
Themaister d207eb0b1e Add callback system to config_set_defaults. 2012-01-28 16:49:06 +01:00
Themaister e8b2cde4cf More graceful error handling. 2012-01-28 15:47:02 +01:00
Themaister bedd5a691b Merge branch 'master' of github.com:Themaister/SSNES 2012-01-28 15:42:20 +01:00
Themaister 57fbad1a54 Expose config load as a global function. 2012-01-28 15:41:57 +01:00
TwinAphex51224 12deb9c54a (Git submodule) Changed url to read-only address so general users
can checkout
2012-01-28 14:04:07 +01:00
TwinAphex51224 8b1be981d3 (PS3) Added Git subrepo checkout rules in Makefile 2012-01-28 13:23:25 +01:00
TwinAphex51224 30d229c30b (PS3) Small rewrite of ps3_video_psgl.c 2012-01-28 11:38:24 +01:00
Themaister f3d9588e37 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-28 00:34:29 +01:00
Themaister b5f77bf65e Use sthread in rsound. 2012-01-28 00:34:06 +01:00
TwinAphex51224 5bfc7be450 (PS3) Added Git subrepo for shaders 2012-01-28 00:34:06 +01:00
TwinAphex51224 fcab353201 (PS3) Updated menu image 2012-01-28 00:34:06 +01:00
Hans-Kristian Arntzen e968d26ba8 Unbind FBO before returning from gl_init_fbo(). 2012-01-28 00:34:06 +01:00
TwinAphex51224 db1765e788 (PS3) Shader texture is correctly applied after first booting a
game, but not before
2012-01-28 00:34:06 +01:00
TwinAphex51224 6e4277d9a6 (PS3) Change to border shader - still texture problems 2012-01-28 00:34:06 +01:00
TwinAphex51224 be56e901bb (PS3) More commits 2012-01-28 00:34:06 +01:00
TwinAphex51224 f803b5fbd3 (PS3) Shader menu texture (WIP) 2012-01-28 00:34:06 +01:00
TwinAphex51224 be62e537c6 (PS3) Added HAVE_SCREENSHOTS_BUILTIN define - is meant for targets
where native screenshot functionality is already supplied, negating
the need of compiling in screenshot.c
2012-01-28 00:34:06 +01:00
TwinAphex51224 7af7d55068 (PS3) use uint32_t * for pixels member as well for PS3 2012-01-28 00:34:06 +01:00
TwinAphex51224 15c5c69241 (PS3) Texture is now loaded 2012-01-28 00:34:06 +01:00
TwinAphex51224 b89554d11a (PS3) Added error logs to image.c for debugging purposes 2012-01-28 00:34:05 +01:00
TwinAphex51224 60760d69db (PS3) Added texture loading hooks, fails somewhere ATM 2012-01-28 00:34:05 +01:00
TwinAphex51224 ab687190a9 (PS3) Added border shaders - we will need a subrepo for all these shaders eventually 2012-01-28 00:34:05 +01:00
TwinAphex51224 a07514c88b (PS3) Fixed the crash at SYSUTIL_REQUEST_EXITGAME triggering 2012-01-28 00:34:05 +01:00
TwinAphex51224 f9de1a8831 (PS3) Doesn't crash anymore 2012-01-28 00:34:05 +01:00
Themaister badf807ae9 Remove useless macro. 2012-01-28 00:34:05 +01:00
TwinAphex51224 36e2b51827 (PS3) Added Git subrepo for shaders 2012-01-27 23:35:38 +01:00
TwinAphex51224 afae4a5cb4 (PS3) Updated menu image 2012-01-27 02:21:02 +01:00
Hans-Kristian Arntzen e9fb18f594 Unbind FBO before returning from gl_init_fbo(). 2012-01-27 01:00:09 +01:00
TwinAphex51224 a061fa081c (PS3) Shader texture is correctly applied after first booting a
game, but not before
2012-01-27 00:40:25 +01:00
TwinAphex51224 88b819ffff (PS3) Change to border shader - still texture problems 2012-01-27 00:31:10 +01:00
TwinAphex51224 730fb03c07 (PS3) More commits 2012-01-27 00:14:42 +01:00
TwinAphex51224 a571cf5e92 (PS3) Shader menu texture (WIP) 2012-01-27 00:07:24 +01:00
TwinAphex51224 7ce5733a45 (PS3) Added HAVE_SCREENSHOTS_BUILTIN define - is meant for targets
where native screenshot functionality is already supplied, negating
the need of compiling in screenshot.c
2012-01-26 03:00:56 +01:00
TwinAphex51224 e73df5e6a9 (PS3) use uint32_t * for pixels member as well for PS3 2012-01-26 02:53:59 +01:00
TwinAphex51224 c2cb9fead0 (PS3) Texture is now loaded 2012-01-26 02:28:54 +01:00
TwinAphex51224 01fb168f51 (PS3) Added error logs to image.c for debugging purposes 2012-01-26 02:01:06 +01:00
TwinAphex51224 f16b269685 (PS3) Added texture loading hooks, fails somewhere ATM 2012-01-26 01:33:39 +01:00
TwinAphex51224 1bfabea14a (PS3) Added border shaders - we will need a subrepo for all these shaders eventually 2012-01-26 00:35:14 +01:00
TwinAphex51224 1160aeed3d (PS3) Fixed the crash at SYSUTIL_REQUEST_EXITGAME triggering 2012-01-25 23:47:30 +01:00
TwinAphex51224 61019ac48c (PS3) Doesn't crash anymore 2012-01-25 23:44:32 +01:00
TwinAphex51224 4642e0ce96 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-25 23:29:16 +01:00
TwinAphex51224 0a81b47932 (PS3) Hook up menu shader code - crashes currently 2012-01-25 23:28:50 +01:00
Themaister 0faa8c3855 Remove useless macro. 2012-01-25 23:08:12 +01:00
Themaister 388e2bb5fc Recognize kp_plus/kp_minus properly. 2012-01-25 23:03:02 +01:00
Themaister 14ffd07b70 Refactorin' ... 2012-01-25 22:55:34 +01:00
Themaister 9cb5eea20b Add some useful interfaces to Cg for PS3. Some cleanups ... 2012-01-25 22:00:18 +01:00
Themaister be03b8ac95 Fix indentation. 2012-01-25 19:57:37 +01:00
TwinAphex51224 b9ce2d4142 (360) Can now navigate to settings screen 2012-01-25 07:19:07 +01:00
TwinAphex51224 422c13242f (PS3) Add menu shader code (WIP) 2012-01-25 04:38:19 +01:00
TwinAphex51224 9e917d4835 (PS3) Take out redundant printf calls for 'rewind_enable' 2012-01-25 03:14:18 +01:00
TwinAphex51224 1cc8a8a121 (PS3) Use ssnes_console_get_rom_ext function in file browser 2012-01-25 03:11:21 +01:00
TwinAphex51224 05e49db12a (360) Compile in rom_ext.c file in 360 build 2012-01-25 03:00:38 +01:00
TwinAphex51224 2acc30e1a4 (PS3) Filled in ssnes_console_get_rom_ext function 2012-01-25 02:49:15 +01:00
Themaister dd1d83768b Add stubs for future rom_ext handling. 2012-01-25 01:10:53 +01:00
Themaister 1451ba9610 Use ARGB_SCE on PS3. 2012-01-25 00:17:00 +01:00
Themaister 3d8c50a768 Netplay compat define no longer needed. 2012-01-25 00:06:32 +01:00
TwinAphex51224 f5f8a71af2 (360) 360 fixes for netplay.c and netplay_compat.c - compiles and
links now
2012-01-25 00:02:59 +01:00
Themaister 5368d0d148 Attempt to implement gethostbyname for 360. 2012-01-24 23:54:06 +01:00
TwinAphex51224 c9fc51fe2a (PS3) Compiles and links in netplay now 2012-01-24 23:09:21 +01:00
Themaister 0e5a9a7772 Adjustments for PS3. 2012-01-24 23:14:11 +01:00
Themaister 6ff762f088 Some init stuff needed for PS3. 2012-01-24 22:38:25 +01:00
Themaister bda70a9168 Fix C++ build. 2012-01-24 22:31:26 +01:00
Themaister 03a892c7f2 Start adding netplay compat layer for legacy stuff. 2012-01-24 21:12:12 +01:00
TwinAphex51224 e6f2aa81f7 (360) Added settings XUI - navigation not yet working 2012-01-24 06:55:27 +01:00
TwinAphex51224 42b101b024 (360) Added libsnes core text to SSNES main screen and
dehardcoded SSNES version number - ASCII to Unicode messiness
inside
2012-01-24 06:11:01 +01:00
TwinAphex51224 38845d6ad5 (360) Add missing shared.h file 2012-01-24 01:20:26 +01:00
TwinAphex51224 a5db76d7db (360) Some error return fixes in menu_init 2012-01-24 01:09:34 +01:00
TwinAphex51224 5181463606 (360) Use SSNES_ERR instead of OutputDebugString 2012-01-24 01:06:12 +01:00
TwinAphex51224 a9ffab7854 (360) Quit button returns to dash 2012-01-24 00:32:44 +01:00
TwinAphex51224 2797ec3a79 (360) file browser button now goes to ROM loading/emulation state 2012-01-24 00:29:03 +01:00
TwinAphex51224 8c672bc613 (360) Added XUI logic (test) 2012-01-24 00:02:02 +01:00
TwinAphex51224 458abe3611 (360) Added image files for menu 2012-01-23 23:09:44 +01:00
TwinAphex51224 08a9525508 (360) XUI additions 2012-01-23 22:22:54 +01:00
TwinAphex51224 730983bf59 (360) Truetype font gets loaded now 2012-01-23 21:49:21 +01:00
TwinAphex51224 c7692e7a72 (360) XUI scene renders now 2012-01-23 21:36:54 +01:00
TwinAphex51224 8da940d0e5 (360) Fixed some deployment rules 2012-01-23 21:30:59 +01:00
TwinAphex51224 05607880f8 (360) Add some more XUI code - resource files from xzp files still
not loading - also added drive mounting code
2012-01-23 05:10:23 +01:00
TwinAphex51224 94ff302111 (360) Changed ZeroMemory to memset - ZeroMemory is just a stupid
typedef for memset
2012-01-23 00:10:25 +01:00
TwinAphex51224 aa32810151 (360) More work on XUI + fixed a bug in input code 2012-01-22 22:45:32 +01:00
TwinAphex51224 6614e4ef92 (360) Added custom build steps 2012-01-22 21:47:34 +01:00
Themaister 7374480126 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-22 19:51:57 +01:00
Themaister d5dc910e5b Cleanups in skeleton config. 2012-01-22 19:51:37 +01:00
TwinAphex51224 367d554fff Merge branch 'master' of github.com:Themaister/SSNES 2012-01-22 19:46:23 +01:00
TwinAphex51224 ea49b02380 (360) Three-stage SSNES main 2012-01-22 19:45:58 +01:00
Themaister b0ddf78db0 Updates for 0.9.4.1. 2012-01-22 19:43:13 +01:00
TwinAphex51224 d4d97bfae1 (360) Use game image drive instead of devkit drive partition -
should work on retail
2012-01-22 02:05:09 +01:00
TwinAphex51224 5706713905 (360) Updated vcxproj files 2012-01-22 01:46:08 +01:00
TwinAphex51224 2fd7c1bb9f (360) Add preliminary WIP XUI menu code - far from complete 2012-01-22 01:43:54 +01:00
TwinAphex51224 e46f09c3b1 (360) Video gets inited before SSNES starts in preparation for XUI 2012-01-21 23:59:27 +01:00
TwinAphex51224 a4dd8bdf30 (360) Exclude netplay.c from Release build for now (again) 2012-01-21 18:57:23 +01:00
TwinAphex51224 2be040a8a7 (360) Added small ifdef to netplay.c - next stumbling block -
both 360 and PS3 don't support sockaddr_storage and getaddrinfo
2012-01-21 18:56:07 +01:00
Themaister e14f5e9ea5 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-21 18:34:28 +01:00
Themaister f9870dfb24 Nicknames for spectator mode as well. 2012-01-21 18:34:07 +01:00
Themaister ec5612a12b Merge branch 'master' of github.com:Themaister/SSNES 2012-01-21 18:13:18 +01:00
TwinAphex51224 d12532aef1 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-21 18:12:57 +01:00
Themaister 7082561e21 Nicknames for regular connection. 2012-01-21 18:12:42 +01:00
TwinAphex51224 763f257d92 (PS3) Show static libsnes library in menu 2012-01-21 18:12:33 +01:00
TwinAphex51224 d55c86bc41 (PS3) Use ssnes_main_clear_state() 2012-01-21 18:00:07 +01:00
TwinAphex51224 3695cf78b9 (PS3) Swap is blocked before going into ingame menu - and unblocked
after exiting ingame menu
2012-01-21 17:50:21 +01:00
TwinAphex51224 26cb567bb9 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-21 17:24:48 +01:00
TwinAphex51224 fabceb0e84 (PS3) Rewind can be set now 2012-01-21 17:24:25 +01:00
Themaister 0a3dc05c27 Fix custom getopt_long for certain arguments.
getopt_long() treats this as equivalent: {"-c", "foo"}, {"-cfoo"}.
This is fixed.
2012-01-21 16:27:51 +01:00
Themaister 8f0a47e6c3 Small cleanup. 2012-01-21 16:14:10 +01:00
Themaister 20528b9d1f Fix buggy log_connection. 2012-01-21 14:58:39 +01:00
Themaister d262049f6b Additional fixes. 2012-01-21 14:46:33 +01:00
Themaister 75408b689d Hook up binds. 2012-01-21 14:24:38 +01:00
Themaister d551d93ce4 Start implementing player flipping. 2012-01-21 14:00:11 +01:00
Themaister 99f622de0e Just rename video_render_cached(). 2012-01-21 12:12:44 +01:00
TwinAphex51224 64cbfd0183 (PS3) Updated main-menu.jpg border picture 2012-01-21 06:42:04 +01:00
TwinAphex51224 64de1a3260 (PS3) Add rewind menu option - note - g_settings.rewind_enable gets
cleared to '0' somewhere in first-stage SSNES init for some weird
reason - can't even enable it right now beacuse of that
2012-01-21 06:06:01 +01:00
TwinAphex51224 4d95765cb5 (PS3) No longer gives framebuffer objects error 2012-01-21 05:20:44 +01:00
TwinAphex51224 e90b7e6a03 (PS3) Added ssnes_render_cached_frame - this is necessary for the
ingame menu - another problem - swap occurs at end of frame
function - this interferes with the swap done later on in the
ingame menu, leading to flickered libdbgfont text. We will somehow
need to divorce the swap from the main frame function
2012-01-21 03:56:31 +01:00
TwinAphex51224 e044275c3e (360) Fix for 360 - INVALID_FILE_ATTRIBUTES is not defined in a
360 header
(PS3) Added g_console.rom_path setting - not using g_extern.system.
fullpath anymore
2012-01-21 02:58:19 +01:00
TwinAphex51224 c5e8eb0283 (PS3) Ingame menu - can return now to SSNES 2012-01-21 02:32:55 +01:00
TwinAphex51224 8e74333ef4 (PS3) First stab at ingame menu 2012-01-21 00:30:01 +01:00
Themaister 2089521856 Menu/in-game-menu logic. 2012-01-20 19:29:26 +01:00
Themaister 057d29bea1 Check for INVALID_FILE_ATTRIBUTES. 2012-01-20 18:31:46 +01:00
Themaister 026fd10bd4 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-20 18:10:29 +01:00
Themaister c492195ab1 Empty string should not be a directory. 2012-01-20 18:09:53 +01:00
TwinAphex51224 d9a72ea076 (PS3) Implemented SSNES control flow 2012-01-20 18:00:33 +01:00
TwinAphex51224 955c0e85c8 (PS3) image.c - added header 2012-01-18 01:02:34 +01:00
TwinAphex51224 3c99021b60 (PS3) custom image.c (for PNG/JPEG decoding) 2012-01-18 00:59:35 +01:00
TwinAphex51224 5453cc0448 (PS3) Added preliminary resolution switching options 2012-01-18 00:18:23 +01:00
TwinAphex51224 c7e32cbbd2 (PS3) Some more work on PS3 menu front 2012-01-17 23:59:23 +01:00
Themaister 5edf67bba8 Fixup comment. 2012-01-17 23:49:03 +01:00
Themaister d109c22b49 Update Windows makefile. 2012-01-16 22:10:31 +01:00
Themaister 98f2f1c23d Updates for 0.9.4. 2012-01-16 22:08:54 +01:00
TwinAphex51224 94bc6ff3a2 (PS3) Some more settings filled in 2012-01-16 17:15:16 +01:00
TwinAphex51224 62dc63542c (PS3) Clean up PS3 GL driver always assume HAVE_FBO and HAVE_CG 2012-01-16 16:46:35 +01:00
TwinAphex51224 dd8acd5872 (PS3) Added SN version number in 'print compiler' function 2012-01-16 16:38:27 +01:00
TwinAphex51224 d1113a5af0 (PS3) Added sysutil screenshot feature 2012-01-16 15:45:55 +01:00
TwinAphex51224 024e10b5a9 (PS3) Implemented some settings 2012-01-16 15:33:18 +01:00
TwinAphex51224 c4b2492872 (PS3) Some cleanups 2012-01-16 04:09:28 +01:00
TwinAphex51224 44bc9fe291 (PS3) Menu refactoring 2012-01-16 04:07:02 +01:00
Themaister ee7bacd2bc Fix critical performance regression. 2012-01-14 23:15:25 +01:00
Themaister 90a2070718 Return 0 from main().
On console targets, main() is overridden to ssnes_main().
2012-01-14 20:45:05 +01:00
Themaister abf34c06c1 Attempt to always return from ssnes_main_init() when errors occur. 2012-01-14 16:08:54 +01:00
Themaister 661836fd77 Deconstruct main() into three separate functions.
Split main() into init/iterate/deinit functions.
2012-01-14 14:08:43 +01:00
Themaister 260f3ac7ce Use a more general SSNES_CONSOLE define. 2012-01-14 13:43:15 +01:00
Themaister f57ab1ccd8 Handle zero sized writes. 2012-01-14 02:03:49 +01:00
Themaister ef206b3a27 Fix directory detection. 2012-01-14 01:42:51 +01:00
TwinAphex51224 2dce493240 (PS3) Sysutil exit callback works in menu too 2012-01-13 01:27:18 +01:00
TwinAphex51224 83c3d7be57 (PS3) Menu fixes 2012-01-13 01:01:08 +01:00
TwinAphex51224 7b0e1e8022 (PS3) Got rid of warnings in main.c 2012-01-13 00:22:43 +01:00
Themaister 86950b4d2a FBO scale are float. 2012-01-13 00:29:01 +01:00
Themaister fe02783fc7 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-13 00:09:27 +01:00
Themaister 072406e3c3 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-13 00:09:13 +01:00
Themaister 751761d99c Add config_get_float. 2012-01-13 00:08:55 +01:00
TwinAphex51224 fe993fafd5 (PS3) Fixed menu speed 2012-01-13 00:01:52 +01:00
TwinAphex51224 057785539b Merge branch 'master' of github.com:Themaister/SSNES 2012-01-12 23:46:10 +01:00
TwinAphex51224 048d2f65e0 (PS3) Fixed controller 2 2012-01-12 23:45:48 +01:00
Themaister c305f4347d Add g_console struct. 2012-01-12 22:53:14 +01:00
TwinAphex51224 3ca62fbbbc (PS3) Pushed PS3 video fix 2012-01-12 22:02:28 +01:00
Themaister 225699f545 No real need to memset(). 2012-01-12 20:41:52 +01:00
Themaister 35ae61fbc7 Use more correct UINT*_C() constants. 2012-01-12 20:16:47 +01:00
Themaister 86dac8c979 Make sure sockets are not closed twice on error. 2012-01-12 09:21:33 +01:00
TwinAphex51224 95431414ae (PS3) Initialize some settings 2012-01-12 00:24:17 +01:00
TwinAphex51224 b3f7224ea1 (PS3) menu works, ROM loads, but screen is black 2012-01-12 00:05:32 +01:00
Themaister e583546778 Add some more needed stuff. 2012-01-11 23:48:48 +01:00
Themaister a39c37e1ee Add some hooks to video init/deinit for PS3. 2012-01-11 23:44:29 +01:00
Themaister 67fb35b645 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-11 23:10:05 +01:00
Themaister 3c1e4c879a Integer scale is bad mmkay. 2012-01-11 23:09:22 +01:00
TwinAphex51224 83a11be669 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-11 22:55:37 +01:00
TwinAphex51224 08e35a62d4 (PS3) Can now compile with SNC as well 2012-01-11 22:55:07 +01:00
Themaister 5461c0d86e Merge branch 'master' of github.com:Themaister/SSNES 2012-01-11 22:52:57 +01:00
Themaister 4eab7c4387 Font scale option. 2012-01-11 22:52:25 +01:00
TwinAphex51224 59aeb77744 (PS3) Some more work on menu 2012-01-11 22:27:07 +01:00
Themaister c6fc8e45ff Log more clearly disconnects. 2012-01-11 21:08:44 +01:00
Themaister 4dde927c12 Add some logging and increase buffer sizes. 2012-01-11 20:50:21 +01:00
Themaister 6325b4cd2e Set larger buffer size to mitigate lags on client connect. 2012-01-11 20:14:59 +01:00
Themaister 4beec3870f Spectator mode. 2012-01-11 19:22:18 +01:00
Themaister 36a2c96cb7 ifdef console oriented binds. 2012-01-11 10:00:24 +01:00
TwinAphex51224 a4a68a2ad5 (PS3) Implemented menu code some more 2012-01-11 02:25:49 +01:00
TwinAphex51224 13a2010ed6 (PS3) Fix 2012-01-11 01:17:04 +01:00
TwinAphex51224 e37fd21424 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-11 01:04:47 +01:00
TwinAphex51224 a2698061a6 (PS3) Loads settings from config file 2012-01-11 01:04:17 +01:00
Themaister d00257382a Always dump 16-bit little endian values for movie record. 2012-01-11 00:55:50 +01:00
TwinAphex51224 51ab2f2509 (PS3) Added initial menu - not yet compiled in 2012-01-10 23:33:44 +01:00
TwinAphex51224 61f9ceccab PATH_MAX gets redefined for PS3/Libxenon 2012-01-10 22:08:24 +01:00
Themaister f836a291a0 Reinstate ssnes.cfg. 2012-01-09 16:05:02 +01:00
Themaister 97725e69eb Add missing license header. 2012-01-08 02:30:32 +01:00
Themaister d186e14eeb VSync one frame earlier. 2012-01-08 02:21:28 +01:00
Themaister 08aaa1021c More aestethically pleasing effect. 2012-01-08 01:32:45 +01:00
Themaister b4248038fb Update license headers. 2012-01-08 01:12:05 +01:00
Themaister ca587ab92e Actually runs. 2012-01-08 01:07:26 +01:00
Themaister 6f5c33848e Begin work on menu for Wii. 2012-01-08 00:57:44 +01:00
Themaister 17d380400e Update AUTHORS. 2012-01-07 17:07:22 +01:00
Themaister 2e456b2570 Rename gl-> to vid-> for consistency. 2012-01-07 15:30:52 +01:00
TwinAphex51224 fe17a42e62 (360) Fixed 2012-01-07 15:28:39 +01:00
Themaister c46866c6e5 Use correct geometries (I hope). 2012-01-07 15:21:23 +01:00
Themaister 3117633adf Actually use a viewport. 2012-01-07 15:11:57 +01:00
Themaister 8a49321648 Rename shader vars again. :D 2012-01-07 15:03:09 +01:00
Themaister 18f027ed41 Rename shader variable names. 2012-01-07 15:00:51 +01:00
TwinAphex51224 79b9c68cb5 (360) Compile fixes 2012-01-07 14:59:11 +01:00
Themaister 2b1344c3cf Clean up and add missing bits to 360 D3D9. 2012-01-07 14:54:55 +01:00
TwinAphex51224 da26925118 (360) Fleshed out video driver some more 2012-01-07 14:13:23 +01:00
Themaister f2a152f7c9 Minor cleanup. 2012-01-07 11:47:53 +01:00
Themaister 1953ea7312 Fix Xenon build. 2012-01-07 11:32:39 +01:00
TwinAphex51224 e55dbe944d (360) changed buf to uint8_t * 2012-01-06 22:55:07 +01:00
Themaister f5ad906e7b Don't need byteswapping on 360. 2012-01-06 22:49:30 +01:00
TwinAphex51224 7cad2bcd6e (360) Some sound fixes 2012-01-06 22:40:40 +01:00
Themaister cc921f25ed Use integer audio on 360. 2012-01-06 22:30:12 +01:00
Themaister 435109ceae Rework SRAM semantics for Sufami. 2012-01-06 20:32:30 +01:00
Themaister ca375f65d5 Call CreateEvent. 2012-01-06 19:45:27 +01:00
Themaister 76212f47bf Fix indentation. 2012-01-06 18:51:45 +01:00
TwinAphex51224 6efb904919 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-06 14:12:38 +01:00
TwinAphex51224 072342cdab (360) Gets to initing audio 2012-01-06 14:12:12 +01:00
Themaister 09761c0786 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-06 00:05:05 +01:00
Themaister c48fab00e8 Remove unneeded header. 2012-01-06 00:04:48 +01:00
TwinAphex51224 d1c562ce4e (360) Small correction to main.c file 2012-01-05 23:19:14 +01:00
Themaister 45cae81d51 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-05 23:10:28 +01:00
Themaister 30e28acfb3 Workaround GetFullPathName not existing on XDK. 2012-01-05 23:09:52 +01:00
TwinAphex51224 00459365c4 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-05 22:47:54 +01:00
TwinAphex51224 649884bc05 (360) Added main files 2012-01-05 22:47:34 +01:00
TwinAphex51224 e1af420b2d (360) More work on 360 2012-01-05 22:46:11 +01:00
Themaister 613f50dd14 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-05 21:45:32 +01:00
Themaister a18c0b2b14 Use const. 2012-01-05 21:43:55 +01:00
TwinAphex51224 d7f8500b3a Merge branch 'master' of github.com:Themaister/SSNES 2012-01-05 20:54:26 +01:00
TwinAphex51224 7ecf9681c5 (360) Updated vcxproj file 2012-01-05 20:54:04 +01:00
Themaister e9ca7acce9 Merge branch 'master' of github.com:Themaister/SSNES 2012-01-05 19:44:39 +01:00
Themaister ea68de8070 Don't use *A() version. 2012-01-05 19:44:11 +01:00
TwinAphex51224 0fa0bfeb74 (360) Compiles in dynamic.c 2012-01-05 19:42:29 +01:00
TwinAphex51224 4a5d0d8dfb (360) Updated solution 2012-01-05 19:35:56 +01:00
Themaister af35a18515 :v 2012-01-05 19:34:15 +01:00
Themaister 5560babc11 Some build fixups. 2012-01-05 19:33:38 +01:00
Themaister 3e76201d80 Rename to C++. 2012-01-05 19:28:19 +01:00
Themaister 5b15d8626c Restructure XAudio2 360 driver. 2012-01-05 19:27:58 +01:00
TwinAphex51224 f8a03a7d5d Merge branch 'master' of github.com:Themaister/SSNES 2012-01-05 18:38:49 +01:00
TwinAphex51224 b7b9acb336 (360) compiles now 2012-01-05 18:38:29 +01:00
Themaister 44e2d66cf5 Mainstub clean. 2012-01-05 17:53:30 +01:00
Themaister 9747767474 Use GetFileAttributes. 2012-01-05 17:41:04 +01:00
Themaister cee33327f8 Ugh 2012-01-05 17:28:11 +01:00
Themaister f70b52a0df Don't use unicode. 2012-01-05 17:27:48 +01:00
Themaister 0b62771b54 Don't use getenv on XBOX. 2012-01-05 17:27:18 +01:00
Themaister b168109672 Fix missing stuff. 2012-01-05 17:23:22 +01:00
Themaister d8b6aebe9a Use plain ASCII for directories. 2012-01-05 17:22:03 +01:00
TwinAphex51224 4812b632c3 (360) Fixed most compile errors for 360 2012-01-05 15:11:55 +01:00
TwinAphex51224 8320d0a0e9 (360) Xaudio2 driver compiles now 2012-01-05 14:48:54 +01:00
TwinAphex51224 a287ebe736 (360) New Xaudio2 driver 2012-01-05 14:17:35 +01:00
TwinAphex51224 ebea0220cd (360) Added 360 solution and added some defines 2012-01-05 13:30:13 +01:00
TwinAphex51224 2b01f36fc0 (360) Added preliminary xdk 360 drivers 2012-01-05 12:37:27 +01:00
Themaister 7e3092dc93 Build in freetype. Will be used later. 2012-01-03 13:04:23 +01:00
Themaister 114c723d59 Only init input once. 2012-01-03 12:22:07 +01:00
Themaister da39f8d3d6 Support classic controller. 2012-01-03 12:11:02 +01:00
Themaister 33b76628aa Far better vsync handling. 2012-01-03 11:32:07 +01:00
Themaister 94162f452d Use RGB5A3 for Wii. 2012-01-03 10:32:51 +01:00
Themaister 318d875981 Small cleanups. 2012-01-03 02:50:45 +01:00
Themaister 520878272c Checks if swapinterval succeeds. 2012-01-02 22:09:55 +01:00
Themaister fc87336c45 MSVC doesn't have PATH_MAX. 2012-01-02 16:03:39 +01:00
Themaister d66e039536 Fix 15->16 bit conversions. 2012-01-02 15:43:46 +01:00
Themaister eeebc2d06b Optimize a bit. 2012-01-02 14:50:03 +01:00
Themaister 7d1ebdf94a Pick linear/nearest filtering correctly. 2012-01-02 13:45:31 +01:00
Themaister 3d1b0ef35b Merge branch 'fix' 2012-01-02 13:33:27 +01:00
Themaister c2ba0d474c Use limits.h and PATH_MAX. 2012-01-02 13:33:03 +01:00
Themaister 793c00e614 Attempt on tiled textures for Wii. 2012-01-02 12:56:09 +01:00
Themaister d4093dc31c Fix build for gekko. 2012-01-02 12:12:30 +01:00
Themaister bc66841a29 More correct save state and rewind handling. 2011-12-27 18:30:14 +01:00
Themaister f4cc8a4bca Update filters. 2011-12-27 03:33:18 +01:00
Themaister 539563f0f4 Add filters to project. 2011-12-27 03:27:28 +01:00
Themaister 8c5d86a6eb Add logging to SDL_Init(). 2011-12-27 01:04:50 +01:00
Themaister 884c113645 Cleanup stupid code. 2011-12-27 00:54:31 +01:00
Themaister 70587bc0df More verbosely log SDL failure. 2011-12-27 00:37:29 +01:00
Themaister df4e0bb1e4 Don't use x64libs. 2011-12-27 00:15:58 +01:00
Themaister cdc92af959 Cleanups. 2011-12-26 16:43:47 +01:00
Themaister 763a5bf2c0 Style nit. 2011-12-26 16:22:34 +01:00
Themaister 8301cf8a2f Style nit. 2011-12-26 16:14:33 +01:00
Themaister 44da8a6749 :v 2011-12-26 01:32:19 +01:00
Themaister 06309ba1e0 Build some more stuff. 2011-12-26 00:06:41 +01:00
Themaister 004ca0fe89 Better formatting. 2011-12-25 21:43:00 +01:00
Themaister 40cce7c9d6 Also log compiler version normally. 2011-12-25 21:39:58 +01:00
Themaister 1c29d31859 Better formatting. 2011-12-25 21:20:07 +01:00
Themaister d3af29fa1f Compiler logging macros. 2011-12-25 21:16:48 +01:00
Themaister c5d1fd32d5 Deinit audio before video. 2011-12-25 19:31:05 +01:00
Themaister a4767d3d43 Add python build. Fix ssize_t define. 2011-12-25 18:25:37 +01:00
Themaister c26f527c20 Enable SSE for 64-bit builds. 2011-12-25 16:50:13 +01:00
Themaister 0c8d85d589 Minor fixes. 2011-12-25 16:47:03 +01:00
Themaister 0c16e1a134 x64 build. 2011-12-25 16:36:56 +01:00
Themaister 0a887395eb Remove useless global. 2011-12-25 16:11:48 +01:00
Themaister 9118976c49 Don't include general.h 2011-12-25 12:56:21 +01:00
Themaister 7f1e599186 Use modern FFmpeg defines. 2011-12-25 12:50:34 +01:00
Themaister 672102d377 Change asserts to ssnes_assert(). 2011-12-25 12:47:47 +01:00
Themaister fe7f05e717 Style nit. 2011-12-25 12:14:26 +01:00
Themaister 0724ab2ca1 Fix assertion bugs. 2011-12-25 12:13:19 +01:00
Themaister c272ba56ad Fix build for Release mode. 2011-12-25 11:45:27 +01:00
Themaister 381498e945 Print feature for DirectSound. 2011-12-25 01:59:30 +01:00
Themaister 70f07196ea gettimeofday() should return int. 2011-12-25 01:54:29 +01:00
Themaister c8dee57278 Set constant macros with define. 2011-12-25 01:45:09 +01:00
Themaister 0ab305156b Fixup header. 2011-12-25 01:41:12 +01:00
Themaister eac468ba19 MSVC compat. 2011-12-25 01:38:59 +01:00
Themaister 18f407110b Fixup compatibility. 2011-12-24 20:43:58 +01:00
Themaister ceee10b56c Fix types. 2011-12-24 15:57:43 +01:00
Themaister 9805bcc5f9 Merge branch 'master' of github.com:Themaister/SSNES 2011-12-24 15:47:47 +01:00
Themaister d5fca50a2f Can build for C++. 2011-12-24 15:26:01 +01:00
Themaister 4ca72bd7e6 Fix endian issues and strict aliasing. 2011-12-24 14:41:19 +01:00
Themaister 62ead00f0f Some additions, but still broken. 2011-12-24 14:41:19 +01:00
TwinAphex51224 5dc573ed38 (Libxenon) Changed texture size to 512x512 - stop libxenon development
for now - no double buffering/triple buffering available - return to
it when it's more mature
2011-12-24 14:41:19 +01:00
TwinAphex51224 fa053ffc2b (Libxenon) Fixed colors 2011-12-24 14:41:18 +01:00
TwinAphex51224 be6c7bad24 (Libxenon) Revert to Xenos driver that works - current issues - colors
are wrong (doing | XE_FMT_ARGB produces 'distorted' graphics but right colors) - no vsync (doing while Xe_IsVBlank(device) Xe_Sync(device) makes everything too
slow
2011-12-24 14:41:18 +01:00
Themaister 2680971bb3 Try some stuff. 2011-12-24 14:41:18 +01:00
Themaister 630f19f248 ... 2011-12-24 14:41:18 +01:00
Themaister ef4bee2e4e Minor fix. 2011-12-24 14:41:18 +01:00
Themaister f182a2ad24 Debork party. Untested. 2011-12-24 14:41:18 +01:00
Themaister 3eb98951f7 :v 2011-12-24 14:41:18 +01:00
Themaister f9d4bbf4d3 Fix endian issues and strict aliasing. 2011-12-19 01:27:04 +01:00
Themaister eff4fcecae Some additions, but still broken. 2011-12-18 13:27:06 +01:00
TwinAphex51224 cbfdc9cf97 (Libxenon) Changed texture size to 512x512 - stop libxenon development
for now - no double buffering/triple buffering available - return to
it when it's more mature
2011-12-16 18:54:12 +01:00
TwinAphex51224 034c7c70fb (Libxenon) Fixed colors 2011-12-16 17:22:37 +01:00
TwinAphex51224 44ad016b91 (Libxenon) Revert to Xenos driver that works - current issues - colors
are wrong (doing | XE_FMT_ARGB produces 'distorted' graphics but right colors) - no vsync (doing while Xe_IsVBlank(device) Xe_Sync(device) makes everything too
slow
2011-12-16 17:09:33 +01:00
Themaister 5ed0d00249 Try some stuff. 2011-12-16 16:38:25 +01:00
Themaister 6336fb4a1b ... 2011-12-16 16:26:44 +01:00
Themaister 99497e21cf Minor fix. 2011-12-16 16:21:58 +01:00
Themaister 0181d97cae Debork party. Untested. 2011-12-16 16:02:30 +01:00
TwinAphex51224 968c73a748 Merge branch 'master' of github.com:Themaister/SSNES 2011-12-16 15:22:56 +01:00
TwinAphex51224 13f9e94f61 (Libxenon 360) Shows video for one/two frames, then crashes 2011-12-16 15:22:25 +01:00
Themaister 8c1018d573 Merge branch 'master' of github.com:Themaister/SSNES 2011-12-16 15:09:46 +01:00
Themaister d4d00a35d7 :v 2011-12-16 15:09:15 +01:00
TwinAphex51224 e3177fd489 (Libxenon) Xenos gfx commit - still broken 2011-12-16 14:43:09 +01:00
Themaister dd1300f1cc Fix rewind granularity setting when not playing movies. 2011-12-16 10:19:45 +01:00
TwinAphex51224 7f03af2b2b (Libxenon) starts up now - borked graphics though :) 2011-12-15 15:32:47 +01:00
TwinAphex51224 f431f77834 (Libxenon) fix (still crashes during init) 2011-12-15 15:19:03 +01:00
TwinAphex51224 7c28a62b40 (Libxenon) No more SDL 2011-12-15 13:54:22 +01:00
TwinAphex51224 a360042f77 Merge branch 'master' of github.com:Themaister/SSNES 2011-12-15 13:38:55 +01:00
TwinAphex51224 82af27cf33 (Libxenon) Initial xenos graphics driver 2011-12-15 13:38:28 +01:00
Themaister 0b78abb31d hrr drr. 2011-12-15 00:28:47 +01:00
Themaister 2fd8ffbf22 Some progress at least. 2011-12-14 23:56:07 +01:00
Themaister 83f7be0cbb Some more stuff. 2011-12-14 22:29:12 +01:00
Themaister 7f5db4d70f Boots up, but broken graphics. 2011-12-14 21:44:03 +01:00
Themaister 4f04c1288b Use fatInit default. 2011-12-14 19:11:46 +01:00
Themaister 8a2c5bf9e1 Some cleanups. 2011-12-14 17:05:23 +01:00
Themaister 5c05e309c1 Xenon input takes prio. 2011-12-14 16:53:13 +01:00
Themaister bd147270eb Use built-in getopt. 2011-12-14 16:40:25 +01:00
Themaister 528cf8d472 Don't use SDL input on xenon. 2011-12-14 16:37:31 +01:00
Themaister 0fce2f409f Add a warning. :3 2011-12-14 16:29:38 +01:00
Themaister fd7b0b05b8 Hurr. 2011-12-14 16:01:16 +01:00
Themaister 9abc7c00c9 It links :o 2011-12-14 14:52:58 +01:00
Themaister ebc5f433cd It links :o 2011-12-14 14:36:23 +01:00
Themaister aa4f79f236 Start working on video. 2011-12-14 14:26:40 +01:00
Themaister 62f5c53b72 Start on Wii input. 2011-12-14 13:20:22 +01:00
Themaister 534163a57f Start adding stuff for Wii. 2011-12-14 12:49:13 +01:00
TwinAphex51224 325a9fb48e (Libxenon) D-pad works now in ROM browser menu 2011-12-14 08:36:04 +01:00
TwinAphex51224 ee43531a99 Merge branch 'master' of github.com:Themaister/SSNES 2011-12-14 01:35:46 +01:00
TwinAphex51224 757fa71469 (Libxenon) Added (non-working) input driver 2011-12-14 01:35:17 +01:00
Themaister bfee7986bd Fix missing break; 2011-12-14 00:58:17 +01:00
Themaister 9aaad17c1a Update Makefile. 2011-12-14 00:44:38 +01:00
Themaister 93874bba83 Fixup makefile. 2011-12-14 00:41:06 +01:00
Themaister 9c67452f10 <________________________< 2011-12-14 00:36:28 +01:00
Themaister 0416a2ae61 Don't use float <_< 2011-12-14 00:30:03 +01:00
Themaister 8bbde14019 Merge branch 'master' of github.com:Themaister/SSNES 2011-12-14 00:25:26 +01:00
Themaister 0e8f2339d8 Might work better ... 2011-12-14 00:25:04 +01:00
TwinAphex51224 9f37427d7a (Libxenon) Compile with -O3 2011-12-13 23:50:56 +01:00
Themaister 6ad4b1f15a Little endian DAC on 360 (lolwut?) 2011-12-13 23:44:55 +01:00
Themaister a39c0f01f9 Should fix up audio driver a bit. 2011-12-13 23:38:05 +01:00
TwinAphex51224 1136820124 (Libxenon) Terribly borked libxenon audio driver :) 2011-12-13 23:17:37 +01:00
TwinAphex51224 2a3f3bad23 (360 Libxenon) Initial xenon 360 audio driver 2011-12-13 22:57:49 +01:00
Themaister 74def91a53 Debork main a bit. 2011-12-13 21:48:17 +01:00
TwinAphex51224 bc62e1be08 (Libxenon) Added slimjim Libxenon filebrowser - from examples 2011-12-13 21:12:50 +01:00
Themaister 25aea134ef Add temporary hack for SDL cond in Xenon. 2011-12-13 19:34:45 +01:00
Themaister e488c3081d Small nit. 2011-12-11 13:14:44 +01:00
Themaister 331f46fb24 Missing stuff. 2011-12-11 12:51:32 +01:00
Themaister e88662cab0 Updates for 0.9.3. 2011-12-11 12:50:16 +01:00
Themaister 395f6d1d3c Build fixups. 2011-12-10 18:02:50 +01:00
Themaister 94bd78b3e1 Merge branch 'master' of github.com:Themaister/SSNES
Conflicts:
	Makefile.xenon
2011-12-10 17:42:07 +01:00
Themaister dc373fb7d0 Gets to link, but fails there. 2011-12-10 17:41:16 +01:00
Themaister 140812d64a Fixup xenon makefile a bit. 2011-12-10 16:26:26 +01:00
TwinAphex51224 a91c4e556f (360 Libxenon) change to makefile - use built-in getopt 2011-12-10 16:22:37 +01:00
Themaister 372c622166 Nits. 2011-12-10 15:23:20 +01:00
TwinAphex51224 d961d68e9c (360 / Libxenon) Added Libxenon Makefile 2011-12-07 03:19:12 +01:00
Themaister 33a325a730 Nit. 2011-12-07 01:13:06 +01:00
Themaister 909b25c7ac Remove XML stuff. 2011-12-04 18:44:50 +01:00
Themaister 77f110c23e Nits. 2011-12-04 18:26:17 +01:00
Themaister 9dc9416ef9 Merge branch 'ssnes-ps3' 2011-12-04 18:13:31 +01:00
Themaister 0b20f11617 Nits. 2011-12-04 18:06:50 +01:00
Themaister c9594776f8 Style nits. 2011-12-04 18:06:50 +01:00
Themaister 8f55b9904d Update license. 2011-12-04 18:06:50 +01:00
Themaister 093ba1c33d Dynamic fix. 2011-12-04 18:06:50 +01:00
Themaister 67a434d563 Clean. 2011-12-04 18:06:50 +01:00
Themaister ff0c3f047a Some cleanups. 2011-12-04 18:06:50 +01:00
Themaister 2934ba301b Nit. 2011-12-04 18:06:50 +01:00
Themaister f3627aaf59 Nits. 2011-12-04 18:03:08 +01:00
Themaister dc8a2dea72 Style nits. 2011-12-04 18:00:55 +01:00
Themaister 329969eb05 Update license. 2011-12-04 17:57:25 +01:00
Themaister 71923af675 Dynamic fix. 2011-12-04 17:54:00 +01:00
Themaister 18e58ca5f4 Clean. 2011-12-04 17:30:44 +01:00
Themaister 8c3aebbbc8 Some cleanups. 2011-12-04 17:29:59 +01:00
Themaister 7f40c11eb7 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-ps3 2011-12-04 17:24:28 +01:00
Themaister 0ed668d1b5 Minor cleanups. 2011-12-04 17:19:21 +01:00
Themaister 1c8632cac9 Nit. 2011-12-04 17:17:49 +01:00
TwinAphex51224 e7324989fc (PS3) Better extra button bindings 2011-12-04 04:11:02 +01:00
TwinAphex51224 a7fc3807b9 (PS3) Cleaned up indenting in ps3_input.c 2011-12-04 04:00:17 +01:00
TwinAphex51224 99ad7bcc51 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-04 03:43:52 +01:00
Themaister 5b88e338df Nits. 2011-12-04 01:42:00 +01:00
Themaister 425af71450 GET_CAN_REWIND. 2011-12-04 01:40:25 +01:00
Themaister 19c5eab07a Minor clean. 2011-12-04 01:30:16 +01:00
Themaister e5286cbe39 Update XAudio for pure C. 2011-12-04 01:10:16 +01:00
Themaister 02d40aa212 Drop shadows for fonts. 2011-12-03 19:48:13 +01:00
Themaister 8a5c537e15 Fix warning. 2011-12-03 04:09:40 +01:00
TwinAphex51224 c6c4f2f4d1 (PS3) Debug fonts hooked up 2011-12-03 03:52:53 +01:00
TwinAphex51224 5bc7ea4045 (PS3) Properly exits now with shader loaded 2011-12-03 03:10:23 +01:00
TwinAphex51224 077acf7894 (PS3) Savestates hooked up (R2 + R3 - save state - L2 + R3 - load state -
R2 + Right stick right - save state plus - R2 + Right stick left - save state minus)
2011-12-03 02:40:20 +01:00
TwinAphex51224 c5f86f12c0 Revert "(PS3) Would not cleanly exit on PS3 without this - perhaps something"
This reverts commit 243e941d81.
2011-12-03 01:56:41 +01:00
TwinAphex51224 243e941d81 (PS3) Would not cleanly exit on PS3 without this - perhaps something
Cg-related needs deiniting prior to exit(0)
2011-12-03 01:54:57 +01:00
TwinAphex51224 d67e6b7c15 (PS3) Cg shader support fixed 2011-12-03 01:26:56 +01:00
Themaister f76bf59fed Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-03 00:49:26 +01:00
Themaister 1c4d88eb04 Compiles ... properly. 2011-12-03 00:49:09 +01:00
Themaister ad04db8365 Fix includes. 2011-12-03 00:48:42 +01:00
TwinAphex51224 a63ccbbdab (PS3) Implemented rewind/fast forward hooks 2011-12-03 00:07:01 +01:00
Themaister 278f314c03 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 22:57:13 +01:00
Themaister a3abda7e7b Refactor. 2011-12-02 22:56:11 +01:00
Themaister c0a9db111d Fix bug with reordering. 2011-12-02 22:23:19 +01:00
TwinAphex51224 676ce10119 (PS3) Now reads from config file 2011-12-02 22:22:44 +01:00
Themaister c18dce4783 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 22:25:37 +01:00
Themaister 088b01b52e More logial ordering. 2011-12-02 21:37:35 +01:00
Themaister c0f436b8ab Minor nit. 2011-12-02 21:25:25 +01:00
Themaister 3377020242 Fixup build. 2011-12-02 21:24:33 +01:00
Themaister 6db58fe1dd Merge branch 'ssnes-consoles' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 21:22:36 +01:00
Themaister 67c7cd8de9 No default config path on ps3. 2011-12-02 21:22:14 +01:00
Themaister 457a3d458a Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles
Conflicts:
	general.h
2011-12-02 21:18:09 +01:00
Themaister 6538312d86 Fix some includes. 2011-12-02 21:16:51 +01:00
TwinAphex51224 7f1a5075b1 Updated Makefile 2011-12-02 21:14:25 +01:00
Themaister e412ecdefe Do not exit() prematurely. 2011-12-02 19:28:39 +01:00
Themaister 67b89d6f42 Kill off useless font rendering code. 2011-12-02 19:19:48 +01:00
Themaister c8d3278dbc Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 19:15:21 +01:00
Themaister 3556445660 Add new extension support. 2011-12-02 19:12:47 +01:00
Themaister f28fc0cabb Merge branch 'ssnes-consoles' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 16:22:05 +01:00
Themaister e0bc548400 sys_lw synchro. 2011-12-02 16:21:01 +01:00
TwinAphex51224 011a4c8a89 Merge branch 'ssnes-consoles' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 15:59:40 +01:00
TwinAphex51224 87bc5220eb (PS3) Takes care of audio pop 2011-12-02 15:59:07 +01:00
Themaister 673d0ed1a2 Minor fix. 2011-12-02 15:55:49 +01:00
Themaister a5079bdda1 Should improve the state of audio. 2011-12-02 15:50:51 +01:00
Themaister fc43e7155e Should fixup input. 2011-12-02 15:33:14 +01:00
TwinAphex51224 4935333b63 (PS3) Updated icon + PARAM.SFO title 2011-12-02 04:52:29 +01:00
TwinAphex51224 5a3232adff (PS3) SSNES PS3 lives :) - audio, video works - controls don't
seem to work
2011-12-02 03:46:31 +01:00
TwinAphex51224 d03f351f33 (PS3) Crashes in find_audio_driver (driver.c) 2011-12-02 03:32:04 +01:00
TwinAphex51224 8d5bf997a9 Made global g_quitting variable in PSGL driver 2011-12-02 02:51:21 +01:00
Themaister 0738480439 Make sure set_defaults is called. 2011-12-02 02:48:04 +01:00
TwinAphex51224 9a5e1a31ad Merge branch 'ssnes-consoles' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 02:47:28 +01:00
Themaister 5ab7664f49 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 02:48:26 +01:00
TwinAphex51224 1cb2c60ccc Calblack put in video_psgl.c - not sure how to use it there 2011-12-02 02:46:47 +01:00
Themaister 1356d0ab4c .___. 2011-12-02 02:41:32 +01:00
Themaister b4c4a65f2d Clear up input. 2011-12-02 02:34:06 +01:00
Themaister ab3cf8daca Merge branch 'ssnes-consoles' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 02:25:40 +01:00
Themaister 2b6c252747 Minor fixes. 2011-12-02 02:22:29 +01:00
TwinAphex51224 ec9a6ac90a Can make a PKG now 2011-12-02 02:07:46 +01:00
Themaister a207549f18 fixup stub. 2011-12-02 01:59:44 +01:00
Themaister efbf9354f9 It ... links! 2011-12-02 01:59:07 +01:00
Themaister 216ddc9fd6 Merge branch 'ssnes-consoles' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 01:38:24 +01:00
Themaister 3b668cccd3 Add audio/utils.o. 2011-12-02 01:38:04 +01:00
Themaister 30a86a2845 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-12-02 01:35:15 +01:00
Themaister a7870aa888 Altivec sample conversion. 2011-12-02 01:34:02 +01:00
TwinAphex51224 271b99981c Won't link right now 2011-12-02 01:28:47 +01:00
Themaister 08ef01bb13 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles
Conflicts:
	dynamic.c
2011-12-02 00:07:54 +01:00
Themaister e778af462a Stub main. 2011-12-02 00:01:48 +01:00
Themaister 9d124b2380 Do not use anything dylib related if not compiled in. 2011-12-01 22:36:26 +01:00
Themaister f24e7cd665 Texrefs (untested). 2011-12-01 22:21:15 +01:00
Themaister e7f1526942 Fix compilation errors. 2011-12-01 21:54:42 +01:00
TwinAphex51224 647b1ba53c (PS3) Comiles now, doesn't link 2011-12-01 21:23:49 +01:00
TwinAphex51224 eac8d9f191 Update to PSGL driver 2011-12-01 11:25:08 +01:00
TwinAphex51224 50babe8432 More commits to PSGL driver 2011-11-30 23:50:31 +01:00
TwinAphex51224 8171977ed7 Preliminary version of PSGL video driver 2011-11-30 21:54:25 +01:00
TwinAphex51224 f8aaf1df1e (PS3) Some more commits 2011-11-30 18:32:45 +01:00
Themaister 04d0d84d01 Fix up more paths. 2011-11-30 18:31:09 +01:00
TwinAphex51224 f4aa9fa865 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-11-30 18:27:11 +01:00
TwinAphex51224 40ef7d6f00 Improved Makefile a bit 2011-11-30 18:26:42 +01:00
TwinAphex51224 66b7b1691c (PS3) Removed thread.o from Makefile 2011-11-30 18:19:34 +01:00
Themaister 43972d4c35 Fix build. 2011-11-30 18:18:50 +01:00
TwinAphex51224 632545c409 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-11-30 18:13:27 +01:00
TwinAphex51224 3a47e2cd63 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-11-30 18:11:06 +01:00
Themaister a221e3e4cd Enable/disable threading support. 2011-11-30 17:46:58 +01:00
Themaister b87f50dc9d Fix include path. 2011-11-30 17:34:18 +01:00
Themaister a5b3f421d1 Fix include paths for libsnes header. 2011-11-30 17:32:30 +01:00
TwinAphex51224 182525afa9 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-11-30 17:28:11 +01:00
TwinAphex51224 419afbcb83 Progresses to thread.c now 2011-11-30 17:27:47 +01:00
Themaister 12ca70a308 Refactor binds. 2011-11-30 17:25:44 +01:00
TwinAphex51224 1fa7663d3b Put in old input driver too - progresses to dynamic.c now 2011-11-30 17:24:18 +01:00
TwinAphex51224 2e34c6fc5c Moved in old PS3 audio driver 2011-11-30 17:11:42 +01:00
Themaister cb7002559d Put defines in makefile. 2011-11-30 17:01:15 +01:00
TwinAphex51224 36ec92793f Put PACKAGE_VERSION define in Makefile 2011-11-30 16:58:20 +01:00
TwinAphex51224 4187d70b30 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-11-30 16:56:38 +01:00
Themaister 5969655c3c Do not allow netplay args if not compiled in. 2011-11-30 16:43:09 +01:00
Themaister 09d2ec7d3a Do not build in anything netplay related if not included. 2011-11-30 16:41:00 +01:00
TwinAphex51224 27b975d0fc Add in PS3 define for ssnes_sleep 2011-11-30 16:40:52 +01:00
TwinAphex51224 6da64013fa Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-11-30 16:38:53 +01:00
Themaister d8eb5de380 Do not include netplay header needlessly. 2011-11-30 16:27:16 +01:00
Themaister 23aa8bbe7a Actually use sleep param. 2011-11-30 16:26:23 +01:00
TwinAphex51224 3b5472dbac Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-11-30 16:22:16 +01:00
TwinAphex51224 3b4e60aada Header guards for netplay.c not necessary 2011-11-30 16:21:21 +01:00
TwinAphex51224 8d8fb44c18 Use getopt replacement 2011-11-30 16:19:12 +01:00
TwinAphex51224 b46fb60a6e Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles 2011-11-30 16:02:49 +01:00
Themaister f7399bbc8b Fix docs. 2011-11-30 12:09:22 +01:00
Themaister 7f7d47b120 Custom getopt for portability. 2011-11-30 11:48:53 +01:00
TwinAphex51224 e7aa3ed0cc Compile in OpenGL and Cg 2011-11-30 01:41:50 +01:00
TwinAphex51224 0ece8b1319 Added static Makefile for PS3 2011-11-30 01:33:14 +01:00
TwinAphex51224 557e05dd12 initial new branch 2011-11-30 01:07:38 +01:00
Themaister 08a1496501 Use big-endian BSV1 magic.
Keep compatibility with old implementation.
Documentation was suggesting little-endian, but this was not correct.
2011-11-28 02:11:33 +01:00
Themaister 5a24037c61 Update joyconfig. 2011-11-26 16:02:49 +01:00
Themaister 5dbd1ea35c Add mute toggle. 2011-11-26 15:54:58 +01:00
Themaister 2476e3dee3 Updates for 0.9.2. 2011-11-24 13:13:55 +01:00
Themaister c05a5c9fdd Only init Video if it isn't already. 2011-11-23 03:26:56 +01:00
Themaister 503c51d633 Check for additional fonts. 2011-11-22 18:52:20 +01:00
Themaister 46054de4f8 Fix possible segfault. 2011-11-22 17:32:38 +01:00
Themaister 604eb9b973 Can dupe extension. 2011-11-22 17:27:02 +01:00
Themaister 0e72120bdc Updates for 0.9.2-rc2. 2011-11-21 16:30:35 +01:00
Themaister b8064f5d42 New semantics for BSV movie recording. 2011-11-20 20:19:05 +01:00
Themaister 379b14a0f3 Flush more sanely. 2011-11-20 03:19:17 +01:00
Themaister 2a598c0b97 Do not quit SSNES on movie playback end. 2011-11-20 03:00:21 +01:00
Themaister aa124b4c40 Should fix occasional horrible noise on end of recordings. 2011-11-20 02:44:21 +01:00
Themaister bb5e31df0d Still record audio even if audio is not enabled. 2011-11-20 02:06:25 +01:00
Themaister e49d216884 Check for large skews in timing. 2011-11-19 14:16:55 +01:00
Themaister 598d06fcb5 More explicitly log paths. 2011-11-19 01:33:21 +01:00
Themaister 7f13ec88e6 Simplify things a bit. 2011-11-18 18:43:02 +01:00
Themaister c5c60c6f53 Add --bsvrecord. 2011-11-18 18:03:24 +01:00
Themaister 81b0e6d0a3 Use display refresh rates rather than input rate directly. 2011-11-18 15:14:56 +01:00
Themaister da97b29d0b Update FFmpeg to use new define in Win32. 2011-11-18 13:07:24 +01:00
Themaister 69b7f92285 Updates for 0.9.2-rc1. 2011-11-18 12:17:25 +01:00
Themaister 3a9dbbc8b7 Pause while inactive disabled by default. 2011-11-17 21:17:29 +01:00
Themaister bf5db10459 Change timeout message to be less misleading. 2011-11-16 22:30:57 +01:00
Themaister 4fa27a5f0f Binaries link in README. 2011-11-16 21:28:30 +01:00
Themaister 3e7c412738 Custom timing support for FFmpeg recording. 2011-11-16 18:56:42 +01:00
Themaister 88c870dcfa Allow -L/--libsnes from command line. 2011-11-15 21:15:12 +01:00
Themaister 66e1179503 Do not remove -s. 2011-11-15 16:44:40 +01:00
Themaister 4ecea5d0a4 Expose python to external drivers. 2011-11-15 15:41:49 +01:00
Themaister 57816edfd3 Fix some hardcoding. 2011-11-13 17:44:20 +01:00
Themaister 17cf0985c5 Typo. 2011-11-13 17:10:21 +01:00
Themaister 776b0a1e2d Add a helper define for input scale. 2011-11-13 17:09:49 +01:00
Themaister 4a6392aefa Fix wrong placement of line in print_help(). 2011-11-13 01:12:32 +01:00
Themaister 29dd4727b8 Disable used attribs in Cg as well. 2011-11-12 18:31:22 +01:00
Themaister face42a888 Disable used attributes on shader change. 2011-11-12 18:20:54 +01:00
Themaister 45fa6795c3 Fixups. 2011-11-12 16:43:59 +01:00
Themaister a9d339efb4 Use glColorPointer(). 2011-11-12 15:51:37 +01:00
Themaister 60841b01a5 Use custom "stock" program. 2011-11-12 15:26:24 +01:00
Themaister ad67511483 Cleanups. PREV{1-6} for GLSL as well. 2011-11-12 14:18:10 +01:00
Themaister 104fb4fb16 nits. 2011-11-12 13:00:37 +01:00
Themaister 816ef095ed Lots of PREV frames in Cg. 2011-11-12 12:55:03 +01:00
Themaister 48e8472f9c Ring buffer of 8 textures :o 2011-11-12 12:28:07 +01:00
Themaister 1755500b19 Source cleanup. 2011-11-12 01:42:37 +01:00
Themaister 4bfc827eb2 Some fixes to Python. 2011-11-11 19:20:56 +01:00
Themaister ddfeacbd83 Minor fixes and cleanups to BSV. 2011-11-11 00:55:35 +01:00
Themaister 79353f861c Do not report dupes. 2011-11-10 00:49:45 +01:00
Themaister f3f4efe304 Improve error reporting in Cg. 2011-11-10 00:46:39 +01:00
Themaister 51721b4cb6 video_font_enable. 2011-11-10 00:15:41 +01:00
Themaister 477091ce8f Do not force crop_overscan with ffmpeg. 2011-11-10 00:03:52 +01:00
Themaister 2707b87767 Should fix overscan overcrop. 2011-11-09 23:58:14 +01:00
Themaister b3d422b5cd rubyFrameDirection / IN.frame_direction. 2011-11-09 23:45:34 +01:00
Themaister d1dc65f202 Cleaner setup of bind-map. 2011-11-09 22:47:12 +01:00
Themaister 7815940a97 SNES_ENVIRONMENT_OVERSCAN. 2011-11-09 22:18:48 +01:00
Themaister 4f841c208d Use --qp 0 rather than --crf 0 for lossless. 2011-11-07 23:16:32 +01:00
Themaister b4f0d9b8f8 Restrict number of lag frames. 2011-11-06 20:38:42 +01:00
Themaister b96ab2982c Should fix minor issues with timeouts when lag frames > 8. 2011-11-06 20:28:02 +01:00
Themaister 825c1de7d1 Nits. 2011-11-05 15:24:29 +01:00
Themaister 6ada4d87d3 Style nit. 2011-11-05 13:34:41 +01:00
Themaister 53abc92322 Add some metadata. Should be a workaround. 2011-11-05 12:25:09 +01:00
Themaister a816082ac3 Style nit. 2011-11-05 11:44:17 +01:00
Themaister 47e63f1c6b Style nit. 2011-11-05 11:37:04 +01:00
Themaister cdf3d05c8e Should fix spurious timeouts for netplay. 2011-11-04 00:18:17 +01:00
Themaister 389e9ba0dc Style nit. 2011-11-04 00:07:53 +01:00
Themaister a6f7a2311f Minor cleanups for hermite. 2011-11-03 23:48:36 +01:00
Themaister f19d99d523 Log error when netplay init fails. 2011-11-03 21:05:12 +01:00
Themaister e7082fd6ea Warning nit. 2011-11-02 20:33:37 +01:00
Themaister 4806d2fe88 Clear up inconsistencies, and avoid breaking standard compliance. 2011-11-02 20:04:31 +01:00
Themaister f85ff7124b More nits. 2011-11-02 19:34:08 +01:00
Themaister 0f010cf3d2 Fix style nits. 2011-11-02 19:31:36 +01:00
Themaister 95636d4f04 Refactor XVideo driver. Also, attempts harder to find suitable formats. 2011-11-02 17:51:15 +01:00
Themaister 43905e410e Fix build ... *grummel* 2011-11-02 17:04:49 +01:00
Themaister d23a7e3ddf HAVE_OPENGL=1 in Windows. 2011-11-02 17:02:59 +01:00
Themaister 652f4c5856 More explicit checking for inconsistency. 2011-11-02 16:54:45 +01:00
Themaister 90febc4ecf Use dynamic by default.
FFmpeg and Python does not require explicit --enable.
2011-11-02 16:50:34 +01:00
Themaister 34b5994842 Fix minor issue. 2011-11-01 21:28:32 +01:00
Themaister 0c3f6ed66b Cleanup and optimize rewind a bit. Forced POT buffer size. 2011-11-01 21:00:41 +01:00
Themaister f3e487557e Fix some style nits. 2011-11-01 20:27:59 +01:00
Themaister ee12266a2b Fix build for OSX. 2011-11-01 18:45:50 +01:00
Themaister 1981b14de9 Allow OpenGL to be disabled. 2011-11-01 18:24:43 +01:00
Themaister 65665f36cc Fixup netplay. 2011-10-31 22:51:54 +01:00
Themaister a48dc55c41 Fix ugly possible segfault. 2011-10-30 16:58:45 +01:00
Themaister 202a458524 Updates for 0.9.1. 2011-10-30 11:24:16 +01:00
Themaister b4de704a09 Style nit. 2011-10-30 02:12:00 +02:00
Themaister fef5edfac8 Change default aspect handling. 2011-10-30 01:58:08 +02:00
Themaister a6e74775b1 Edge trigger reset. 2011-10-29 13:35:01 +02:00
Themaister ee66a28d05 Style nit. 2011-10-29 13:33:15 +02:00
Themaister 5e28d82af2 Fix compile with HAVE_CONFIGFILE=0. 2011-10-28 17:10:58 +02:00
Themaister c2a06bfa09 Replace some magic numbers. 2011-10-28 09:06:34 +02:00
Themaister 66510e21aa Fixup build for non dynamic builds. 2011-10-28 00:34:42 +02:00
Themaister ec5e3355b9 Add some logging. 2011-10-28 00:23:49 +02:00
Themaister 0522a2d6a0 Start implementing some minor extensions to libsnes. 2011-10-27 23:40:34 +02:00
Themaister fad89f9d2d More gracious error handling for state tracker. 2011-10-26 19:51:10 +02:00
Themaister 97f937ec6d Use floating point values for uniforms from Python. 2011-10-26 10:26:09 +02:00
Themaister 9647006a2b Merge branch 'master' of github.com:Themaister/SSNES 2011-10-25 23:03:20 +02:00
Themaister 418ba455f8 Allow the rest of the buttons in Python.
Fix issue where long type was enforced for return values of uniforms.
2011-10-25 23:02:17 +02:00
Themaister 197d62860b Default screenshot directory. 2011-10-24 21:34:30 +02:00
Themaister 402451626f More accurate colors for screenshot. 2011-10-24 19:23:58 +02:00
Themaister 3739cbfc70 Minor cleanup for rewind. 2011-10-23 17:13:16 +02:00
Themaister 235355ffc7 Check more explicitly for XVideo and Xext. 2011-10-23 12:48:44 +02:00
Themaister 4856d0cac3 Allow screenshots while paused. 2011-10-23 12:38:11 +02:00
Themaister 77a2723bb0 Neat optimizations for SSE. 2011-10-23 02:56:33 +02:00
Themaister 41cd6e21c3 Use _mm* intrinsics. 2011-10-22 23:36:02 +02:00
Themaister 1fc99c7123 Fix deprecation warning. 2011-10-22 22:54:36 +02:00
Themaister fddcc3447c Fix build for Clang. 2011-10-22 22:19:54 +02:00
Themaister 70e9f084b7 Merge branch 'master' of github.com:Themaister/SSNES 2011-10-22 20:20:03 +02:00
Themaister 824790a80d Updates for 0.9. 2011-10-22 20:19:40 +02:00
Themaister 23d23983bc Fix broken #define in header. 2011-10-21 22:12:03 +02:00
Themaister c42655ed91 Logging for paused. 2011-10-20 23:33:15 +02:00
Themaister f46ee78c76 Apply a hack and push the frame several times when changing fullscreen. 2011-10-20 23:28:46 +02:00
Themaister 5d1d188231 Hardcode hermite for 2 channels. 2011-10-20 22:26:41 +02:00
Themaister c55ce543c2 Revert "Use C99 stdio in mingw, yay" :\
This reverts commit de8bc62474.
2011-10-19 18:12:30 +02:00
Themaister de8bc62474 Use C99 stdio in mingw, yay 2011-10-19 18:10:05 +02:00
Themaister 397da887a7 Merge branch 'master' of github.com:Themaister/SSNES 2011-10-19 08:16:26 +02:00
Themaister f44733d7f6 Only show paused rewind for 1 frame. 2011-10-26 03:24:39 +02:00
Themaister 5faa28a1a2 Clarify x/yscale. 2011-10-19 08:16:01 +02:00
Themaister efaa85ff9b Cleaner. 2011-10-18 21:59:37 +02:00
Themaister 8f5580be10 Frame advance goes into pause. 2011-10-18 21:57:28 +02:00
Themaister c7acd99548 Same for SDL ... 2011-10-18 19:52:43 +02:00
Themaister 64ee13e6f4 Push window loop in .alive(). 2011-10-18 19:51:38 +02:00
Themaister e134f8afc7 And yet another ... :) 2011-10-18 19:22:20 +02:00
Themaister dd89e6fbe0 Fix build without FFmpeg. 2011-10-18 19:16:38 +02:00
Themaister a79a1b46f7 Updates for 0.9-rc4. 2011-10-18 19:12:28 +02:00
Themaister 6467f51ea8 Frame caching for more "proper" fullscreen switch. 2011-10-18 17:26:15 +02:00
Themaister 141eefb03b Fix fullscreen pause toggle for windows. 2011-10-18 14:39:54 +02:00
Themaister 068c224d83 Include windows.h properly. 2011-10-18 14:05:30 +02:00
Themaister 5bc8090ea7 Allow fullscreen toggle while paused. 2011-10-18 13:29:39 +02:00
Themaister 466ab1ef8d Frame advance. 2011-10-17 21:30:58 +02:00
Themaister a1c19ed1f5 Minor refactor. 2011-10-17 20:46:38 +02:00
Themaister cce4b7d20c Allow #include depth. 2011-10-17 20:09:57 +02:00
Themaister 80925ffc11 Some Windows fixes. 2011-10-17 19:30:52 +02:00
Themaister 9eb14e328d Add "#include" for config files. 2011-10-17 19:11:31 +02:00
Themaister 5ae0cb1821 Base size for windowed mode calculations. 2011-10-16 21:36:17 +02:00
Themaister fc594f7f0f Fix edge case on input poll. 2011-10-16 15:45:04 +02:00
Themaister 0c4e406ee7 Remove unused variable. 2011-10-16 12:51:14 +02:00
Themaister a082ec5251 Fix segfault. 2011-10-16 04:01:01 +02:00
Themaister 953b5daf0a Pause hooked up. 2011-10-16 02:00:55 +02:00
Themaister b4ff622f32 Title buf hints. Purge samplerate opts. 2011-10-15 20:05:34 +02:00
Themaister f26b54c998 Updates for RC3. 2011-10-15 18:51:58 +02:00
Themaister d7b3f39136 SSE2 optimized a bit :D 2011-10-15 18:09:44 +02:00
Themaister 5bcf601a40 Refactor out audio conversion. 2011-10-15 17:47:29 +02:00
Themaister e91ebdac97 Do not recalculate ratio all the time. 2011-10-15 16:16:13 +02:00
Themaister b2dd12d186 Rewind audio! :D 2011-10-15 14:33:41 +02:00
Themaister 9c79bf0ba2 Refactor audio flushing method. 2011-10-15 13:16:32 +02:00
Themaister f48247a18b Style nits ... 2011-10-15 12:56:48 +02:00
Themaister 48e015558e Style nits. 2011-10-15 12:54:47 +02:00
Themaister 0ff3cbc93b Nits. 2011-10-15 12:51:17 +02:00
Themaister 25f0e162a4 Purge support for libsamplerate. Obsolete. 2011-10-15 12:48:15 +02:00
Themaister 0810812cd9 Slight cleanups when pushing audio. 2011-10-15 12:42:39 +02:00
Themaister 15e0b721e6 Updates for RC2. 2011-10-14 14:07:03 +02:00
Themaister 9d12c3ac87 Use Makefile.win for Phoenix. 2011-10-14 13:34:27 +02:00
Themaister a7c3d8d17a Some slight recording tweaks. 2011-10-14 11:27:02 +02:00
Themaister 8fbfdee011 Do not always force 4.0 / 3 aspect ratio for output. 2011-10-14 11:00:31 +02:00
Themaister bc999e72fa Updates for v0.9-rc1. Use --features rather than spamming down --help. 2011-10-11 20:02:46 +02:00
Themaister c7f8110670 Use glorious x264 RGB. 2011-10-10 22:24:26 +02:00
Themaister b0dbc67281 Fix build when only Cg is being compiled. 2011-10-17 15:35:02 +02:00
Themaister 4916f7b08b Add placeholder define for when libx264 RGB support is built in. 2011-10-09 12:37:53 +02:00
Themaister 1058d94ec1 x264 RGB recording. 2011-10-09 12:27:02 +02:00
Themaister 340dca3c6d Download headers (lib/headers split). 2011-10-08 17:01:40 +02:00
Themaister 4ae0f3da22 Remove obsolete readme. 2011-10-08 01:27:21 +02:00
Themaister 7d2d1ce49e Change "hashing" value used for netplay. 2011-10-07 22:33:38 +02:00
Themaister fa26f6a10c Cache font rendering. Major overhead reduction. 2011-10-07 17:58:22 +02:00
Themaister db71a5cdba New font rendering code for OpenGL. 2011-10-07 17:43:39 +02:00
Themaister 5058fdcd1a Update docs. 2011-10-07 01:36:52 +02:00
Themaister ef04f199d5 Slight cleanups. 2011-10-07 01:21:54 +02:00
Themaister d26dd9d9e7 Slight cleanups. 2011-10-07 00:54:47 +02:00
Themaister d2bc4096de Some fixes to FFmpeg. Conserves RAM better. 2011-10-07 00:04:52 +02:00
Themaister 08ca1a54d3 Remove useless asserts. 2011-10-06 23:44:21 +02:00
Themaister 869eddfc1a Custom FFmpeg recording sizes. 2011-10-06 23:43:48 +02:00
Themaister fbced43f11 Update threading for Win32. 2011-10-06 22:40:47 +02:00
Themaister c996f816b8 Default font path OSX. 2011-10-06 21:12:11 +02:00
Themaister 33ecedb462 Fixup build for OSX. 2011-10-06 20:49:00 +02:00
Themaister a58676c9e1 Linux needs -lrt for clock_gettime. 2011-10-06 20:34:01 +02:00
Themaister 1ee9722e5f Start working on custom thread implementation.
Avoids SDL dependency for this to improve portability.
2011-10-06 20:31:39 +02:00
Themaister 81250657f0 Change default font color to yellow. 2011-10-06 19:10:01 +02:00
Themaister 7d33cccc8e Default fonts. 2011-10-06 19:06:38 +02:00
Themaister 3db79ab2f0 Nits. 2011-10-05 22:56:52 +02:00
Themaister ea0f6813d2 Avoid assertions. 2011-10-05 22:39:54 +02:00
Themaister f6d4d32c03 Dynamic loading by default, add OSD message for netplay DC. 2011-10-05 21:44:17 +02:00
Themaister 892e82141f Fix FTBFS. 2011-10-05 19:57:32 +02:00
Themaister 65ec7fae9c Is this it? 2011-10-05 02:09:54 +02:00
Themaister a0acb75a19 Might push lagframes better. 2011-10-05 01:05:34 +02:00
Themaister bcae973d82 Savestate auto indexing support. 2011-09-27 15:31:25 +02:00
Themaister d01a4fe61b Only load second pass shaders when render-to-texture is set. 2011-09-26 22:45:28 +02:00
Themaister 8d4620b680 FFmpeg API seems to be too fragmented. Give in and #ifdef shit. :v 2011-09-23 22:57:41 +02:00
Themaister c2cedb1b6f Resizing windows in 1.2 should not trigger some init code :) 2011-09-22 21:50:57 +02:00
Themaister 157dcad87b Fix newline typo. 2011-09-22 13:15:16 +03:00
Themaister 8ea5ba171a Updates for 0.8.2. 2011-09-21 21:17:46 +02:00
Themaister fa876b10a3 Style nit. 2011-09-20 12:22:30 +02:00
Themaister 3c58d10eae Small fix. 2011-09-20 12:05:21 +02:00
Themaister a3ee8c8849 Defensive nit. 2011-09-20 11:58:21 +02:00
Themaister 5e14b302bc Replace a VLA with char[MAXPATHLEN]. 2011-09-20 12:50:13 +03:00
Themaister efe3f943d5 Only autosave when the data actually changed. 2011-09-17 10:57:55 +02:00
Themaister 38e7fc6659 Add support for blocking SRAM writes :) 2011-09-16 15:32:21 +02:00
Themaister a1ceb534de nit. 2011-09-13 23:24:06 +02:00
Themaister 0d897dd65d Check some additional WM messages. 2011-09-13 22:38:32 +02:00
Themaister 721d73f451 Fix stupid crash. 2011-09-13 22:16:34 +02:00
Themaister e8bd64e898 Allow SDL driver to work as well in 1.3. 2011-09-13 20:01:22 +02:00
Themaister 7da7ab2ce7 lalala ... 2011-09-13 19:36:15 +02:00
Themaister 3f6183ff15 Updates, fixes ... 2011-09-13 19:30:22 +02:00
Themaister 642316a1e2 Somewhat haphazard. Can't find some needed API calls :\ 2011-09-13 18:50:40 +02:00
Themaister 21c6b75839 Use SwapInterval with SDL 1.3. 2011-09-13 15:00:26 +02:00
Themaister 87d34deb0c Can build with SDL 1.3 on Win32. 2011-09-13 14:57:42 +02:00
Themaister 1b3408919c Can use SDL 1.3 just fine now. 2011-09-13 14:41:45 +02:00
Themaister 23516572b7 Use SK_* keysyms (pretty much SDL 1.2). 2011-09-13 14:40:33 +02:00
Themaister 924848fdad Start working towards SDL 1.2/1.3 compat. 2011-09-13 14:06:49 +02:00
Themaister 4c40e56060 Properly disable it :D 2011-09-11 15:41:46 +02:00
Themaister cf34444505 Disable resizing on OSX. 2011-09-11 15:33:28 +02:00
Themaister 9ca5e4e470 Updates for 0.8.1. 2011-09-10 19:15:05 +02:00
Themaister 32f2689b6a Add LIBXML_TEST_VERSION to XML cheats. 2011-09-09 09:48:46 +02:00
Themaister 13ae61031f Add ttf_font_color to ext driver struct.
Does not need to bump ABI version.
2011-09-09 09:47:32 +02:00
Themaister 1ced96c5e9 Make it non-public. 2011-09-07 18:59:51 +02:00
Themaister 0d905eb3f6 Actually load cheats on startup ... :') 2011-09-07 18:59:01 +02:00
Themaister 32a5460ea7 Small cleanup. 2011-09-06 19:53:22 +02:00
Themaister be5acff69c Update font rendering for SDL. 2011-09-06 18:32:40 +02:00
Themaister 1b0ef5793e Font colors for XVideo. Some cleanups. 2011-09-06 17:56:42 +02:00
Themaister 2bd0caae2e Do not set RESIZABLE on fullscreen (really? :v) 2011-09-06 15:38:32 +02:00
Themaister 3045f2c478 Move cheat initializing as late as possible. 2011-09-06 12:55:21 +03:00
Themaister 1282a142d6 Fix load/save semantics for cheats ... 2011-09-06 12:51:52 +03:00
Themaister ac1a539d22 Fix stupid typo. 2011-09-05 21:21:18 +02:00
Themaister 6f47775239 Add cheat config. 2011-09-05 17:57:30 +02:00
Themaister 0823d72dee Add coloring to fonts. 2011-09-05 17:00:28 +02:00
Themaister 407ad94f58 Style nit. 2011-09-04 21:11:26 +02:00
Themaister b2b103362d Warn if glX VSync call isn't found. 2011-09-04 13:01:54 +02:00
Themaister 231680944f Remove #ifdef for FFmpeg. 2011-09-04 11:37:59 +02:00
395 changed files with 92288 additions and 11384 deletions

No files matched your search

View File
Whitespace-only changes.
+14 -2
View File
@@ -1,7 +1,19 @@
*.o
*.bmpobj
*.so
*.dll
ssnes
*.a
/retroarch
/retroarch.*
/config.h
/config.mk
/tools/ssnes-joyconfig
/tools/retroarch-joyconfig
/tools/retroarch-joyconfig.*
*.ncb
*.sdf
*.opensdf
*.suo
Debug
Release
ipch
*.user
File diff suppressed because it is too large. Load diff
+222
View File
@@ -0,0 +1,222 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
* Copyright (C) 2011-2012 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MENU_XUI_H_
#define _MENU_XUI_H_
#include <xui.h>
#include <xuiapp.h>
enum
{
SETTING_EMU_REWIND_ENABLED = 0,
SETTING_EMU_SHOW_INFO_MSG,
SETTING_EMU_MENUS,
SETTING_GAMMA_CORRECTION_ENABLED,
SETTING_COLOR_FORMAT,
SETTING_SHADER,
SETTING_SHADER_2,
SETTING_HW_TEXTURE_FILTER,
SETTING_HW_TEXTURE_FILTER_2,
SETTING_SCALE_ENABLED,
SETTING_SCALE_FACTOR,
SETTING_ZIP_EXTRACT,
};
enum
{
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_B = 0,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_Y,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_SELECT,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_START,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_UP,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_DOWN,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_LEFT,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_RIGHT,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_A,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_X,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_L,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_R,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_L2,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_R2,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_L3,
SETTING_CONTROLS_RETRO_DEVICE_ID_JOYPAD_R3,
SETTING_CONTROLS_DPAD_EMULATION,
SETTING_CONTROLS_DEFAULT_ALL
};
enum
{
INPUT_LOOP_NONE = 0,
INPUT_LOOP_MENU,
INPUT_LOOP_RESIZE_MODE,
INPUT_LOOP_FILEBROWSER
};
class CRetroArch : public CXuiModule
{
public:
HXUIOBJ hMainScene;
HXUIOBJ hControlsMenu;
HXUIOBJ hFileBrowser;
HXUIOBJ hCoreBrowser;
HXUIOBJ hShaderBrowser;
HXUIOBJ hQuickMenu;
HXUIOBJ hRetroArchSettings;
protected:
virtual HRESULT RegisterXuiClasses();
virtual HRESULT UnregisterXuiClasses();
};
class CRetroArchMain: public CXuiSceneImpl
{
protected:
CXuiControl m_filebrowser;
CXuiControl m_quick_menu;
CXuiControl m_controls;
CXuiControl m_settings;
CXuiControl m_change_libretro_core;
CXuiControl m_quit;
CXuiTextElement m_title;
CXuiTextElement m_core;
CXuiControl m_logoimage;
public:
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
XUI_END_MSG_MAP();
XUI_IMPLEMENT_CLASS(CRetroArchMain, L"RetroArchMain", XUI_CLASS_SCENE)
};
class CRetroArchFileBrowser: public CXuiSceneImpl
{
protected:
CXuiList m_romlist;
CXuiControl m_back;
CXuiControl m_dir_game;
CXuiControl m_dir_cache;
CXuiTextElement m_rompathtitle;
public:
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
XUI_END_MSG_MAP();
XUI_IMPLEMENT_CLASS(CRetroArchFileBrowser, L"RetroArchFileBrowser", XUI_CLASS_SCENE)
};
class CRetroArchCoreBrowser: public CXuiSceneImpl
{
protected:
CXuiList m_romlist;
CXuiControl m_back;
CXuiTextElement m_rompathtitle;
public:
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
XUI_END_MSG_MAP();
XUI_IMPLEMENT_CLASS(CRetroArchCoreBrowser, L"RetroArchCoreBrowser", XUI_CLASS_SCENE)
};
class CRetroArchShaderBrowser: public CXuiSceneImpl
{
protected:
CXuiList m_shaderlist;
CXuiControl m_back;
CXuiTextElement m_shaderpathtitle;
public:
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
XUI_END_MSG_MAP();
XUI_IMPLEMENT_CLASS(CRetroArchShaderBrowser, L"RetroArchShaderBrowser", XUI_CLASS_SCENE)
};
class CRetroArchQuickMenu: public CXuiSceneImpl
{
protected:
CXuiList m_quickmenulist;
CXuiControl m_back;
public:
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
HRESULT OnControlNavigate(XUIMessageControlNavigate *pControlNavigateData, BOOL& bHandled);
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
XUI_ON_XM_CONTROL_NAVIGATE( OnControlNavigate )
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
XUI_END_MSG_MAP();
XUI_IMPLEMENT_CLASS(CRetroArchQuickMenu, L"RetroArchQuickMenu", XUI_CLASS_SCENE)
};
class CRetroArchSettings: public CXuiSceneImpl
{
protected:
CXuiList m_settingslist;
CXuiControl m_back;
public:
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
HRESULT OnControlNavigate(XUIMessageControlNavigate *pControlNavigateData, BOOL& bHandled);
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
XUI_ON_XM_CONTROL_NAVIGATE( OnControlNavigate )
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
XUI_END_MSG_MAP();
XUI_IMPLEMENT_CLASS(CRetroArchSettings, L"RetroArchSettings", XUI_CLASS_SCENE)
};
class CRetroArchControls: public CXuiSceneImpl
{
protected:
CXuiList m_controlslist;
CXuiControl m_back;
CXuiSlider m_controlnoslider;
public:
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
HRESULT OnControlNavigate(XUIMessageControlNavigate *pControlNavigateData, BOOL& bHandled);
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
XUI_ON_XM_CONTROL_NAVIGATE( OnControlNavigate )
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
XUI_END_MSG_MAP();
XUI_IMPLEMENT_CLASS(CRetroArchControls, L"RetroArchControls", XUI_CLASS_SCENE)
};
#endif
+244
View File
@@ -0,0 +1,244 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
* Copyright (C) 2011-2012 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <debug.h>
#include <xenos/xenos.h>
#include <diskio/dvd.h>
#include <diskio/ata.h>
#include <input/input.h>
#include <console/console.h>
#include <diskio/diskio.h>
#include <usb/usbmain.h>
#include <time/time.h>
#include <ppc/timebase.h>
#include <xenon_soc/xenon_power.h>
#include <elf/elf.h>
#include <dirent.h>
#include "../../compat/strl.h"
#undef main
int rarch_main(int argc, char **argv);
static void start_rarch(const char *path)
{
char arg0[] = "retroarch";
char arg1[256];
strlcpy(arg1, path, sizeof(arg1));
char *argv[3] = { arg0, arg1, NULL };
rarch_main(sizeof(argv) / sizeof(argv[0]) - 1, argv);
}
#define FG_COL -1
#define BG_COL 0
#define MAX_FILES 1000
#define STICK_THRESHOLD 25000
#define MAX_DISPLAYED_ENTRIES 20
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
static struct dirent entries[MAX_FILES];
static int entrycount;
static void load_dir(const char *path)
{
DIR *d = opendir(path);
entrycount = 0;
if (!d)
return;
for (struct dirent *de = readdir(d); de; de = readdir(d))
{
if (strcmp(de->d_name, "."))
{
memcpy(&entries[entrycount], de, sizeof(struct dirent));
entrycount++;
}
}
closedir(d);
}
static void append_dir_to_path(char *path, const char *dir)
{
if (!strcmp(dir, ".."))
{
int i = strlen(path);
int delimcount = 0;
while (i >= 0 && delimcount < 2)
{
if (path[i] == '/')
{
delimcount++;
if (delimcount > 1)
path[i + 1]= '\0';
}
i--;
}
}
else if (!strcmp(dir, "."))
return;
else
{
strlcat(path, dir, sizeof(path));
strlcat(path, "/", sizeof(path));
}
}
int main(void)
{
const char *s = NULL;
char path[256];
int handle;
struct controller_data_s pad;
int pos = 0, ppos = -1;
xenos_init(VIDEO_MODE_AUTO);
console_init();
xenon_make_it_faster(XENON_SPEED_FULL);
usb_init();
usb_do_poll();
xenon_ata_init();
dvd_init();
handle = -1;
handle = bdev_enum(handle, &s);
if (handle < 0)
return 0;
strlcpy(path, s, sizeof(path));
strlcat(path, ":/", sizeof(path));
load_dir(path);
for (;;)
{
usb_do_poll();
get_controller_data(&pad, 0);
if (pad.s1_y > STICK_THRESHOLD || pad.up)
pos--;
if (pad.s1_y < -STICK_THRESHOLD || pad.down)
pos++;
if (entrycount && (pos < 0 || pos >= entrycount))
{
pos = ppos;
continue;
}
if (pad.logo)
return 0;
if (pad.a)
{
if (entries[pos].d_type & DT_DIR)
{
append_dir_to_path(path,entries[pos].d_name);
load_dir(path);
ppos = -1;
pos = 0;
}
else
{
char fn[256];
strlcpy(fn, path, sizeof(fn));
strlcat(fn, entries[pos].d_name, sizeof(fn));
printf("%s\n", fn);
start_rarch(fn);
}
}
if (pad.select)
{
append_dir_to_path(path, "..");
load_dir(path);
ppos = -1;
pos = 0;
}
if (pad.b)
{
do
{
handle = bdev_enum(handle, &s);
} while (handle < 0);
strlcpy(path, s, sizeof(path));
strlcat(path, ":/", sizeof(path));
load_dir(path);
ppos = -1;
pos = 0;
}
if (ppos == pos)
continue;
memset(&pad, 0, sizeof(pad));
console_set_colors(BG_COL, FG_COL);
console_clrscr();
printf("A: select, B: change disk, Back: parent dir, Logo: reload Xell\n\n%s\n\n", path);
int start = MAX(0, pos - MAX_DISPLAYED_ENTRIES / 2);
int count = MIN(MAX_DISPLAYED_ENTRIES, entrycount - start);
for (int i = start; i < start + count; i++)
{
struct dirent *de = &entries[i];
if (i == pos)
console_set_colors(FG_COL, BG_COL);
else
console_set_colors(BG_COL, FG_COL);
if (de->d_type & DT_DIR)
console_putch('[');
s = de->d_name;
while (*s)
console_putch(*s++);
if (de->d_type & DT_DIR)
console_putch(']');
console_putch('\r');
console_putch('\n');
}
ppos = pos;
do
{
usb_do_poll();
get_controller_data(&pad, 0);
} while (pad.a || pad.b || pad.select || pad.s1_y > STICK_THRESHOLD || pad.s1_y < -STICK_THRESHOLD);
}
return 0;
}
Binary file not shown.
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<RDF Version="XPR2">
<Texture
Name = "FontTexture"
Source = "Arial_12.tga"
Format = "D3DFMT_LIN_A4R4G4B4"
Levels = "1"
/>
<UserData
Name = "FontData"
DataFile = "Arial_12.abc"
/>
</RDF>
Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

+328
View File
@@ -0,0 +1,328 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiScene1</Id>
<Width>776.000061</Width>
<Height>512.000061</Height>
<Position>245.000015,112.000008,0.000000</Position>
<ClassOverride>RetroArchControls</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>121.056023</Width>
<Height>40.000000</Height>
<Position>43.581604,21.159988,0.000000</Position>
<Text>Controls</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiControlsList</Id>
<Width>683.120056</Width>
<Height>360.000000</Height>
<Position>44.880005,88.000015,0.000000</Position>
<NavUp>XuiControlNoSlider</NavUp>
<ItemsText>RetroPad Button B:
RetroPad Button Y:
RetroPad Button Select:
RetroPad Button Start:
RetroPad D-Pad Up:
RetroPad D-Pad Down:
RetroPad D-Pad Left:
RetroPad D-Pad Right:
RetroPad Button A:
RetroPad Button X:
RetroPad Button L1:
RetroPad Button R1:
RetroPad Button L2:
RetroPad Button R2:
RetroPad Button L3:
RetroPad Button R3:
D-Pad Emulation:
Reset all buttons to default
</ItemsText>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton</Id>
<Width>208.632019</Width>
<Height>36.000000</Height>
<Position>536.000000,448.000000,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
<XuiSlider>
<Properties>
<Id>XuiControlNoSlider</Id>
<Width>102.000000</Width>
<Height>60.000000</Height>
<Position>618.000061,15.999985,0.000000</Position>
<NavDown>XuiControlsList</NavDown>
<RangeMax>3</RangeMax>
</Properties>
</XuiSlider>
</XuiScene>
</XuiCanvas>
+211
View File
@@ -0,0 +1,211 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiSceneFileBrowser</Id>
<Width>1000.000061</Width>
<Height>552.000000</Height>
<Position>144.873901,88.000015,0.000000</Position>
<ClassOverride>RetroArchFileBrowser</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>111.840027</Width>
<Height>40.000000</Height>
<Position>28.893612,12.519989,0.000000</Position>
<Text>Filebrowser</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiRomList</Id>
<Width>945.200073</Width>
<Height>376.000031</Height>
<Position>22.799980,88.000000,0.000000</Position>
<NavUp>XuiBtnGameDir</NavUp>
<NavDown>XuiBtnGameDir</NavDown>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton1</Id>
<Width>204.599976</Width>
<Height>36.000000</Height>
<Position>355.115234,484.396851,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
<XuiText>
<Properties>
<Id>XuiTxtRomPath</Id>
<Width>166.559998</Width>
<Height>28.480011</Height>
<Position>96.000000,42.480011,0.000000</Position>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
</Properties>
</XuiText>
<XuiLabel>
<Properties>
<Id>XuiLblPath</Id>
<Width>72.880005</Width>
<Height>28.000000</Height>
<Position>26.000000,43.000000,0.000000</Position>
<Text>PATH:</Text>
</Properties>
</XuiLabel>
<XuiButton>
<Properties>
<Id>XuiBtnGameDir</Id>
<Width>115.640007</Width>
<Height>38.000000</Height>
<Position>31.999985,480.000061,0.000000</Position>
<NavRight>XuiBtnCacheDir</NavRight>
<NavUp>XuiRomList</NavUp>
<NavDown>XuiRomList</NavDown>
<Text>game:</Text>
</Properties>
</XuiButton>
<XuiButton>
<Properties>
<Id>XuiBtnCacheDir</Id>
<Width>119.960014</Width>
<Height>38.000000</Height>
<Position>161.999985,480.000061,0.000000</Position>
<NavLeft>XuiBtnGameDir</NavLeft>
<NavUp>XuiRomList</NavUp>
<NavDown>XuiRomList</NavDown>
<Text>cache:</Text>
</Properties>
</XuiButton>
</XuiScene>
</XuiCanvas>
+197
View File
@@ -0,0 +1,197 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiSceneCoreFileBrowser</Id>
<Width>920.000122</Width>
<Height>552.000000</Height>
<Position>176.000015,88.000015,0.000000</Position>
<ClassOverride>RetroArchCoreBrowser</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>326.640015</Width>
<Height>40.000000</Height>
<Position>28.893612,12.519989,0.000000</Position>
<Text>Filebrowser - Select a libretro core</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiRomList</Id>
<Width>857.200195</Width>
<Height>406.400024</Height>
<Position>22.799980,81.600006,0.000000</Position>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton1</Id>
<Width>219.000000</Width>
<Height>36.000000</Height>
<Position>680.000061,504.000061,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
<XuiText>
<Properties>
<Id>XuiTxtRomPath</Id>
<Width>166.559998</Width>
<Height>28.480011</Height>
<Position>96.000000,42.480011,0.000000</Position>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
</Properties>
</XuiText>
<XuiLabel>
<Properties>
<Id>XuiLblPath</Id>
<Width>72.880005</Width>
<Height>28.000000</Height>
<Position>26.000000,43.000000,0.000000</Position>
<Text>PATH:</Text>
</Properties>
</XuiLabel>
</XuiScene>
</XuiCanvas>
+116
View File
@@ -0,0 +1,116 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiScene1</Id>
<Width>584.528076</Width>
<Height>363.320007</Height>
<Position>347.429474,184.843964,0.000000</Position>
<ClassOverride>RetroArchMain</ClassOverride>
</Properties>
<XuiButton>
<Properties>
<Id>XuiBtnRomBrowser</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.127724,64.215515,0.000000</Position>
<Pivot>245.362122,102.247192,0.000000</Pivot>
<NavUp>XuiBtnQuit</NavUp>
<NavDown>XuiBtnQuickMenu</NavDown>
<Text>ROM Browser</Text>
</Properties>
</XuiButton>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>247.200012</Width>
<Height>40.000000</Height>
<Position>43.581604,21.159988,0.000000</Position>
<Text>RetroArch 360</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiButton>
<Properties>
<Id>XuiBtnSettings</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.127960,196.615982,0.000000</Position>
<NavUp>XuiBtnControls</NavUp>
<NavDown>XuiBtnLibretroCore</NavDown>
<Text>Settings</Text>
</Properties>
</XuiButton>
<XuiButton>
<Properties>
<Id>XuiBtnQuit</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.327736,287.007996,0.000000</Position>
<Pivot>245.162109,-84.153275,0.000000</Pivot>
<NavUp>XuiBtnLibretroCore</NavUp>
<NavDown>XuiBtnRomBrowser</NavDown>
<Text>Quit</Text>
</Properties>
</XuiButton>
<XuiLabel>
<Properties>
<Id>XuiLblCore</Id>
<Width>124.000000</Width>
<Height>28.000000</Height>
<Position>12.544006,324.792023,0.000000</Position>
<Text>Libretro core:</Text>
</Properties>
</XuiLabel>
<XuiText>
<Properties>
<Id>XuiTxtCoreText</Id>
<Width>388.629150</Width>
<Height>34.000000</Height>
<Position>134.944031,324.391998,0.000000</Position>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
</Properties>
</XuiText>
<XuiButton>
<Properties>
<Id>XuiBtnQuickMenu</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.130001,106.655991,0.000000</Position>
<NavUp>XuiBtnRomBrowser</NavUp>
<NavDown>XuiBtnControls</NavDown>
<Text>Quick Menu</Text>
</Properties>
</XuiButton>
<XuiButton>
<Properties>
<Id>XuiBtnControls</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.130001,151.655991,0.000000</Position>
<NavUp>XuiBtnQuickMenu</NavUp>
<NavDown>XuiBtnSettings</NavDown>
<Text>Controls</Text>
</Properties>
</XuiButton>
<XuiButton>
<Properties>
<Id>XuiBtnLibretroCore</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.127960,241.615982,0.000000</Position>
<NavUp>XuiBtnSettings</NavUp>
<NavDown>XuiBtnQuit</NavDown>
<Text>Change libretro core</Text>
</Properties>
</XuiButton>
</XuiScene>
</XuiCanvas>
+166
View File
@@ -0,0 +1,166 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiScene1</Id>
<Width>824.000061</Width>
<Height>496.000061</Height>
<Position>225.521820,110.438545,0.000000</Position>
<ClassOverride>RetroArchQuickMenu</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>121.056023</Width>
<Height>40.000000</Height>
<Position>43.581604,21.159988,0.000000</Position>
<Text>Quick Menu</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiQuickMenuList</Id>
<Width>723.120056</Width>
<Height>367.040009</Height>
<Position>44.880005,64.959991,0.000000</Position>
<ItemsText>Load State
Save State
Aspect Ratio:
Overscan:
Orientation:
Resize Mode
Frame Advance
Screenshot Mode
Reset
Return to Game
Return to Dashboard
</ItemsText>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton</Id>
<Width>208.632019</Width>
<Height>36.000000</Height>
<Position>568.000061,432.000000,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
</XuiScene>
</XuiCanvas>
+251
View File
@@ -0,0 +1,251 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiScene1</Id>
<Width>776.000061</Width>
<Height>512.000061</Height>
<Position>238.000031,112.000023,0.000000</Position>
<ClassOverride>RetroArchSettings</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>121.056023</Width>
<Height>40.000000</Height>
<Position>43.581604,21.159988,0.000000</Position>
<Text>Settings</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiSettingsList</Id>
<Width>683.120056</Width>
<Height>383.040009</Height>
<Position>44.880005,64.959991,0.000000</Position>
<ItemsText>Rewind:
Info messages:
Menus:
Gamma Correction:
Color Format:
Shader #1:
Shader #2:
Hardware filtering shader #1:
Hardware filtering shader #2:
Custom Scaling/Dual Shaders:
Custom Scaling Factor:
Extract ZIP:
</ItemsText>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton</Id>
<Width>208.632019</Width>
<Height>36.000000</Height>
<Position>536.000000,448.000000,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
</XuiScene>
</XuiCanvas>
+233
View File
@@ -0,0 +1,233 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiSceneCoreFileBrowser</Id>
<Width>920.000122</Width>
<Height>552.000000</Height>
<Position>176.000015,88.000015,0.000000</Position>
<ClassOverride>RetroArchShaderBrowser</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>326.640015</Width>
<Height>40.000000</Height>
<Position>28.893612,12.519989,0.000000</Position>
<Text>Shader selection - Select a shader</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiRomList</Id>
<Width>857.200195</Width>
<Height>406.400024</Height>
<Position>22.799980,81.600006,0.000000</Position>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton1</Id>
<Width>219.000000</Width>
<Height>36.000000</Height>
<Position>680.000061,504.000061,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
<XuiText>
<Properties>
<Id>XuiTxtRomPath</Id>
<Width>512.000122</Width>
<Height>28.480011</Height>
<Position>96.000000,42.480011,0.000000</Position>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
</Properties>
</XuiText>
<XuiLabel>
<Properties>
<Id>XuiLblPath</Id>
<Width>72.880005</Width>
<Height>28.000000</Height>
<Position>26.000000,43.000000,0.000000</Position>
<Text>PATH:</Text>
</Properties>
</XuiLabel>
</XuiScene>
</XuiCanvas>
Binary file not shown.
File diff suppressed because it is too large. Load diff
+316
View File
@@ -0,0 +1,316 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiScene1</Id>
<Width>584.528076</Width>
<Height>363.320007</Height>
<Position>32.029999,76.040001,0.000000</Position>
<ClassOverride>RetroArchControls</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>121.056023</Width>
<Height>40.000000</Height>
<Position>43.581604,21.159988,0.000000</Position>
<Text>Controls</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiControlsList</Id>
<Width>492.000000</Width>
<Height>209.679993</Height>
<Position>44.880005,88.000000,0.000000</Position>
<NavUp>XuiControlNoSlider</NavUp>
<ItemsText>RetroPad Button B:
RetroPad Button Y:
RetroPad Button Select:
RetroPad Button Start:
RetroPad D-Pad Up:
RetroPad D-Pad Down:
RetroPad D-Pad Left:
RetroPad D-Pad Right:
RetroPad Button A:
RetroPad Button X:
RetroPad Button L1:
RetroPad Button R1:
RetroPad Button L2:
RetroPad Button R2:
RetroPad Button L3:
RetroPad Button R3:
D-Pad Emulation:
Reset all buttons to defaults
</ItemsText>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton</Id>
<Width>208.632019</Width>
<Height>36.000000</Height>
<Position>356.670013,309.000000,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
<XuiSlider>
<Properties>
<Id>XuiControlNoSlider</Id>
<Width>94.000061</Width>
<Height>64.000000</Height>
<Position>440.000000,16.000000,0.000000</Position>
<NavDown>XuiControlsList</NavDown>
<RangeMax>3</RangeMax>
</Properties>
</XuiSlider>
</XuiScene>
</XuiCanvas>
+199
View File
@@ -0,0 +1,199 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiSceneFileBrowser</Id>
<Width>575.888062</Width>
<Height>336.017609</Height>
<Position>32.029999,76.040001,0.000000</Position>
<ClassOverride>RetroArchFileBrowser</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>111.840027</Width>
<Height>40.000000</Height>
<Position>28.893612,12.519989,0.000000</Position>
<Text>Filebrowser</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiRomList</Id>
<Width>536.582458</Width>
<Height>170.800018</Height>
<Position>22.799980,81.600006,0.000000</Position>
<NavUp>XuiBtnGameDir</NavUp>
<NavDown>XuiBtnGameDir</NavDown>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton1</Id>
<Width>204.599976</Width>
<Height>36.000000</Height>
<Position>353.115234,281.396820,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
<XuiText>
<Properties>
<Id>XuiTxtRomPath</Id>
<Width>166.559998</Width>
<Height>28.480011</Height>
<Position>96.000000,42.480011,0.000000</Position>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
</Properties>
</XuiText>
<XuiLabel>
<Properties>
<Id>XuiLblPath</Id>
<Width>72.880005</Width>
<Height>28.000000</Height>
<Position>26.000000,43.000000,0.000000</Position>
<Text>PATH:</Text>
</Properties>
</XuiLabel>
<XuiButton>
<Properties>
<Id>XuiBtnGameDir</Id>
<Width>115.640007</Width>
<Height>38.000000</Height>
<Position>30.000000,277.000000,0.000000</Position>
<NavRight>XuiBtnCacheDir</NavRight>
<NavUp>XuiRomList</NavUp>
<NavDown>XuiRomList</NavDown>
<Text>game:</Text>
</Properties>
</XuiButton>
<XuiButton>
<Properties>
<Id>XuiBtnCacheDir</Id>
<Width>119.960014</Width>
<Height>38.000000</Height>
<Position>160.000000,277.000000,0.000000</Position>
<NavLeft>XuiBtnGameDir</NavLeft>
<NavUp>XuiRomList</NavUp>
<NavDown>XuiRomList</NavDown>
<Text>cache:</Text>
</Properties>
</XuiButton>
</XuiScene>
</XuiCanvas>
+185
View File
@@ -0,0 +1,185 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiSceneCoreFileBrowser</Id>
<Width>575.888062</Width>
<Height>336.017609</Height>
<Position>32.029999,76.040001,0.000000</Position>
<ClassOverride>RetroArchCoreBrowser</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>326.640015</Width>
<Height>40.000000</Height>
<Position>28.893612,12.519989,0.000000</Position>
<Text>Filebrowser - Select a libretro core</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiRomList</Id>
<Width>536.582458</Width>
<Height>170.800018</Height>
<Position>22.799980,81.600006,0.000000</Position>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton1</Id>
<Width>219.000000</Width>
<Height>36.000000</Height>
<Position>338.715210,281.396820,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
<XuiText>
<Properties>
<Id>XuiTxtRomPath</Id>
<Width>166.559998</Width>
<Height>28.480011</Height>
<Position>96.000000,42.480011,0.000000</Position>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
</Properties>
</XuiText>
<XuiLabel>
<Properties>
<Id>XuiLblPath</Id>
<Width>72.880005</Width>
<Height>28.000000</Height>
<Position>26.000000,43.000000,0.000000</Position>
<Text>PATH:</Text>
</Properties>
</XuiLabel>
</XuiScene>
</XuiCanvas>
+116
View File
@@ -0,0 +1,116 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiScene1</Id>
<Width>584.528076</Width>
<Height>363.320007</Height>
<Position>32.029472,76.043968,0.000000</Position>
<ClassOverride>RetroArchMain</ClassOverride>
</Properties>
<XuiButton>
<Properties>
<Id>XuiBtnRomBrowser</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.127724,64.215515,0.000000</Position>
<Pivot>245.362122,102.247192,0.000000</Pivot>
<NavUp>XuiBtnQuit</NavUp>
<NavDown>XuiBtnQuickMenu</NavDown>
<Text>ROM Browser</Text>
</Properties>
</XuiButton>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>247.200012</Width>
<Height>40.000000</Height>
<Position>43.581604,21.159988,0.000000</Position>
<Text>RetroArch 360</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiButton>
<Properties>
<Id>XuiBtnSettings</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.127960,196.615982,0.000000</Position>
<NavUp>XuiBtnControls</NavUp>
<NavDown>XuiBtnLibretroCore</NavDown>
<Text>Settings</Text>
</Properties>
</XuiButton>
<XuiButton>
<Properties>
<Id>XuiBtnQuit</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.327736,287.007996,0.000000</Position>
<Pivot>245.162109,-84.153275,0.000000</Pivot>
<NavUp>XuiBtnLibretroCore</NavUp>
<NavDown>XuiBtnRomBrowser</NavDown>
<Text>Quit</Text>
</Properties>
</XuiButton>
<XuiLabel>
<Properties>
<Id>XuiLblCore</Id>
<Width>124.000000</Width>
<Height>28.000000</Height>
<Position>12.544006,324.792023,0.000000</Position>
<Text>Libretro core:</Text>
</Properties>
</XuiLabel>
<XuiText>
<Properties>
<Id>XuiTxtCoreText</Id>
<Width>391.399933</Width>
<Height>34.000000</Height>
<Position>134.944031,324.391998,0.000000</Position>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
</Properties>
</XuiText>
<XuiButton>
<Properties>
<Id>XuiBtnQuickMenu</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.130001,106.655991,0.000000</Position>
<NavUp>XuiBtnRomBrowser</NavUp>
<NavDown>XuiBtnControls</NavDown>
<Text>Quick Menu</Text>
</Properties>
</XuiButton>
<XuiButton>
<Properties>
<Id>XuiBtnControls</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.130001,151.655991,0.000000</Position>
<NavUp>XuiBtnQuickMenu</NavUp>
<NavDown>XuiBtnSettings</NavDown>
<Text>Controls</Text>
</Properties>
</XuiButton>
<XuiButton>
<Properties>
<Id>XuiBtnLibretroCore</Id>
<Width>488.312012</Width>
<Height>30.799988</Height>
<Position>38.127960,241.615982,0.000000</Position>
<NavUp>XuiBtnSettings</NavUp>
<NavDown>XuiBtnQuit</NavDown>
<Text>Change libretro core</Text>
</Properties>
</XuiButton>
</XuiScene>
</XuiCanvas>
+142
View File
@@ -0,0 +1,142 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiScene1</Id>
<Width>584.528076</Width>
<Height>363.320007</Height>
<Position>32.029999,76.040001,0.000000</Position>
<ClassOverride>RetroArchQuickMenu</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>121.056023</Width>
<Height>40.000000</Height>
<Position>43.581604,21.159988,0.000000</Position>
<Text>Quick Menu</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiQuickMenuList</Id>
<Width>492.000000</Width>
<Height>232.720001</Height>
<Position>44.880005,64.959991,0.000000</Position>
<ItemsText>Load State
Save State
Aspect Ratio:
Overscan:
Orientation:
Resize Mode
Frame Advance
Screenshot Mode
Reset
Return to Game
Return to Dashboard
</ItemsText>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton</Id>
<Width>208.632019</Width>
<Height>36.000000</Height>
<Position>356.670013,309.000000,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
</XuiScene>
</XuiCanvas>
+227
View File
@@ -0,0 +1,227 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiScene1</Id>
<Width>584.528076</Width>
<Height>363.320007</Height>
<Position>32.029999,76.040001,0.000000</Position>
<ClassOverride>RetroArchSettings</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>121.056023</Width>
<Height>40.000000</Height>
<Position>43.581604,21.159988,0.000000</Position>
<Text>Settings</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiSettingsList</Id>
<Width>492.000000</Width>
<Height>232.720001</Height>
<Position>44.880005,64.959991,0.000000</Position>
<ItemsText>Rewind:
Info messages:
Menus:
Color Format:
Gamma Correction:
Shader #1:
Shader #2:
Hardware filtering shader #1:
Hardware filtering shader #2:
Cutom Scaling/Dual Shaders:
Cutom Scaling Factor:
Extract ZIP:
</ItemsText>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton</Id>
<Width>208.632019</Width>
<Height>36.000000</Height>
<Position>356.670013,309.000000,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
</XuiScene>
</XuiCanvas>
+221
View File
@@ -0,0 +1,221 @@
<XuiCanvas version="000c">
<Properties>
<Width>1280.000000</Width>
<Height>720.000000</Height>
</Properties>
<XuiScene>
<Properties>
<Id>XuiSceneCoreFileBrowser</Id>
<Width>575.888062</Width>
<Height>336.017609</Height>
<Position>32.029999,76.040001,0.000000</Position>
<ClassOverride>RetroArchShaderBrowser</ClassOverride>
</Properties>
<XuiText>
<Properties>
<Id>XuiTxtTitle</Id>
<Width>326.640015</Width>
<Height>40.000000</Height>
<Position>28.893612,12.519989,0.000000</Position>
<Text>Shader selection - Select a shader</Text>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<Font>Arial Unicode MS</Font>
<TextStyle>21</TextStyle>
</Properties>
</XuiText>
<XuiCommonList>
<Properties>
<Id>XuiRomList</Id>
<Width>536.582458</Width>
<Height>170.800018</Height>
<Position>22.799980,81.600006,0.000000</Position>
</Properties>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
<XuiListItem>
<Properties>
<Id>control_ListItem</Id>
<Width>226.000000</Width>
<Height>45.000000</Height>
<Position>7.000000,22.000000,0.000000</Position>
<Anchor>5</Anchor>
<Show>false</Show>
<Visual>XuiButton</Visual>
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
</Properties>
</XuiListItem>
</XuiCommonList>
<XuiBackButton>
<Properties>
<Id>XuiBackButton1</Id>
<Width>219.000000</Width>
<Height>36.000000</Height>
<Position>338.715210,281.396820,0.000000</Position>
<Text>Go back to menu</Text>
<PressKey>22593</PressKey>
</Properties>
</XuiBackButton>
<XuiText>
<Properties>
<Id>XuiTxtRomPath</Id>
<Width>406.004150</Width>
<Height>28.480011</Height>
<Position>96.000000,42.480011,0.000000</Position>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
</Properties>
</XuiText>
<XuiLabel>
<Properties>
<Id>XuiLblPath</Id>
<Width>72.880005</Width>
<Height>28.000000</Height>
<Position>26.000000,43.000000,0.000000</Position>
<Text>PATH:</Text>
</Properties>
</XuiLabel>
</XuiScene>
</XuiCanvas>
+40
View File
@@ -0,0 +1,40 @@
/*
VERTEX_SHADER
*/
void main_vertex
(
float2 position : POSITION,
float2 texCoord : TEXCOORD0,
uniform float4x4 modelViewProj,
out float4 oPosition : POSITION,
out float2 otexCoord : TEXCOORD
)
{
oPosition = mul(modelViewProj, float4(position, 0.0, 1.0));
otexCoord = texCoord;
}
/*
FRAGMENT SHADER
*/
struct output
{
float4 color : COLOR;
};
struct input
{
float2 video_size;
float2 texture_size;
float2 output_size;
};
output main_fragment(float2 texCoord : TEXCOORD0, uniform sampler2D decal : TEXUNIT0, uniform input IN)
{
output OUT;
OUT.color = tex2D(decal, texCoord);
return OUT;
}
+767
View File
@@ -0,0 +1,767 @@
#if !defined( _XOBJBASE_H_ )
#define _XOBJBASE_H_
#include <sal.h>
#if _MSC_VER > 1000
#pragma once
#endif
#define __RPC_FAR
typedef unsigned char byte;
typedef unsigned char boolean;
typedef double DOUBLE;
#ifdef CONST_VTABLE
#define CONST_VTBL const
#else
#define CONST_VTBL
#endif
/****************************************************************************
* Special things for VC5 Com support
****************************************************************************/
#ifndef DECLSPEC_SELECTANY
#if (_MSC_VER >= 1100)
#define DECLSPEC_SELECTANY __declspec(selectany)
#else
#define DECLSPEC_SELECTANY
#endif
#endif
#ifndef DECLSPEC_NOVTABLE
#define DECLSPEC_NOVTABLE
#endif
#ifndef DECLSPEC_UUID
#define DECLSPEC_UUID(x)
#endif
#define MIDL_INTERFACE(x) struct DECLSPEC_UUID(x) DECLSPEC_NOVTABLE
#if _MSC_VER >= 1100
#define EXTERN_GUID(itf,l1,s1,s2,c1,c2,c3,c4,c5,c6,c7,c8) \
EXTERN_C const IID DECLSPEC_SELECTANY itf = {l1,s1,s2,{c1,c2,c3,c4,c5,c6,c7,c8}}
#else
#define EXTERN_GUID(itf,l1,s1,s2,c1,c2,c3,c4,c5,c6,c7,c8) EXTERN_C const IID itf
#endif
#include <pshpack8.h>
#define WINOLEAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE
#define WINOLEAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE
/****** Interface Declaration ***********************************************/
/*
* These are macros for declaring interfaces. They exist so that
* a single definition of the interface is simulataneously a proper
* declaration of the interface structures (C++ abstract classes)
* for both C and C++.
*
* DECLARE_INTERFACE(iface) is used to declare an interface that does
* not derive from a base interface.
* DECLARE_INTERFACE_(iface, baseiface) is used to declare an interface
* that does derive from a base interface.
*
* By default if the source file has a .c extension the C version of
* the interface declaratations will be expanded; if it has a .cpp
* extension the C++ version will be expanded. if you want to force
* the C version expansion even though the source file has a .cpp
* extension, then define the macro "CINTERFACE".
* eg. cl -DCINTERFACE file.cpp
*
*
* Example C expansion:
*
* typedef struct IClassFactory
* {
* const struct IClassFactoryVtbl FAR* lpVtbl;
* } IClassFactory;
*
* typedef struct IClassFactoryVtbl IClassFactoryVtbl;
*
* struct IClassFactoryVtbl
* {
* HRESULT (STDMETHODCALLTYPE * QueryInterface) (
* IClassFactory FAR* This,
* IID FAR* riid,
* LPVOID FAR* ppvObj) ;
* ULONG (STDMETHODCALLTYPE * AddRef) (IClassFactory FAR* This) ;
* ULONG (STDMETHODCALLTYPE * Release) (IClassFactory FAR* This) ;
* HRESULT (STDMETHODCALLTYPE * CreateInstance) (
* IClassFactory FAR* This,
* LPUNKNOWN pUnkOuter,
* IID FAR* riid,
* LPVOID FAR* ppvObject);
* HRESULT (STDMETHODCALLTYPE * LockServer) (
* IClassFactory FAR* This,
* BOOL fLock);
* };
*/
#define interface struct
#define STDMETHOD(method) HRESULT (STDMETHODCALLTYPE * method)
#define STDMETHOD_(type,method) type (STDMETHODCALLTYPE * method)
#define STDMETHODV(method) HRESULT (STDMETHODVCALLTYPE * method)
#define STDMETHODV_(type,method) type (STDMETHODVCALLTYPE * method)
#if !defined(BEGIN_INTERFACE)
#define BEGIN_INTERFACE
#define END_INTERFACE
#endif
#define PURE
#define THIS_ INTERFACE FAR* This,
#define THIS INTERFACE FAR* This
#ifdef CONST_VTABLE
#undef CONST_VTBL
#define CONST_VTBL const
#define DECLARE_INTERFACE(iface) typedef interface iface { \
const struct iface##Vtbl FAR* lpVtbl; \
} iface; \
typedef const struct iface##Vtbl iface##Vtbl; \
const struct iface##Vtbl
#else
#undef CONST_VTBL
#define CONST_VTBL
#define DECLARE_INTERFACE(iface) typedef interface iface { \
struct iface##Vtbl FAR* lpVtbl; \
} iface; \
typedef struct iface##Vtbl iface##Vtbl; \
struct iface##Vtbl
#endif
#define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
/****** Additional basic types **********************************************/
#ifndef FARSTRUCT
#define FARSTRUCT
#endif // FARSTRUCT
#ifndef HUGEP
#if defined(_WIN32) || defined(_MPPC_)
#define HUGEP
#else
#define HUGEP __huge
#endif // WIN32
#endif // HUGEP
#include <stdlib.h>
#define LISet32(li, v) ((li).HighPart = (v) < 0 ? -1 : 0, (li).LowPart = (v))
#define ULISet32(li, v) ((li).HighPart = 0, (li).LowPart = (v))
#if defined(_WIN32) && !defined(OLE2ANSI)
typedef WCHAR OLECHAR;
typedef /* [string] */ OLECHAR __RPC_FAR *LPOLESTR;
typedef /* [string] */ const OLECHAR __RPC_FAR *LPCOLESTR;
#define OLESTR(str) L##str
#else
typedef char OLECHAR;
typedef LPSTR LPOLESTR;
typedef LPCSTR LPCOLESTR;
#define OLESTR(str) str
#endif
/* Forward Declarations */
#ifndef __IUnknown_FWD_DEFINED__
#define __IUnknown_FWD_DEFINED__
typedef interface IUnknown IUnknown;
#endif /* __IUnknown_FWD_DEFINED__ */
#ifndef __IUnknown_INTERFACE_DEFINED__
#define __IUnknown_INTERFACE_DEFINED__
/* interface IUnknown */
/* [unique][uuid][object][local] */
typedef /* [unique] */ IUnknown __RPC_FAR *LPUNKNOWN;
typedef /* [unique] */ IUnknown __RPC_FAR *PUNKNOWN;
//////////////////////////////////////////////////////////////////
// IID_IUnknown and all other system IIDs are provided in UUID.LIB
// Link that library in with your proxies, clients and servers
//////////////////////////////////////////////////////////////////
EXTERN_C const IID IID_IUnknown;
typedef struct IUnknownVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
IUnknown __RPC_FAR * This,
/* [in] */ __in REFIID riid,
/* [iid_is][out] */ __deref_out void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
IUnknown __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
IUnknown __RPC_FAR * This);
END_INTERFACE
} IUnknownVtbl;
interface IUnknown
{
CONST_VTBL struct IUnknownVtbl __RPC_FAR *lpVtbl;
};
#define IUnknown_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IUnknown_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IUnknown_Release(This) \
(This)->lpVtbl -> Release(This)
/* interface __MIDL_itf_unknwn_0005 */
/* [local] */
#endif // VC6 hack
#ifndef __ISequentialStream_FWD_DEFINED__
#define __ISequentialStream_FWD_DEFINED__
typedef interface ISequentialStream ISequentialStream;
#endif /* __ISequentialStream_FWD_DEFINED__ */
#ifndef __ISequentialStream_INTERFACE_DEFINED__
#define __ISequentialStream_INTERFACE_DEFINED__
/* interface ISequentialStream */
/* [unique][uuid][object] */
EXTERN_C const IID IID_ISequentialStream;
typedef struct ISequentialStreamVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
ISequentialStream __RPC_FAR * This,
/* [in] */ __in REFIID riid,
/* [iid_is][out] */ __deref_out void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
ISequentialStream __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
ISequentialStream __RPC_FAR * This);
/* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Read )(
ISequentialStream __RPC_FAR * This,
/* [length_is][size_is][out] */ __out_bcount_part_opt(cb, *pcbRead) void __RPC_FAR *pv,
/* [in] */ __in ULONG cb,
/* [out] */ __out_opt ULONG __RPC_FAR *pcbRead);
/* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Write )(
ISequentialStream __RPC_FAR * This,
/* [size_is][in] */ __in_bcount_opt(cb) const void __RPC_FAR *pv,
/* [in] */ __in ULONG cb,
/* [out] */ __out_opt ULONG __RPC_FAR *pcbWritten);
END_INTERFACE
} ISequentialStreamVtbl;
interface ISequentialStream
{
CONST_VTBL struct ISequentialStreamVtbl __RPC_FAR *lpVtbl;
};
#define ISequentialStream_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define ISequentialStream_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define ISequentialStream_Release(This) \
(This)->lpVtbl -> Release(This)
#define ISequentialStream_Read(This,pv,cb,pcbRead) \
(This)->lpVtbl -> Read(This,pv,cb,pcbRead)
#define ISequentialStream_Write(This,pv,cb,pcbWritten) \
(This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
#endif /* __ISequentialStream_INTERFACE_DEFINED__ */
#ifndef __IStream_FWD_DEFINED__
#define __IStream_FWD_DEFINED__
typedef interface IStream IStream;
#endif /* __IStream_FWD_DEFINED__ */
#ifndef __IStream_INTERFACE_DEFINED__
#define __IStream_INTERFACE_DEFINED__
/* interface IStream */
/* [unique][uuid][object] */
typedef /* [unique] */ IStream __RPC_FAR *LPSTREAM;
typedef struct tagSTATSTG
{
LPOLESTR pwcsName;
DWORD type;
ULARGE_INTEGER cbSize;
FILETIME mtime;
FILETIME ctime;
FILETIME atime;
DWORD grfMode;
DWORD grfLocksSupported;
CLSID clsid;
DWORD grfStateBits;
DWORD reserved;
} STATSTG;
typedef
enum tagSTGTY
{ STGTY_STORAGE = 1,
STGTY_STREAM = 2,
STGTY_LOCKBYTES = 3,
STGTY_PROPERTY = 4
} STGTY;
typedef
enum tagSTREAM_SEEK
{ STREAM_SEEK_SET = 0,
STREAM_SEEK_CUR = 1,
STREAM_SEEK_END = 2
} STREAM_SEEK;
typedef
enum tagLOCKTYPE
{ LOCK_WRITE = 1,
LOCK_EXCLUSIVE = 2,
LOCK_ONLYONCE = 4
} LOCKTYPE;
EXTERN_C const IID IID_IStream;
typedef struct IStreamVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
IStream __RPC_FAR * This,
/* [in] */ __in REFIID riid,
/* [iid_is][out] */ __deref_out void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
IStream __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
IStream __RPC_FAR * This);
/* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Read )(
IStream __RPC_FAR * This,
/* [length_is][size_is][out] */ __out_bcount_part_opt(cb, *pcbRead) void __RPC_FAR *pv,
/* [in] */ __in ULONG cb,
/* [out] */ __out_opt ULONG __RPC_FAR *pcbRead);
/* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Write )(
IStream __RPC_FAR * This,
/* [size_is][in] */ __in_bcount_opt(cb) const void __RPC_FAR *pv,
/* [in] */ __in ULONG cb,
/* [out] */ __out_opt ULONG __RPC_FAR *pcbWritten);
/* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Seek )(
IStream __RPC_FAR * This,
/* [in] */ __in LARGE_INTEGER dlibMove,
/* [in] */ __in DWORD dwOrigin,
/* [out] */ __out_opt ULARGE_INTEGER __RPC_FAR *plibNewPosition);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SetSize )(
IStream __RPC_FAR * This,
/* [in] */ __in ULARGE_INTEGER libNewSize);
/* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *CopyTo )(
IStream __RPC_FAR * This,
/* [unique][in] */ __in IStream __RPC_FAR *pstm,
/* [in] */ __in ULARGE_INTEGER cb,
/* [out] */ __out_opt ULARGE_INTEGER __RPC_FAR *pcbRead,
/* [out] */ __out_opt ULARGE_INTEGER __RPC_FAR *pcbWritten);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Commit )(
IStream __RPC_FAR * This,
/* [in] */ __in DWORD grfCommitFlags);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Revert )(
IStream __RPC_FAR * This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *LockRegion )(
IStream __RPC_FAR * This,
/* [in] */ __in ULARGE_INTEGER libOffset,
/* [in] */ __in ULARGE_INTEGER cb,
/* [in] */ __in DWORD dwLockType);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *UnlockRegion )(
IStream __RPC_FAR * This,
/* [in] */ __in ULARGE_INTEGER libOffset,
/* [in] */ __in ULARGE_INTEGER cb,
/* [in] */ __in DWORD dwLockType);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Stat )(
IStream __RPC_FAR * This,
/* [out] */ __out STATSTG __RPC_FAR *pstatstg,
/* [in] */ __in DWORD grfStatFlag);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Clone )(
IStream __RPC_FAR * This,
/* [out] */ __deref_out_opt IStream __RPC_FAR *__RPC_FAR *ppstm);
END_INTERFACE
} IStreamVtbl;
interface IStream
{
CONST_VTBL struct IStreamVtbl __RPC_FAR *lpVtbl;
};
#define IStream_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IStream_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IStream_Release(This) \
(This)->lpVtbl -> Release(This)
#define IStream_Read(This,pv,cb,pcbRead) \
(This)->lpVtbl -> Read(This,pv,cb,pcbRead)
#define IStream_Write(This,pv,cb,pcbWritten) \
(This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
#define IStream_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
(This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
#define IStream_SetSize(This,libNewSize) \
(This)->lpVtbl -> SetSize(This,libNewSize)
#define IStream_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
(This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
#define IStream_Commit(This,grfCommitFlags) \
(This)->lpVtbl -> Commit(This,grfCommitFlags)
#define IStream_Revert(This) \
(This)->lpVtbl -> Revert(This)
#define IStream_LockRegion(This,libOffset,cb,dwLockType) \
(This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
#define IStream_UnlockRegion(This,libOffset,cb,dwLockType) \
(This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
#define IStream_Stat(This,pstatstg,grfStatFlag) \
(This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
#define IStream_Clone(This,ppstm) \
(This)->lpVtbl -> Clone(This,ppstm)
#endif /* __IStream_INTERFACE_DEFINED__ */
#ifndef __IClassFactory_FWD_DEFINED__
#define __IClassFactory_FWD_DEFINED__
typedef interface IClassFactory IClassFactory;
#endif /* __IClassFactory_FWD_DEFINED__ */
#ifndef __IClassFactory_INTERFACE_DEFINED__
#define __IClassFactory_INTERFACE_DEFINED__
/* interface IClassFactory */
/* [unique][uuid][object] */
typedef /* [unique] */ IClassFactory __RPC_FAR *LPCLASSFACTORY;
EXTERN_C const IID IID_IClassFactory;
typedef struct IClassFactoryVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
IClassFactory __RPC_FAR * This,
/* [in] */ __in REFIID riid,
/* [iid_is][out] */ __deref_out void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
IClassFactory __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
IClassFactory __RPC_FAR * This);
/* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *CreateInstance )(
IClassFactory __RPC_FAR * This,
/* [unique][in] */ __in_opt IUnknown __RPC_FAR *pUnkOuter,
/* [in] */ __in REFIID riid,
/* [iid_is][out] */ __deref_out void __RPC_FAR *__RPC_FAR *ppvObject);
/* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *LockServer )(
IClassFactory __RPC_FAR * This,
/* [in] */ __in BOOL fLock);
END_INTERFACE
} IClassFactoryVtbl;
interface IClassFactory
{
CONST_VTBL struct IClassFactoryVtbl __RPC_FAR *lpVtbl;
};
#define IClassFactory_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IClassFactory_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IClassFactory_Release(This) \
(This)->lpVtbl -> Release(This)
#define IClassFactory_CreateInstance(This,pUnkOuter,riid,ppvObject) \
(This)->lpVtbl -> CreateInstance(This,pUnkOuter,riid,ppvObject)
#define IClassFactory_LockServer(This,fLock) \
(This)->lpVtbl -> LockServer(This,fLock)
#endif /* __IClassFactory_INTERFACE_DEFINED__ */
#ifndef __IPersist_FWD_DEFINED__
#define __IPersist_FWD_DEFINED__
typedef interface IPersist IPersist;
#endif /* __IPersist_FWD_DEFINED__ */
#ifndef __IPersist_INTERFACE_DEFINED__
#define __IPersist_INTERFACE_DEFINED__
/* interface IPersist */
/* [uuid][object] */
typedef /* [unique] */ IPersist __RPC_FAR *LPPERSIST;
EXTERN_C const IID IID_IPersist;
typedef struct IPersistVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
IPersist __RPC_FAR * This,
/* [in] */ __in REFIID riid,
/* [iid_is][out] */ __deref_out void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
IPersist __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
IPersist __RPC_FAR * This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetClassID )(
IPersist __RPC_FAR * This,
/* [out] */ __out CLSID __RPC_FAR *pClassID);
END_INTERFACE
} IPersistVtbl;
interface IPersist
{
CONST_VTBL struct IPersistVtbl __RPC_FAR *lpVtbl;
};
#define IPersist_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IPersist_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IPersist_Release(This) \
(This)->lpVtbl -> Release(This)
#define IPersist_GetClassID(This,pClassID) \
(This)->lpVtbl -> GetClassID(This,pClassID)
#endif /* __IPersist_INTERFACE_DEFINED__ */
#ifndef __IPersistStream_FWD_DEFINED__
#define __IPersistStream_FWD_DEFINED__
typedef interface IPersistStream IPersistStream;
#endif /* __IPersistStream_FWD_DEFINED__ */
#ifndef __IPersistStream_INTERFACE_DEFINED__
#define __IPersistStream_INTERFACE_DEFINED__
/* interface IPersistStream */
/* [unique][uuid][object] */
typedef /* [unique] */ IPersistStream __RPC_FAR *LPPERSISTSTREAM;
EXTERN_C const IID IID_IPersistStream;
typedef struct IPersistStreamVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
IPersistStream __RPC_FAR * This,
/* [in] */ __in REFIID riid,
/* [iid_is][out] */ __deref_out void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
IPersistStream __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
IPersistStream __RPC_FAR * This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetClassID )(
IPersistStream __RPC_FAR * This,
/* [out] */ __out CLSID __RPC_FAR *pClassID);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *IsDirty )(
IPersistStream __RPC_FAR * This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Load )(
IPersistStream __RPC_FAR * This,
/* [unique][in] */ __in_opt IStream __RPC_FAR *pStm);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Save )(
IPersistStream __RPC_FAR * This,
/* [unique][in] */ __in_opt IStream __RPC_FAR *pStm,
/* [in] */ __in BOOL fClearDirty);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSizeMax )(
IPersistStream __RPC_FAR * This,
/* [out] */ __out ULARGE_INTEGER __RPC_FAR *pcbSize);
END_INTERFACE
} IPersistStreamVtbl;
interface IPersistStream
{
CONST_VTBL struct IPersistStreamVtbl __RPC_FAR *lpVtbl;
};
#define IPersistStream_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IPersistStream_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IPersistStream_Release(This) \
(This)->lpVtbl -> Release(This)
#define IPersistStream_GetClassID(This,pClassID) \
(This)->lpVtbl -> GetClassID(This,pClassID)
#define IPersistStream_IsDirty(This) \
(This)->lpVtbl -> IsDirty(This)
#define IPersistStream_Load(This,pStm) \
(This)->lpVtbl -> Load(This,pStm)
#define IPersistStream_Save(This,pStm,fClearDirty) \
(This)->lpVtbl -> Save(This,pStm,fClearDirty)
#define IPersistStream_GetSizeMax(This,pcbSize) \
(This)->lpVtbl -> GetSizeMax(This,pcbSize)
#endif /* __IPersistStream_INTERFACE_DEFINED__ */
#include <guiddef.h>
#ifndef INITGUID
#include <cguid.h>
#endif
#ifndef RC_INVOKED
#include <poppack.h>
#endif // RC_INVOKED
#endif // _XOBJBASE_H_
+506
View File
@@ -0,0 +1,506 @@
/*
xaudio.h (2010-08-14) / (2012-12-04)
authors: OV2, Themaister
*/
// Kinda stripped down. Only contains the bare essentials used in RetroArch.
#ifndef XAUDIO2_XDK360_H
#define XAUDIO2_XDK360_H
#include <comdecl.h> // For DEFINE_CLSID and DEFINE_IID
DEFINE_CLSID(XAudio2, 3eda9b49, 2085, 498b, 9b, b2, 39, a6, 77, 84, 93, de);
DEFINE_CLSID(XAudio2_Debug, 47199894, 7cc2, 444d, 98, 73, ce, d2, 56, 2c, c6, 0e);
DEFINE_IID(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb);
// Ignore the rest of this header if only the GUID definitions were requested
#ifndef GUID_DEFS_ONLY
#include "objbase.h" // Xbox COM declarations (IUnknown, etc)
#include <audiodefs.h> // Basic audio data types and constants
#include <xma2defs.h> // Data types and constants for XMA2 audio
// All structures defined in this file use tight field packing
#pragma pack(push, 1)
// Numeric boundary values
#define XAUDIO2_MAX_BUFFER_BYTES 0x80000000 // Maximum bytes allowed in a source buffer
#define XAUDIO2_MAX_QUEUED_BUFFERS 64 // Maximum buffers allowed in a voice queue
#define XAUDIO2_MAX_BUFFERS_SYSTEM 2 // Maximum buffers allowed for system threads (Xbox 360 only)
#define XAUDIO2_MAX_AUDIO_CHANNELS 64 // Maximum channels in an audio stream
#define XAUDIO2_MIN_SAMPLE_RATE 1000 // Minimum audio sample rate supported
#define XAUDIO2_MAX_SAMPLE_RATE 200000 // Maximum audio sample rate supported
#define XAUDIO2_MAX_VOLUME_LEVEL 16777216.0f // Maximum acceptable volume level (2^24)
#define XAUDIO2_MIN_FREQ_RATIO (1/1024.0f) // Minimum SetFrequencyRatio argument
#define XAUDIO2_MAX_FREQ_RATIO 1024.0f // Maximum MaxFrequencyRatio argument
#define XAUDIO2_DEFAULT_FREQ_RATIO 2.0f // Default MaxFrequencyRatio argument
#define XAUDIO2_MAX_FILTER_ONEOVERQ 1.5f // Maximum XAUDIO2_FILTER_PARAMETERS.OneOverQ
#define XAUDIO2_MAX_FILTER_FREQUENCY 1.0f // Maximum XAUDIO2_FILTER_PARAMETERS.Frequency
#define XAUDIO2_MAX_LOOP_COUNT 254 // Maximum non-infinite XAUDIO2_BUFFER.LoopCount
#define XAUDIO2_MAX_INSTANCES 8 // Maximum simultaneous XAudio2 objects on Xbox 360
#define XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO 600000
#define XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL 300000
// Numeric values with special meanings
#define XAUDIO2_COMMIT_NOW 0 // Used as an OperationSet argument
#define XAUDIO2_COMMIT_ALL 0 // Used in IXAudio2::CommitChanges
#define XAUDIO2_INVALID_OPSET (UINT32)(-1) // Not allowed for OperationSet arguments
#define XAUDIO2_NO_LOOP_REGION 0 // Used in XAUDIO2_BUFFER.LoopCount
#define XAUDIO2_LOOP_INFINITE 255 // Used in XAUDIO2_BUFFER.LoopCount
#define XAUDIO2_DEFAULT_CHANNELS 0 // Used in CreateMasteringVoice
#define XAUDIO2_DEFAULT_SAMPLERATE 0 // Used in CreateMasteringVoice
// Flags
#define XAUDIO2_DEBUG_ENGINE 0x0001 // Used in XAudio2Create on Windows only
#define XAUDIO2_VOICE_NOPITCH 0x0002 // Used in IXAudio2::CreateSourceVoice
#define XAUDIO2_VOICE_NOSRC 0x0004 // Used in IXAudio2::CreateSourceVoice
#define XAUDIO2_VOICE_USEFILTER 0x0008 // Used in IXAudio2::CreateSource/SubmixVoice
#define XAUDIO2_VOICE_MUSIC 0x0010 // Used in IXAudio2::CreateSourceVoice
#define XAUDIO2_PLAY_TAILS 0x0020 // Used in IXAudio2SourceVoice::Stop
#define XAUDIO2_END_OF_STREAM 0x0040 // Used in XAUDIO2_BUFFER.Flags
#define XAUDIO2_SEND_USEFILTER 0x0080 // Used in XAUDIO2_SEND_DESCRIPTOR.Flags
// Default parameters for the built-in filter
#define XAUDIO2_DEFAULT_FILTER_TYPE LowPassFilter
#define XAUDIO2_DEFAULT_FILTER_FREQUENCY XAUDIO2_MAX_FILTER_FREQUENCY
#define XAUDIO2_DEFAULT_FILTER_ONEOVERQ 1.0f
// Internal XAudio2 constants
#define XAUDIO2_QUANTUM_NUMERATOR 2 // On Xbox 360, XAudio2 processes audio
#define XAUDIO2_QUANTUM_DENOMINATOR 375 // in 5.333ms chunks (= 2/375 seconds)
#define XAUDIO2_QUANTUM_MS (1000.0f * XAUDIO2_QUANTUM_NUMERATOR / XAUDIO2_QUANTUM_DENOMINATOR)
// XAudio2 error codes
#define FACILITY_XAUDIO2 0x896
#define XAUDIO2_E_INVALID_CALL 0x88960001 // An API call or one of its arguments was illegal
#define XAUDIO2_E_XMA_DECODER_ERROR 0x88960002 // The XMA hardware suffered an unrecoverable error
#define XAUDIO2_E_XAPO_CREATION_FAILED 0x88960003 // XAudio2 failed to initialize an XAPO effect
#define XAUDIO2_E_DEVICE_INVALIDATED 0x88960004 // An audio device became unusable (unplugged, etc)
#define FWD_DECLARE(x) typedef interface x x
FWD_DECLARE(IXAudio2);
FWD_DECLARE(IXAudio2Voice);
FWD_DECLARE(IXAudio2SourceVoice);
FWD_DECLARE(IXAudio2SubmixVoice);
FWD_DECLARE(IXAudio2MasteringVoice);
FWD_DECLARE(IXAudio2EngineCallback);
FWD_DECLARE(IXAudio2VoiceCallback);
typedef enum XAUDIO2_XBOX_HWTHREAD_SPECIFIER
{
XboxThread0 = 0x01,
XboxThread1 = 0x02,
XboxThread2 = 0x04,
XboxThread3 = 0x08,
XboxThread4 = 0x10,
XboxThread5 = 0x20,
XAUDIO2_ANY_PROCESSOR = XboxThread4,
XAUDIO2_DEFAULT_PROCESSOR = XAUDIO2_ANY_PROCESSOR
} XAUDIO2_XBOX_HWTHREAD_SPECIFIER, XAUDIO2_PROCESSOR;
typedef enum XAUDIO2_DEVICE_ROLE
{
NotDefaultDevice = 0x0,
DefaultConsoleDevice = 0x1,
DefaultMultimediaDevice = 0x2,
DefaultCommunicationsDevice = 0x4,
DefaultGameDevice = 0x8,
GlobalDefaultDevice = 0xf,
InvalidDeviceRole = ~GlobalDefaultDevice
} XAUDIO2_DEVICE_ROLE;
typedef struct XAUDIO2_DEVICE_DETAILS
{
WCHAR DeviceID[256]; // String identifier for the audio device.
WCHAR DisplayName[256]; // Friendly name suitable for display to a human.
XAUDIO2_DEVICE_ROLE Role; // Roles that the device should be used for.
WAVEFORMATEXTENSIBLE OutputFormat; // The device's native PCM audio output format.
} XAUDIO2_DEVICE_DETAILS;
typedef struct XAUDIO2_VOICE_DETAILS
{
UINT32 CreationFlags; // Flags the voice was created with.
UINT32 InputChannels; // Channels in the voice's input audio.
UINT32 InputSampleRate; // Sample rate of the voice's input audio.
} XAUDIO2_VOICE_DETAILS;
// Used in XAUDIO2_VOICE_SENDS below
typedef struct XAUDIO2_SEND_DESCRIPTOR
{
UINT32 Flags; // Either 0 or XAUDIO2_SEND_USEFILTER.
IXAudio2Voice* pOutputVoice; // This send's destination voice.
} XAUDIO2_SEND_DESCRIPTOR;
// Used in the voice creation functions and in IXAudio2Voice::SetOutputVoices
typedef struct XAUDIO2_VOICE_SENDS
{
UINT32 SendCount; // Number of sends from this voice.
XAUDIO2_SEND_DESCRIPTOR* pSends; // Array of SendCount send descriptors.
} XAUDIO2_VOICE_SENDS;
// Used in XAUDIO2_EFFECT_CHAIN below
typedef struct XAUDIO2_EFFECT_DESCRIPTOR
{
IUnknown* pEffect; // Pointer to the effect object's IUnknown interface.
BOOL InitialState; // TRUE if the effect should begin in the enabled state.
UINT32 OutputChannels; // How many output channels the effect should produce.
} XAUDIO2_EFFECT_DESCRIPTOR;
// Used in the voice creation functions and in IXAudio2Voice::SetEffectChain
typedef struct XAUDIO2_EFFECT_CHAIN
{
UINT32 EffectCount; // Number of effects in this voice's effect chain.
XAUDIO2_EFFECT_DESCRIPTOR* pEffectDescriptors; // Array of effect descriptors.
} XAUDIO2_EFFECT_CHAIN;
// Used in XAUDIO2_FILTER_PARAMETERS below
typedef enum XAUDIO2_FILTER_TYPE
{
LowPassFilter, // Attenuates frequencies above the cutoff frequency.
BandPassFilter, // Attenuates frequencies outside a given range.
HighPassFilter, // Attenuates frequencies below the cutoff frequency.
NotchFilter // Attenuates frequencies inside a given range.
} XAUDIO2_FILTER_TYPE;
// Used in IXAudio2Voice::Set/GetFilterParameters and Set/GetOutputFilterParameters
typedef struct XAUDIO2_FILTER_PARAMETERS
{
XAUDIO2_FILTER_TYPE Type; // Low-pass, band-pass or high-pass.
float Frequency; // Radian frequency (2 * sin(pi*CutoffFrequency/SampleRate));
// must be >= 0 and <= XAUDIO2_MAX_FILTER_FREQUENCY
// (giving a maximum CutoffFrequency of SampleRate/6).
float OneOverQ; // Reciprocal of the filter's quality factor Q;
// must be > 0 and <= XAUDIO2_MAX_FILTER_ONEOVERQ.
} XAUDIO2_FILTER_PARAMETERS;
// Used in IXAudio2SourceVoice::SubmitSourceBuffer
typedef struct XAUDIO2_BUFFER
{
UINT32 Flags; // Either 0 or XAUDIO2_END_OF_STREAM.
UINT32 AudioBytes; // Size of the audio data buffer in bytes.
const BYTE* pAudioData; // Pointer to the audio data buffer.
UINT32 PlayBegin; // First sample in this buffer to be played.
UINT32 PlayLength; // Length of the region to be played in samples,
// or 0 to play the whole buffer.
UINT32 LoopBegin; // First sample of the region to be looped.
UINT32 LoopLength; // Length of the desired loop region in samples,
// or 0 to loop the entire buffer.
UINT32 LoopCount; // Number of times to repeat the loop region,
// or XAUDIO2_LOOP_INFINITE to loop forever.
void* pContext; // Context value to be passed back in callbacks.
} XAUDIO2_BUFFER;
typedef struct XAUDIO2_BUFFER_WMA
{
const UINT32* pDecodedPacketCumulativeBytes; // Decoded packet's cumulative size array.
// Each element is the number of bytes accumulated
// when the corresponding XWMA packet is decoded in
// order. The array must have PacketCount elements.
UINT32 PacketCount; // Number of XWMA packets submitted. Must be >= 1 and
// divide evenly into XAUDIO2_BUFFER.AudioBytes.
} XAUDIO2_BUFFER_WMA;
// Returned by IXAudio2SourceVoice::GetState
typedef struct XAUDIO2_VOICE_STATE
{
void* pCurrentBufferContext; // The pContext value provided in the XAUDIO2_BUFFER
// that is currently being processed, or NULL if
// there are no buffers in the queue.
UINT32 BuffersQueued; // Number of buffers currently queued on the voice
// (including the one that is being processed).
UINT64 SamplesPlayed; // Total number of samples produced by the voice since
// it began processing the current audio stream.
} XAUDIO2_VOICE_STATE;
#define XAUDIO2_LOG_ERRORS 0x0001 // For handled errors with serious effects.
#define XAUDIO2_LOG_WARNINGS 0x0002 // For handled errors that may be recoverable.
#define XAUDIO2_LOG_INFO 0x0004 // Informational chit-chat (e.g. state changes).
#define XAUDIO2_LOG_DETAIL 0x0008 // More detailed chit-chat.
#define XAUDIO2_LOG_API_CALLS 0x0010 // Public API function entries and exits.
#define XAUDIO2_LOG_FUNC_CALLS 0x0020 // Internal function entries and exits.
#define XAUDIO2_LOG_TIMING 0x0040 // Delays detected and other timing data.
#define XAUDIO2_LOG_LOCKS 0x0080 // Usage of critical sections and mutexes.
#define XAUDIO2_LOG_MEMORY 0x0100 // Memory heap usage information.
#define XAUDIO2_LOG_STREAMING 0x1000 // Audio streaming information.
#define X2DEFAULT(x)
#undef INTERFACE
#define INTERFACE IXAudio2
DECLARE_INTERFACE_(IXAudio2, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, __deref_out void** ppvInterface) PURE;
STDMETHOD_(ULONG, AddRef) (THIS) PURE;
STDMETHOD_(ULONG, Release) (THIS) PURE;
STDMETHOD(GetDeviceCount) (THIS_ __out UINT32* pCount) PURE;
STDMETHOD(GetDeviceDetails) (THIS_ UINT32 Index, __out XAUDIO2_DEVICE_DETAILS* pDeviceDetails) PURE;
STDMETHOD(Initialize) (THIS_ UINT32 Flags X2DEFAULT(0),
XAUDIO2_PROCESSOR XAudio2Processor X2DEFAULT(XAUDIO2_DEFAULT_PROCESSOR)) PURE;
STDMETHOD(RegisterForCallbacks) (__in IXAudio2EngineCallback* pCallback) PURE;
STDMETHOD_(void, UnregisterForCallbacks) (__in IXAudio2EngineCallback* pCallback) PURE;
STDMETHOD(CreateSourceVoice) (THIS_ __deref_out IXAudio2SourceVoice** ppSourceVoice,
__in const WAVEFORMATEX* pSourceFormat,
UINT32 Flags X2DEFAULT(0),
float MaxFrequencyRatio X2DEFAULT(XAUDIO2_DEFAULT_FREQ_RATIO),
__in_opt IXAudio2VoiceCallback* pCallback X2DEFAULT(NULL),
__in_opt const XAUDIO2_VOICE_SENDS* pSendList X2DEFAULT(NULL),
__in_opt const XAUDIO2_EFFECT_CHAIN* pEffectChain X2DEFAULT(NULL)) PURE;
STDMETHOD(CreateSubmixVoice) (THIS_ __deref_out IXAudio2SubmixVoice** ppSubmixVoice,
UINT32 InputChannels, UINT32 InputSampleRate,
UINT32 Flags X2DEFAULT(0), UINT32 ProcessingStage X2DEFAULT(0),
__in_opt const XAUDIO2_VOICE_SENDS* pSendList X2DEFAULT(NULL),
__in_opt const XAUDIO2_EFFECT_CHAIN* pEffectChain X2DEFAULT(NULL)) PURE;
STDMETHOD(CreateMasteringVoice) (THIS_ __deref_out IXAudio2MasteringVoice** ppMasteringVoice,
UINT32 InputChannels X2DEFAULT(XAUDIO2_DEFAULT_CHANNELS),
UINT32 InputSampleRate X2DEFAULT(XAUDIO2_DEFAULT_SAMPLERATE),
UINT32 Flags X2DEFAULT(0), UINT32 DeviceIndex X2DEFAULT(0),
__in_opt const XAUDIO2_EFFECT_CHAIN* pEffectChain X2DEFAULT(NULL)) PURE;
STDMETHOD(StartEngine) (THIS) PURE;
STDMETHOD_(void, StopEngine) (THIS) PURE;
STDMETHOD(CommitChanges) (THIS_ UINT32 OperationSet) PURE;
};
#undef INTERFACE
#define INTERFACE IXAudio2Voice
DECLARE_INTERFACE(IXAudio2Voice)
{
#define Declare_IXAudio2Voice_Methods() \
STDMETHOD_(void, GetVoiceDetails) (THIS_ __out XAUDIO2_VOICE_DETAILS* pVoiceDetails) PURE; \
\
STDMETHOD(SetOutputVoices) (THIS_ __in_opt const XAUDIO2_VOICE_SENDS* pSendList) PURE; \
\
STDMETHOD(SetEffectChain) (THIS_ __in_opt const XAUDIO2_EFFECT_CHAIN* pEffectChain) PURE; \
\
STDMETHOD(EnableEffect) (THIS_ UINT32 EffectIndex, \
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
\
STDMETHOD(DisableEffect) (THIS_ UINT32 EffectIndex, \
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
\
STDMETHOD_(void, GetEffectState) (THIS_ UINT32 EffectIndex, __out BOOL* pEnabled) PURE; \
\
STDMETHOD(SetEffectParameters) (THIS_ UINT32 EffectIndex, \
__in_bcount(ParametersByteSize) const void* pParameters, \
UINT32 ParametersByteSize, \
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
\
STDMETHOD(GetEffectParameters) (THIS_ UINT32 EffectIndex, \
__out_bcount(ParametersByteSize) void* pParameters, \
UINT32 ParametersByteSize) PURE; \
\
STDMETHOD(SetFilterParameters) (THIS_ __in const XAUDIO2_FILTER_PARAMETERS* pParameters, \
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
\
STDMETHOD_(void, GetFilterParameters) (THIS_ __out XAUDIO2_FILTER_PARAMETERS* pParameters) PURE; \
\
STDMETHOD(SetOutputFilterParameters) (THIS_ __in_opt IXAudio2Voice* pDestinationVoice, \
__in const XAUDIO2_FILTER_PARAMETERS* pParameters, \
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
\
STDMETHOD_(void, GetOutputFilterParameters) (THIS_ __in_opt IXAudio2Voice* pDestinationVoice, \
__out XAUDIO2_FILTER_PARAMETERS* pParameters) PURE; \
\
STDMETHOD(SetVolume) (THIS_ float Volume, \
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
\
STDMETHOD_(void, GetVolume) (THIS_ __out float* pVolume) PURE; \
\
STDMETHOD(SetChannelVolumes) (THIS_ UINT32 Channels, __in_ecount(Channels) const float* pVolumes, \
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
\
STDMETHOD_(void, GetChannelVolumes) (THIS_ UINT32 Channels, __out_ecount(Channels) float* pVolumes) PURE; \
\
STDMETHOD(SetOutputMatrix) (THIS_ __in_opt IXAudio2Voice* pDestinationVoice, \
UINT32 SourceChannels, UINT32 DestinationChannels, \
__in_ecount(SourceChannels * DestinationChannels) const float* pLevelMatrix, \
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
\
STDMETHOD_(void, GetOutputMatrix) (THIS_ __in_opt IXAudio2Voice* pDestinationVoice, \
UINT32 SourceChannels, UINT32 DestinationChannels, \
__out_ecount(SourceChannels * DestinationChannels) float* pLevelMatrix) PURE; \
\
STDMETHOD_(void, DestroyVoice) (THIS) PURE
Declare_IXAudio2Voice_Methods();
};
#undef INTERFACE
#define INTERFACE IXAudio2SourceVoice
DECLARE_INTERFACE_(IXAudio2SourceVoice, IXAudio2Voice)
{
Declare_IXAudio2Voice_Methods();
STDMETHOD(Start) (THIS_ UINT32 Flags X2DEFAULT(0), UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE;
STDMETHOD(Stop) (THIS_ UINT32 Flags X2DEFAULT(0), UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE;
STDMETHOD(SubmitSourceBuffer) (THIS_ __in const XAUDIO2_BUFFER* pBuffer, __in_opt const XAUDIO2_BUFFER_WMA* pBufferWMA X2DEFAULT(NULL)) PURE;
STDMETHOD(FlushSourceBuffers) (THIS) PURE;
STDMETHOD(Discontinuity) (THIS) PURE;
STDMETHOD(ExitLoop) (THIS_ UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE;
STDMETHOD_(void, GetState) (THIS_ __out XAUDIO2_VOICE_STATE* pVoiceState) PURE;
STDMETHOD(SetFrequencyRatio) (THIS_ float Ratio,
UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE;
STDMETHOD_(void, GetFrequencyRatio) (THIS_ __out float* pRatio) PURE;
STDMETHOD(SetSourceSampleRate) (THIS_ UINT32 NewSourceSampleRate) PURE;
};
#undef INTERFACE
#define INTERFACE IXAudio2SubmixVoice
DECLARE_INTERFACE_(IXAudio2SubmixVoice, IXAudio2Voice)
{
Declare_IXAudio2Voice_Methods();
};
#undef INTERFACE
#define INTERFACE IXAudio2MasteringVoice
DECLARE_INTERFACE_(IXAudio2MasteringVoice, IXAudio2Voice)
{
Declare_IXAudio2Voice_Methods();
};
#undef INTERFACE
#define INTERFACE IXAudio2EngineCallback
DECLARE_INTERFACE(IXAudio2EngineCallback)
{
STDMETHOD_(void, OnProcessingPassStart) (THIS) PURE;
STDMETHOD_(void, OnProcessingPassEnd) (THIS) PURE;
STDMETHOD_(void, OnCriticalError) (THIS_ HRESULT Error) PURE;
};
#undef INTERFACE
#define INTERFACE IXAudio2VoiceCallback
DECLARE_INTERFACE(IXAudio2VoiceCallback)
{
STDMETHOD_(void, OnVoiceProcessingPassStart) (THIS_ UINT32 BytesRequired) PURE;
STDMETHOD_(void, OnVoiceProcessingPassEnd) (THIS) PURE;
STDMETHOD_(void, OnStreamEnd) (THIS) PURE;
STDMETHOD_(void, OnBufferStart) (THIS_ void* pBufferContext) PURE;
STDMETHOD_(void, OnBufferEnd) (THIS_ void* pBufferContext) PURE;
STDMETHOD_(void, OnLoopEnd) (THIS_ void* pBufferContext) PURE;
STDMETHOD_(void, OnVoiceError) (THIS_ void* pBufferContext, HRESULT Error) PURE;
};
// IXAudio2
#define IXAudio2_QueryInterface(This,riid,ppvInterface) ((This)->lpVtbl->QueryInterface(This,riid,ppvInterface))
#define IXAudio2_AddRef(This) ((This)->lpVtbl->AddRef(This))
#define IXAudio2_Release(This) ((This)->lpVtbl->Release(This))
#define IXAudio2_GetDeviceCount(This,puCount) ((This)->lpVtbl->GetDeviceCount(This,puCount))
#define IXAudio2_GetDeviceDetails(This,Index,pDeviceDetails) ((This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails))
#define IXAudio2_Initialize(This,Flags,XAudio2Processor) ((This)->lpVtbl->Initialize(This,Flags,XAudio2Processor))
#define IXAudio2_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) ((This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain))
#define IXAudio2_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) ((This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain))
#define IXAudio2_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) ((This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain))
#define IXAudio2_StartEngine(This) ((This)->lpVtbl->StartEngine(This))
#define IXAudio2_StopEngine(This) ((This)->lpVtbl->StopEngine(This))
#define IXAudio2_CommitChanges(This,OperationSet) ((This)->lpVtbl->CommitChanges(This,OperationSet))
// IXAudio2Voice
#define IXAudio2Voice_GetVoiceDetails(This,pVoiceDetails) ((This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails))
#define IXAudio2Voice_SetOutputVoices(This,pSendList) ((This)->lpVtbl->SetOutputVoices(This,pSendList))
#define IXAudio2Voice_SetEffectChain(This,pEffectChain) ((This)->lpVtbl->SetEffectChain(This,pEffectChain))
#define IXAudio2Voice_EnableEffect(This,EffectIndex,OperationSet) ((This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet))
#define IXAudio2Voice_DisableEffect(This,EffectIndex,OperationSet) ((This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet))
#define IXAudio2Voice_GetEffectState(This,EffectIndex,pEnabled) ((This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled))
#define IXAudio2Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize, OperationSet) ((This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet))
#define IXAudio2Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) ((This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize))
#define IXAudio2Voice_SetFilterParameters(This,pParameters,OperationSet) ((This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet))
#define IXAudio2Voice_GetFilterParameters(This,pParameters) ((This)->lpVtbl->GetFilterParameters(This,pParameters))
#define IXAudio2Voice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) ((This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet))
#define IXAudio2Voice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) ((This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters))
#define IXAudio2Voice_SetVolume(This,Volume,OperationSet) ((This)->lpVtbl->SetVolume(This,Volume,OperationSet))
#define IXAudio2Voice_GetVolume(This,pVolume) ((This)->lpVtbl->GetVolume(This,pVolume))
#define IXAudio2Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) ((This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet))
#define IXAudio2Voice_GetChannelVolumes(This,Channels,pVolumes) ((This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes))
#define IXAudio2Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) ((This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet))
#define IXAudio2Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) ((This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix))
#define IXAudio2Voice_DestroyVoice(This) ((This)->lpVtbl->DestroyVoice(This))
// IXAudio2SourceVoice
#define IXAudio2SourceVoice_GetVoiceDetails IXAudio2Voice_GetVoiceDetails
#define IXAudio2SourceVoice_SetOutputVoices IXAudio2Voice_SetOutputVoices
#define IXAudio2SourceVoice_SetEffectChain IXAudio2Voice_SetEffectChain
#define IXAudio2SourceVoice_EnableEffect IXAudio2Voice_EnableEffect
#define IXAudio2SourceVoice_DisableEffect IXAudio2Voice_DisableEffect
#define IXAudio2SourceVoice_GetEffectState IXAudio2Voice_GetEffectState
#define IXAudio2SourceVoice_SetEffectParameters IXAudio2Voice_SetEffectParameters
#define IXAudio2SourceVoice_GetEffectParameters IXAudio2Voice_GetEffectParameters
#define IXAudio2SourceVoice_SetFilterParameters IXAudio2Voice_SetFilterParameters
#define IXAudio2SourceVoice_GetFilterParameters IXAudio2Voice_GetFilterParameters
#define IXAudio2SourceVoice_SetOutputFilterParameters IXAudio2Voice_SetOutputFilterParameters
#define IXAudio2SourceVoice_GetOutputFilterParameters IXAudio2Voice_GetOutputFilterParameters
#define IXAudio2SourceVoice_SetVolume IXAudio2Voice_SetVolume
#define IXAudio2SourceVoice_GetVolume IXAudio2Voice_GetVolume
#define IXAudio2SourceVoice_SetChannelVolumes IXAudio2Voice_SetChannelVolumes
#define IXAudio2SourceVoice_GetChannelVolumes IXAudio2Voice_GetChannelVolumes
#define IXAudio2SourceVoice_SetOutputMatrix IXAudio2Voice_SetOutputMatrix
#define IXAudio2SourceVoice_GetOutputMatrix IXAudio2Voice_GetOutputMatrix
#define IXAudio2SourceVoice_DestroyVoice IXAudio2Voice_DestroyVoice
#define IXAudio2SourceVoice_Start(This,Flags,OperationSet) ((This)->lpVtbl->Start(This,Flags,OperationSet))
#define IXAudio2SourceVoice_Stop(This,Flags,OperationSet) ((This)->lpVtbl->Stop(This,Flags,OperationSet))
#define IXAudio2SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) ((This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA))
#define IXAudio2SourceVoice_FlushSourceBuffers(This) ((This)->lpVtbl->FlushSourceBuffers(This))
#define IXAudio2SourceVoice_Discontinuity(This) ((This)->lpVtbl->Discontinuity(This))
#define IXAudio2SourceVoice_ExitLoop(This,OperationSet) ((This)->lpVtbl->ExitLoop(This,OperationSet))
#define IXAudio2SourceVoice_GetState(This,pVoiceState) ((This)->lpVtbl->GetState(This,pVoiceState))
#define IXAudio2SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) ((This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet))
#define IXAudio2SourceVoice_GetFrequencyRatio(This,pRatio) ((This)->lpVtbl->GetFrequencyRatio(This,pRatio))
#define IXAudio2SourceVoice_SetSourceSampleRate(This,NewSourceSampleRate) ((This)->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate))
// IXAudio2SubmixVoice
#define IXAudio2SubmixVoice_GetVoiceDetails IXAudio2Voice_GetVoiceDetails
#define IXAudio2SubmixVoice_SetOutputVoices IXAudio2Voice_SetOutputVoices
#define IXAudio2SubmixVoice_SetEffectChain IXAudio2Voice_SetEffectChain
#define IXAudio2SubmixVoice_EnableEffect IXAudio2Voice_EnableEffect
#define IXAudio2SubmixVoice_DisableEffect IXAudio2Voice_DisableEffect
#define IXAudio2SubmixVoice_GetEffectState IXAudio2Voice_GetEffectState
#define IXAudio2SubmixVoice_SetEffectParameters IXAudio2Voice_SetEffectParameters
#define IXAudio2SubmixVoice_GetEffectParameters IXAudio2Voice_GetEffectParameters
#define IXAudio2SubmixVoice_SetFilterParameters IXAudio2Voice_SetFilterParameters
#define IXAudio2SubmixVoice_GetFilterParameters IXAudio2Voice_GetFilterParameters
#define IXAudio2SubmixVoice_SetOutputFilterParameters IXAudio2Voice_SetOutputFilterParameters
#define IXAudio2SubmixVoice_GetOutputFilterParameters IXAudio2Voice_GetOutputFilterParameters
#define IXAudio2SubmixVoice_SetVolume IXAudio2Voice_SetVolume
#define IXAudio2SubmixVoice_GetVolume IXAudio2Voice_GetVolume
#define IXAudio2SubmixVoice_SetChannelVolumes IXAudio2Voice_SetChannelVolumes
#define IXAudio2SubmixVoice_GetChannelVolumes IXAudio2Voice_GetChannelVolumes
#define IXAudio2SubmixVoice_SetOutputMatrix IXAudio2Voice_SetOutputMatrix
#define IXAudio2SubmixVoice_GetOutputMatrix IXAudio2Voice_GetOutputMatrix
#define IXAudio2SubmixVoice_DestroyVoice IXAudio2Voice_DestroyVoice
// IXAudio2MasteringVoice
#define IXAudio2MasteringVoice_GetVoiceDetails IXAudio2Voice_GetVoiceDetails
#define IXAudio2MasteringVoice_SetOutputVoices IXAudio2Voice_SetOutputVoices
#define IXAudio2MasteringVoice_SetEffectChain IXAudio2Voice_SetEffectChain
#define IXAudio2MasteringVoice_EnableEffect IXAudio2Voice_EnableEffect
#define IXAudio2MasteringVoice_DisableEffect IXAudio2Voice_DisableEffect
#define IXAudio2MasteringVoice_GetEffectState IXAudio2Voice_GetEffectState
#define IXAudio2MasteringVoice_SetEffectParameters IXAudio2Voice_SetEffectParameters
#define IXAudio2MasteringVoice_GetEffectParameters IXAudio2Voice_GetEffectParameters
#define IXAudio2MasteringVoice_SetFilterParameters IXAudio2Voice_SetFilterParameters
#define IXAudio2MasteringVoice_GetFilterParameters IXAudio2Voice_GetFilterParameters
#define IXAudio2MasteringVoice_SetOutputFilterParameters IXAudio2Voice_SetOutputFilterParameters
#define IXAudio2MasteringVoice_GetOutputFilterParameters IXAudio2Voice_GetOutputFilterParameters
#define IXAudio2MasteringVoice_SetVolume IXAudio2Voice_SetVolume
#define IXAudio2MasteringVoice_GetVolume IXAudio2Voice_GetVolume
#define IXAudio2MasteringVoice_SetChannelVolumes IXAudio2Voice_SetChannelVolumes
#define IXAudio2MasteringVoice_GetChannelVolumes IXAudio2Voice_GetChannelVolumes
#define IXAudio2MasteringVoice_SetOutputMatrix IXAudio2Voice_SetOutputMatrix
#define IXAudio2MasteringVoice_GetOutputMatrix IXAudio2Voice_GetOutputMatrix
#define IXAudio2MasteringVoice_DestroyVoice IXAudio2Voice_DestroyVoice
STDAPI XAudio2Create(__deref_out IXAudio2** ppXAudio2, UINT32 Flags X2DEFAULT(0),
XAUDIO2_PROCESSOR XAudio2Processor X2DEFAULT(XAUDIO2_DEFAULT_PROCESSOR));
// Undo the #pragma pack(push, 1) directive at the top of this file
#pragma pack(pop)
#endif // #ifndef GUID_DEFS_ONLY
#endif
+226
View File
@@ -0,0 +1,226 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "../driver.h"
#include <stdlib.h>
#include <xtl.h>
#include "xaudio-c/xaudio.h"
#include "../general.h"
#define MAX_BUFFERS 16
#define MAX_BUFFERS_MASK 15
struct XAudio : public IXAudio2VoiceCallback
{
XAudio() :
buf(0), pXAudio2(0), pMasteringVoice(0),
pSourceVoice(0), nonblock(false), bufsize(0),
bufptr(0), write_buffer(0), buffers(0), hEvent(0)
{}
~XAudio()
{
if (pSourceVoice)
{
pSourceVoice->Stop(0, XAUDIO2_COMMIT_NOW);
pSourceVoice->DestroyVoice();
}
if (pMasteringVoice)
pMasteringVoice->DestroyVoice();
if (pXAudio2)
pXAudio2->Release();
if (hEvent)
CloseHandle(hEvent);
free(buf);
}
bool init(unsigned rate, unsigned latency)
{
size_t bufsize_ = latency * rate / 1000;
size_t size = bufsize_ * 2 * sizeof(int16_t);
RARCH_LOG("XAudio2: Requesting %d ms latency, using %d ms latency.\n", latency, (int)bufsize_ * 1000 / rate);
if (FAILED(XAudio2Create(&pXAudio2, 0, XAUDIO2_DEFAULT_PROCESSOR)))
return false;
if (FAILED(pXAudio2->CreateMasteringVoice(&pMasteringVoice, 2, rate, 0, 0, NULL)))
return false;
WAVEFORMATEX wfx = {0};
wfx.wFormatTag = WAVE_FORMAT_PCM;
wfx.nChannels = 2;
wfx.nSamplesPerSec = rate;
wfx.nBlockAlign = 2 * sizeof(int16_t);
wfx.wBitsPerSample = sizeof(int16_t) * 8;
wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign;
wfx.cbSize = 0;
if (FAILED(pXAudio2->CreateSourceVoice(&pSourceVoice, &wfx,
XAUDIO2_VOICE_NOSRC, XAUDIO2_DEFAULT_FREQ_RATIO, this, 0, 0)))
return false;
hEvent = CreateEvent(0, FALSE, FALSE, 0);
bufsize = size / MAX_BUFFERS;
buf = (uint8_t*)malloc(bufsize * MAX_BUFFERS);
memset(buf, 0, bufsize * MAX_BUFFERS);
if (FAILED(pSourceVoice->Start(0, XAUDIO2_COMMIT_NOW)))
return false;
return true;
}
// It's really 16-bit, but we have to byteswap.
size_t write(const uint8_t *buffer, size_t size)
{
if (nonblock)
{
size_t avail = bufsize * (MAX_BUFFERS - buffers - 1);
if (avail == 0)
return 0;
if (avail < size)
size = avail;
}
unsigned bytes = size;
while (bytes)
{
unsigned need = min(bytes, bufsize - bufptr);
uint8_t *base_write = buf + write_buffer * bufsize + bufptr;
memcpy(base_write, buffer, need);
bufptr += need;
buffer += need;
bytes -= need;
if (bufptr == bufsize)
{
while (buffers == MAX_BUFFERS - 1)
WaitForSingleObject(hEvent, INFINITE);
XAUDIO2_BUFFER xa2buffer = {0};
xa2buffer.AudioBytes = bufsize;
xa2buffer.pAudioData = buf + write_buffer * bufsize;
if (FAILED(pSourceVoice->SubmitSourceBuffer(&xa2buffer, NULL)))
return 0;
InterlockedIncrement(&buffers);
bufptr = 0;
write_buffer = (write_buffer + 1) & MAX_BUFFERS_MASK;
}
}
return size;
}
STDMETHOD_(void, OnBufferStart) (void *) {}
STDMETHOD_(void, OnBufferEnd) (void *)
{
InterlockedDecrement(&buffers);
SetEvent(hEvent);
}
STDMETHOD_(void, OnLoopEnd) (void *) {}
STDMETHOD_(void, OnStreamEnd) () {}
STDMETHOD_(void, OnVoiceError) (void *, HRESULT) {}
STDMETHOD_(void, OnVoiceProcessingPassEnd) () {}
STDMETHOD_(void, OnVoiceProcessingPassStart) (UINT32) {}
uint8_t *buf;
IXAudio2 *pXAudio2;
IXAudio2MasteringVoice *pMasteringVoice;
IXAudio2SourceVoice *pSourceVoice;
bool nonblock;
unsigned bufsize;
unsigned bufptr;
unsigned write_buffer;
volatile long buffers;
HANDLE hEvent;
};
static void *xa_init(const char *device, unsigned rate, unsigned latency)
{
if (latency < 8)
latency = 8; // Do not allow shenanigans.
XAudio *xa = new XAudio;
if (!xa->init(rate, latency))
goto error;
return xa;
error:
RARCH_ERR("Failed to init XAudio2.\n");
delete xa;
return NULL;
}
static ssize_t xa_write(void *data, const void *buf, size_t size)
{
XAudio *xa = (XAudio*)data;
size_t ret = xa->write((const uint8_t*)buf, size);
if (ret == 0 && !xa->nonblock)
return -1;
return ret;
}
static bool xa_stop(void *data)
{
(void)data;
return true;
}
static void xa_set_nonblock_state(void *data, bool state)
{
XAudio *xa = (XAudio*)data;
xa->nonblock = state;
}
static bool xa_start(void *data)
{
(void)data;
return true;
}
static void xa_free(void *data)
{
XAudio *xa = (XAudio*)data;
if (xa)
delete xa;
}
static bool xa_use_float(void *data)
{
(void)data;
return false;
}
const audio_driver_t audio_xdk360 = {
xa_init,
xa_write,
xa_stop,
xa_start,
xa_set_nonblock_state,
xa_free,
xa_use_float,
"xdk360"
};
+836
View File
@@ -0,0 +1,836 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
* Copyright (C) 2011-2012 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef _XBOX
#include <xtl.h>
#endif
#include "../driver.h"
#include "xdk_d3d9.h"
#ifdef HAVE_HLSL
#include "../gfx/shader_hlsl.h"
#endif
#include "./../gfx/gfx_context.h"
#include "../general.h"
#include "../message.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef _XBOX360
#include "../gfx/fonts/xdk360_fonts.h"
#endif
#include "../xdk/xdk_resources.h"
extern video_console_t video_console;
extern xdk360_video_font_t m_Font;
const DWORD g_MapLinearToSrgbGpuFormat[] =
{
GPUTEXTUREFORMAT_1_REVERSE,
GPUTEXTUREFORMAT_1,
GPUTEXTUREFORMAT_8,
GPUTEXTUREFORMAT_1_5_5_5,
GPUTEXTUREFORMAT_5_6_5,
GPUTEXTUREFORMAT_6_5_5,
GPUTEXTUREFORMAT_8_8_8_8_AS_16_16_16_16,
GPUTEXTUREFORMAT_2_10_10_10_AS_16_16_16_16,
GPUTEXTUREFORMAT_8_A,
GPUTEXTUREFORMAT_8_B,
GPUTEXTUREFORMAT_8_8,
GPUTEXTUREFORMAT_Cr_Y1_Cb_Y0_REP,
GPUTEXTUREFORMAT_Y1_Cr_Y0_Cb_REP,
GPUTEXTUREFORMAT_16_16_EDRAM,
GPUTEXTUREFORMAT_8_8_8_8_A,
GPUTEXTUREFORMAT_4_4_4_4,
GPUTEXTUREFORMAT_10_11_11_AS_16_16_16_16,
GPUTEXTUREFORMAT_11_11_10_AS_16_16_16_16,
GPUTEXTUREFORMAT_DXT1_AS_16_16_16_16,
GPUTEXTUREFORMAT_DXT2_3_AS_16_16_16_16,
GPUTEXTUREFORMAT_DXT4_5_AS_16_16_16_16,
GPUTEXTUREFORMAT_16_16_16_16_EDRAM,
GPUTEXTUREFORMAT_24_8,
GPUTEXTUREFORMAT_24_8_FLOAT,
GPUTEXTUREFORMAT_16,
GPUTEXTUREFORMAT_16_16,
GPUTEXTUREFORMAT_16_16_16_16,
GPUTEXTUREFORMAT_16_EXPAND,
GPUTEXTUREFORMAT_16_16_EXPAND,
GPUTEXTUREFORMAT_16_16_16_16_EXPAND,
GPUTEXTUREFORMAT_16_FLOAT,
GPUTEXTUREFORMAT_16_16_FLOAT,
GPUTEXTUREFORMAT_16_16_16_16_FLOAT,
GPUTEXTUREFORMAT_32,
GPUTEXTUREFORMAT_32_32,
GPUTEXTUREFORMAT_32_32_32_32,
GPUTEXTUREFORMAT_32_FLOAT,
GPUTEXTUREFORMAT_32_32_FLOAT,
GPUTEXTUREFORMAT_32_32_32_32_FLOAT,
GPUTEXTUREFORMAT_32_AS_8,
GPUTEXTUREFORMAT_32_AS_8_8,
GPUTEXTUREFORMAT_16_MPEG,
GPUTEXTUREFORMAT_16_16_MPEG,
GPUTEXTUREFORMAT_8_INTERLACED,
GPUTEXTUREFORMAT_32_AS_8_INTERLACED,
GPUTEXTUREFORMAT_32_AS_8_8_INTERLACED,
GPUTEXTUREFORMAT_16_INTERLACED,
GPUTEXTUREFORMAT_16_MPEG_INTERLACED,
GPUTEXTUREFORMAT_16_16_MPEG_INTERLACED,
GPUTEXTUREFORMAT_DXN,
GPUTEXTUREFORMAT_8_8_8_8_AS_16_16_16_16,
GPUTEXTUREFORMAT_DXT1_AS_16_16_16_16,
GPUTEXTUREFORMAT_DXT2_3_AS_16_16_16_16,
GPUTEXTUREFORMAT_DXT4_5_AS_16_16_16_16,
GPUTEXTUREFORMAT_2_10_10_10_AS_16_16_16_16,
GPUTEXTUREFORMAT_10_11_11_AS_16_16_16_16,
GPUTEXTUREFORMAT_11_11_10_AS_16_16_16_16,
GPUTEXTUREFORMAT_32_32_32_FLOAT,
GPUTEXTUREFORMAT_DXT3A,
GPUTEXTUREFORMAT_DXT5A,
GPUTEXTUREFORMAT_CTX1,
GPUTEXTUREFORMAT_DXT3A_AS_1_1_1_1,
GPUTEXTUREFORMAT_8_8_8_8_GAMMA_EDRAM,
GPUTEXTUREFORMAT_2_10_10_10_FLOAT_EDRAM,
};
static void check_window(xdk_d3d_video_t *d3d)
{
bool quit, resize;
gfx_ctx_check_window(&quit,
&resize, NULL, NULL,
d3d->frame_count);
if (quit)
d3d->quitting = true;
else if (resize)
d3d->should_resize = true;
}
static void xdk_d3d_free(void * data)
{
#ifdef RARCH_CONSOLE
if (driver.video_data)
return;
#endif
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)data;
if (!d3d)
return;
#ifdef HAVE_HLSL
hlsl_deinit();
#endif
d3d->d3d_render_device->Release();
d3d->d3d_device->Release();
free(d3d);
}
void xdk_video_font_draw_text(xdk360_video_font_t *font,
float fOriginX, float fOriginY, const wchar_t * strText, float fMaxPixelWidth )
{
if( strText == NULL || strText[0] == L'\0')
return;
xdk_d3d_video_t *vid = (xdk_d3d_video_t*)driver.video_data;
D3DDevice *pd3dDevice = vid->d3d_render_device;
// Set the color as a vertex shader constant
float vColor[4];
vColor[0] = ( ( 0xffffffff & 0x00ff0000 ) >> 16L ) / 255.0F;
vColor[1] = ( ( 0xffffffff & 0x0000ff00 ) >> 8L ) / 255.0F;
vColor[2] = ( ( 0xffffffff & 0x000000ff ) >> 0L ) / 255.0F;
vColor[3] = ( ( 0xffffffff & 0xff000000 ) >> 24L ) / 255.0F;
d3d9_render_msg_pre(font);
// Perform the actual storing of the color constant here to prevent
// a load-hit-store by inserting work between the store and the use of
// the vColor array.
pd3dDevice->SetVertexShaderConstantF( 1, vColor, 1 );
// Set the starting screen position
if((fOriginX < 0.0f))
fOriginX += font->m_rcWindow.x2;
if( fOriginY < 0.0f )
fOriginY += font->m_rcWindow.y2;
font->m_fCursorX = floorf( fOriginX );
font->m_fCursorY = floorf( fOriginY );
// Adjust for padding
fOriginY -= font->m_fFontTopPadding;
// Add window offsets
float Winx = 0.0f;
float Winy = 0.0f;
fOriginX += Winx;
fOriginY += Winy;
font->m_fCursorX += Winx;
font->m_fCursorY += Winy;
// Begin drawing the vertices
// Declared as volatile to force writing in ascending
// address order. It prevents out of sequence writing in write combined
// memory.
volatile float * pVertex;
unsigned long dwNumChars = wcslen(strText);
HRESULT hr = pd3dDevice->BeginVertices( D3DPT_QUADLIST, 4 * dwNumChars, sizeof( XMFLOAT4 ) ,
( VOID** )&pVertex );
// The ring buffer may run out of space when tiling, doing z-prepasses,
// or using BeginCommandBuffer. If so, make the buffer larger.
if( hr < 0 )
RARCH_ERR( "Ring buffer out of memory.\n" );
// Draw four vertices for each glyph
while( *strText )
{
wchar_t letter;
// Get the current letter in the string
letter = *strText++;
// Handle the newline character
if( letter == L'\n' )
{
font->m_fCursorX = fOriginX;
font->m_fCursorY += font->m_fFontYAdvance * font->m_fYScaleFactor;
continue;
}
// Translate unprintable characters
const GLYPH_ATTR * pGlyph = &font->m_Glyphs[ ( letter <= font->m_cMaxGlyph )
? font->m_TranslatorTable[letter] : 0 ];
float fOffset = font->m_fXScaleFactor * (float)pGlyph->wOffset;
float fAdvance = font->m_fXScaleFactor * (float)pGlyph->wAdvance;
float fWidth = font->m_fXScaleFactor * (float)pGlyph->wWidth;
float fHeight = font->m_fYScaleFactor * font->m_fFontHeight;
// Setup the screen coordinates
font->m_fCursorX += fOffset;
float X4 = font->m_fCursorX;
float X1 = X4;
float X3 = X4 + fWidth;
float X2 = X1 + fWidth;
float Y1 = font->m_fCursorY;
float Y3 = Y1 + fHeight;
float Y2 = Y1;
float Y4 = Y3;
font->m_fCursorX += fAdvance;
// Add the vertices to draw this glyph
unsigned long tu1 = pGlyph->tu1; // Convert shorts to 32 bit longs for in register merging
unsigned long tv1 = pGlyph->tv1;
unsigned long tu2 = pGlyph->tu2;
unsigned long tv2 = pGlyph->tv2;
// NOTE: The vertexs are 2 floats for the screen coordinates,
// followed by two USHORTS for the u/vs of the character,
// terminated with the ARGB 32 bit color.
// This makes for 16 bytes per vertex data (Easier to read)
// Second NOTE: The uvs are merged and written using a DWORD due
// to the write combining hardware being only able to handle 32,
// 64 and 128 writes. Never store to write combined memory with
// 8 or 16 bit instructions. You've been warned.
pVertex[0] = X1;
pVertex[1] = Y1;
((volatile unsigned long *)pVertex)[2] = (tu1<<16)|tv1; // Merged using big endian rules
pVertex[3] = 0;
pVertex[4] = X2;
pVertex[5] = Y2;
((volatile unsigned long *)pVertex)[6] = (tu2<<16)|tv1; // Merged using big endian rules
pVertex[7] = 0;
pVertex[8] = X3;
pVertex[9] = Y3;
((volatile unsigned long *)pVertex)[10] = (tu2<<16)|tv2; // Merged using big endian rules
pVertex[11] = 0;
pVertex[12] = X4;
pVertex[13] = Y4;
((volatile unsigned long *)pVertex)[14] = (tu1<<16)|tv2; // Merged using big endian rules
pVertex[15] = 0;
pVertex+=16;
dwNumChars--;
}
// Since we allocated vertex data space based on the string length, we now need to
// add some dummy verts for any skipped characters (like newlines, etc.)
while( dwNumChars )
{
for(int i = 0; i < 16; i++)
pVertex[i] = 0;
pVertex += 16;
dwNumChars--;
}
// Stop drawing vertices
D3DDevice_EndVertices(pd3dDevice);
// Undo window offsets
font->m_fCursorX -= Winx;
font->m_fCursorY -= Winy;
d3d9_render_msg_post(font);
}
void xdk360_console_draw(void)
{
xdk_d3d_video_t *vid = (xdk_d3d_video_t*)driver.video_data;
D3DDevice *m_pd3dDevice = vid->d3d_render_device;
// The top line
unsigned int nTextLine = ( video_console.m_nCurLine -
video_console.m_cScreenHeight + video_console.m_cScreenHeightVirtual -
video_console.m_nScrollOffset + 1 )
% video_console.m_cScreenHeightVirtual;
d3d9_render_msg_pre(&m_Font);
for( unsigned int nScreenLine = 0; nScreenLine < video_console.m_cScreenHeight; nScreenLine++ )
{
xdk_video_font_draw_text(&m_Font, (float)( video_console.m_cxSafeAreaOffset ),
(float)( video_console.m_cySafeAreaOffset + video_console.m_fLineHeight * nScreenLine ),
video_console.m_Lines[nTextLine], 0.0f );
nTextLine = ( nTextLine + 1 ) % video_console.m_cScreenHeightVirtual;
}
d3d9_render_msg_post(&m_Font);
}
static void xdk_convert_texture_to_as16_srgb( D3DTexture *pTexture )
{
pTexture->Format.SignX = GPUSIGN_GAMMA;
pTexture->Format.SignY = GPUSIGN_GAMMA;
pTexture->Format.SignZ = GPUSIGN_GAMMA;
XGTEXTURE_DESC desc;
XGGetTextureDesc( pTexture, 0, &desc );
//convert to AS_16_16_16_16 format
pTexture->Format.DataFormat = g_MapLinearToSrgbGpuFormat[ (desc.Format & D3DFORMAT_TEXTUREFORMAT_MASK) >> D3DFORMAT_TEXTUREFORMAT_SHIFT ];
}
static void xdk_d3d_set_viewport(bool force_full)
{
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
d3d->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET,
0xff000000, 1.0f, 0);
int width = d3d->video_mode.fIsHiDef ? 1280 : 640;
int height = d3d->video_mode.fIsHiDef ? 720 : 480;
int m_viewport_x_temp, m_viewport_y_temp, m_viewport_width_temp, m_viewport_height_temp;
float m_zNear, m_zFar;
m_viewport_x_temp = 0;
m_viewport_y_temp = 0;
m_viewport_width_temp = width;
m_viewport_height_temp = height;
m_zNear = 0.0f;
m_zFar = 1.0f;
if (!force_full)
{
float desired_aspect = g_settings.video.aspect_ratio;
float device_aspect = (float)width / height;
float delta;
// If the aspect ratios of screen and desired aspect ratio are sufficiently equal (floating point stuff),
if(g_console.aspect_ratio_index == ASPECT_RATIO_CUSTOM)
{
delta = (desired_aspect / device_aspect - 1.0) / 2.0 + 0.5;
m_viewport_x_temp = g_console.viewports.custom_vp.x;
m_viewport_y_temp = g_console.viewports.custom_vp.y;
m_viewport_width_temp = g_console.viewports.custom_vp.width;
m_viewport_height_temp = g_console.viewports.custom_vp.height;
}
else if (device_aspect > desired_aspect)
{
delta = (desired_aspect / device_aspect - 1.0) / 2.0 + 0.5;
m_viewport_x_temp = (int)(width * (0.5 - delta));
m_viewport_width_temp = (int)(2.0 * width * delta);
width = (unsigned)(2.0 * width * delta);
}
else
{
delta = (device_aspect / desired_aspect - 1.0) / 2.0 + 0.5;
m_viewport_y_temp = (int)(height * (0.5 - delta));
m_viewport_height_temp = (int)(2.0 * height * delta);
height = (unsigned)(2.0 * height * delta);
}
}
D3DVIEWPORT vp = {0};
vp.Width = m_viewport_width_temp;
vp.Height = m_viewport_height_temp;
vp.X = m_viewport_x_temp;
vp.Y = m_viewport_y_temp;
vp.MinZ = m_zNear;
vp.MaxZ = m_zFar;
d3d->d3d_render_device->SetViewport(&vp);
//if(gl->overscan_enable && !force_full)
//{
// m_left = -gl->overscan_amount/2;
// m_right = 1 + gl->overscan_amount/2;
// m_bottom = -gl->overscan_amount/2;
//}
}
static void xdk_d3d_set_rotation(void * data, unsigned orientation)
{
(void)data;
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)data;
FLOAT angle;
switch(orientation)
{
case ORIENTATION_NORMAL:
angle = M_PI * 0 / 180;
break;
case ORIENTATION_VERTICAL:
angle = M_PI * 270 / 180;
break;
case ORIENTATION_FLIPPED:
angle = M_PI * 180 / 180;
break;
case ORIENTATION_FLIPPED_ROTATED:
angle = M_PI * 90 / 180;
break;
}
#ifdef HAVE_HLSL
/* TODO: Move to D3DXMATRIX here */
hlsl_set_proj_matrix(XMMatrixRotationZ(angle));
#endif
d3d->should_resize = TRUE;
}
#ifdef HAVE_FBO
static void xdk_d3d_init_fbo(xdk_d3d_video_t *d3d)
{
if(!g_settings.video.render_to_texture)
return;
if (d3d->lpTexture_ot)
{
d3d->lpTexture_ot->Release();
d3d->lpTexture_ot = NULL;
}
if (d3d->lpSurface)
{
d3d->lpSurface->Release();
d3d->lpSurface = NULL;
}
d3d->d3d_render_device->CreateTexture(512 * g_settings.video.fbo_scale_x, 512 * g_settings.video.fbo_scale_y,
1, 0, g_console.gamma_correction ? ( D3DFORMAT )MAKESRGBFMT( D3DFMT_A8R8G8B8 ) : D3DFMT_A8R8G8B8,
0, &d3d->lpTexture_ot
, NULL
);
d3d->d3d_render_device->CreateRenderTarget(512 * g_settings.video.fbo_scale_x, 512 * g_settings.video.fbo_scale_y,
g_console.gamma_correction ? ( D3DFORMAT )MAKESRGBFMT( D3DFMT_A8R8G8B8 ) : D3DFMT_A8R8G8B8, D3DMULTISAMPLE_NONE,
0, 0, &d3d->lpSurface, NULL);
d3d->lpTexture_ot_as16srgb = *d3d->lpTexture_ot;
xdk_convert_texture_to_as16_srgb(d3d->lpTexture);
xdk_convert_texture_to_as16_srgb(&d3d->lpTexture_ot_as16srgb);
d3d->fbo_enabled = 1;
}
#endif
static void *xdk_d3d_init(const video_info_t *video, const input_driver_t **input, void **input_data)
{
if (driver.video_data)
return driver.video_data;
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)calloc(1, sizeof(xdk_d3d_video_t));
if (!d3d)
return NULL;
d3d->d3d_device = direct3d_create_ctx(D3D_SDK_VERSION);
if (!d3d->d3d_device)
{
free(d3d);
return NULL;
}
memset(&d3d->d3dpp, 0, sizeof(d3d->d3dpp));
// no letterboxing in 4:3 mode (if widescreen is
// unsupported
// Get video settings
memset(&d3d->video_mode, 0, sizeof(d3d->video_mode));
XGetVideoMode(&d3d->video_mode);
if(!d3d->video_mode.fIsWideScreen)
d3d->d3dpp.Flags |= D3DPRESENTFLAG_NO_LETTERBOX;
g_console.menus_hd_enable = d3d->video_mode.fIsHiDef;
d3d->d3dpp.BackBufferWidth = d3d->video_mode.fIsHiDef ? 1280 : 640;
d3d->d3dpp.BackBufferHeight = d3d->video_mode.fIsHiDef ? 720 : 480;
if(g_console.gamma_correction)
{
d3d->d3dpp.BackBufferFormat = g_console.color_format ? (D3DFORMAT)MAKESRGBFMT(D3DFMT_A8R8G8B8) : (D3DFORMAT)MAKESRGBFMT(D3DFMT_LIN_A1R5G5B5);
d3d->d3dpp.FrontBufferFormat = (D3DFORMAT)MAKESRGBFMT(D3DFMT_LE_X8R8G8B8);
}
else
{
d3d->d3dpp.BackBufferFormat = g_console.color_format ? D3DFMT_A8R8G8B8 : D3DFMT_LIN_A1R5G5B5;
d3d->d3dpp.FrontBufferFormat = D3DFMT_LE_X8R8G8B8;
}
d3d->d3dpp.MultiSampleQuality = 0;
d3d->d3dpp.PresentationInterval = video->vsync ? D3DPRESENT_INTERVAL_ONE : D3DPRESENT_INTERVAL_IMMEDIATE;
d3d->d3dpp.MultiSampleType = D3DMULTISAMPLE_NONE;
d3d->d3dpp.BackBufferCount = 2;
d3d->d3dpp.EnableAutoDepthStencil = FALSE;
d3d->d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
d3d->d3d_device->CreateDevice(0, D3DDEVTYPE_HAL, NULL, D3DCREATE_HARDWARE_VERTEXPROCESSING,
&d3d->d3dpp, &d3d->d3d_render_device);
#ifdef HAVE_HLSL
hlsl_init(g_settings.video.cg_shader_path, d3d->d3d_render_device);
#endif
d3d->d3d_render_device->CreateTexture(512, 512, 1, 0, D3DFMT_LIN_X1R5G5B5,
0, &d3d->lpTexture
, NULL
);
#ifdef HAVE_FBO
xdk_d3d_init_fbo(d3d);
#endif
D3DLOCKED_RECT d3dlr;
d3d->lpTexture->LockRect(0, &d3dlr, NULL, D3DLOCK_NOSYSLOCK);
memset(d3dlr.pBits, 0, 512 * d3dlr.Pitch);
d3d->lpTexture->UnlockRect(0);
d3d->last_width = 512;
d3d->last_height = 512;
d3d->d3d_render_device->CreateVertexBuffer(4 * sizeof(DrawVerticeFormats),
0, 0, 0, &d3d->vertex_buf, NULL);
static const DrawVerticeFormats init_verts[] = {
{ -1.0f, -1.0f, 0.0f, 1.0f },
{ 1.0f, -1.0f, 1.0f, 1.0f },
{ -1.0f, 1.0f, 0.0f, 0.0f },
{ 1.0f, 1.0f, 1.0f, 0.0f },
};
void *verts_ptr;
d3d->vertex_buf->Lock(0, 0, &verts_ptr, 0);
memcpy(verts_ptr, init_verts, sizeof(init_verts));
d3d->vertex_buf->Unlock();
static const D3DVERTEXELEMENT VertexElements[] =
{
{ 0, 0 * sizeof(float), D3DDECLTYPE_FLOAT2, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_POSITION, 0 },
{ 0, 2 * sizeof(float), D3DDECLTYPE_FLOAT2, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_TEXCOORD, 0 },
D3DDECL_END()
};
d3d->d3d_render_device->CreateVertexDeclaration(VertexElements, &d3d->v_decl);
d3d->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET,
0xff000000, 1.0f, 0);
d3d->d3d_render_device->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);
d3d->d3d_render_device->SetRenderState(D3DRS_ZENABLE, FALSE);
D3DVIEWPORT vp = {0};
vp.Width = d3d->video_mode.fIsHiDef ? 1280 : 640;
vp.Height = d3d->video_mode.fIsHiDef ? 720 : 480;
vp.MinZ = 0.0f;
vp.MaxZ = 1.0f;
d3d->d3d_render_device->SetViewport(&vp);
if(g_console.viewports.custom_vp.width == 0)
g_console.viewports.custom_vp.width = vp.Width;
if(g_console.viewports.custom_vp.height == 0)
g_console.viewports.custom_vp.height = vp.Height;
xdk_d3d_set_rotation(d3d, g_console.screen_orientation);
d3d->vsync = video->vsync;
return d3d;
}
static bool xdk_d3d_frame(void *data, const void *frame,
unsigned width, unsigned height, unsigned pitch, const char *msg)
{
if (!frame)
return true;
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)data;
#ifdef HAVE_FBO
D3DSurface* pRenderTarget0;
#endif
bool menu_enabled = g_console.menu_enable;
if (d3d->last_width != width || d3d->last_height != height)
{
D3DLOCKED_RECT d3dlr;
d3d->lpTexture->LockRect(0, &d3dlr, NULL, D3DLOCK_NOSYSLOCK);
memset(d3dlr.pBits, 0, 512 * d3dlr.Pitch);
d3d->lpTexture->UnlockRect(0);
float tex_w = width / 512.0f;
float tex_h = height / 512.0f;
DrawVerticeFormats verts[] = {
{ -1.0f, -1.0f, 0.0f, tex_h },
{ 1.0f, -1.0f, tex_w, tex_h },
{ -1.0f, 1.0f, 0.0f, 0.0f },
{ 1.0f, 1.0f, tex_w, 0.0f },
};
// Align texels and vertices (D3D9 quirk).
for (unsigned i = 0; i < 4; i++)
{
verts[i].x -= 0.5f / 512.0f;
verts[i].y += 0.5f / 512.0f;
}
void *verts_ptr;
d3d->vertex_buf->Lock(0, 0, &verts_ptr, 0);
memcpy(verts_ptr, verts, sizeof(verts));
d3d->vertex_buf->Unlock();
d3d->last_width = width;
d3d->last_height = height;
}
#ifdef HAVE_FBO
if (d3d->fbo_enabled)
{
d3d->d3d_render_device->GetRenderTarget(0, &pRenderTarget0);
d3d->d3d_render_device->SetRenderTarget(0, d3d->lpSurface);
}
#endif
if (d3d->should_resize)
xdk_d3d_set_viewport(false);
d3d->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET,
0xff000000, 1.0f, 0);
d3d->frame_count++;
d3d->d3d_render_device->SetTexture(0, d3d->lpTexture);
#ifdef HAVE_HLSL
hlsl_use(1);
#endif
#ifdef HAVE_FBO
if(d3d->fbo_enabled)
{
#ifdef HAVE_HLSL
hlsl_set_params(width, height, 512, 512, g_settings.video.fbo_scale_x * width,
g_settings.video.fbo_scale_y * height, d3d->frame_count);
#endif
D3DVIEWPORT vp = {0};
vp.Width = g_settings.video.fbo_scale_x * width;
vp.Height = g_settings.video.fbo_scale_y * height;
vp.X = 0;
vp.Y = 0;
vp.MinZ = 0.0f;
vp.MaxZ = 1.0f;
d3d->d3d_render_device->SetViewport(&vp);
}
else
#endif
{
#ifdef HAVE_HLSL
hlsl_set_params(width, height, 512, 512, d3d->d3dpp.BackBufferWidth,
d3d->d3dpp.BackBufferHeight, d3d->frame_count);
#endif
}
D3DLOCKED_RECT d3dlr;
d3d->lpTexture->LockRect(0, &d3dlr, NULL, D3DLOCK_NOSYSLOCK);
for (unsigned y = 0; y < height; y++)
{
const uint8_t *in = (const uint8_t*)frame + y * pitch;
uint8_t *out = (uint8_t*)d3dlr.pBits + y * d3dlr.Pitch;
memcpy(out, in, width * sizeof(uint16_t));
}
d3d->lpTexture->UnlockRect(0);
d3d->d3d_render_device->SetSamplerState(0, D3DSAMP_MINFILTER, g_settings.video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT);
d3d->d3d_render_device->SetSamplerState(0, D3DSAMP_MAGFILTER, g_settings.video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT);
d3d->d3d_render_device->SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_BORDER);
d3d->d3d_render_device->SetSamplerState(0, D3DSAMP_ADDRESSV, D3DTADDRESS_BORDER);
d3d->d3d_render_device->SetVertexDeclaration(d3d->v_decl);
d3d->d3d_render_device->SetStreamSource(0, d3d->vertex_buf,
0,
sizeof(DrawVerticeFormats));
d3d->d3d_render_device->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2);
#ifdef HAVE_FBO
if(d3d->fbo_enabled)
{
d3d->d3d_render_device->Resolve(D3DRESOLVE_RENDERTARGET0, NULL, d3d->lpTexture_ot,
NULL, 0, 0, NULL, 0, 0, NULL);
d3d->d3d_render_device->SetRenderTarget(0, pRenderTarget0);
pRenderTarget0->Release();
d3d->d3d_render_device->SetTexture(0, &d3d->lpTexture_ot_as16srgb);
#ifdef HAVE_HLSL
hlsl_use(2);
hlsl_set_params(g_settings.video.fbo_scale_x * width, g_settings.video.fbo_scale_y * height, g_settings.video.fbo_scale_x * 512, g_settings.video.fbo_scale_y * 512, d3d->d3dpp.BackBufferWidth,
d3d->d3dpp.BackBufferHeight, d3d->frame_count);
#endif
xdk_d3d_set_viewport(false);
d3d->d3d_render_device->SetSamplerState(0, D3DSAMP_MINFILTER, g_settings.video.second_pass_smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT);
d3d->d3d_render_device->SetSamplerState(0, D3DSAMP_MAGFILTER, g_settings.video.second_pass_smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT);
d3d->d3d_render_device->SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_BORDER);
d3d->d3d_render_device->SetSamplerState(0, D3DSAMP_ADDRESSV, D3DTADDRESS_BORDER);
d3d->d3d_render_device->SetVertexDeclaration(d3d->v_decl);
d3d->d3d_render_device->SetStreamSource(0, d3d->vertex_buf,
0,
sizeof(DrawVerticeFormats));
d3d->d3d_render_device->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2);
}
#endif
/* XBox 360 specific font code */
if (msg && !menu_enabled)
{
xdk360_console_format(msg);
xdk360_console_draw();
}
if(!d3d->block_swap)
gfx_ctx_swap_buffers();
return true;
}
static void xdk_d3d_set_nonblock_state(void *data, bool state)
{
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)data;
if(d3d->vsync)
{
RARCH_LOG("D3D Vsync => %s\n", state ? "off" : "on");
gfx_ctx_set_swap_interval(state ? 0 : 1, TRUE);
}
}
static bool xdk_d3d_alive(void *data)
{
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)data;
check_window(d3d);
return !d3d->quitting;
}
static bool xdk_d3d_focus(void *data)
{
(void)data;
return gfx_ctx_window_has_focus();
}
static void xdk_d3d_start(void)
{
video_info_t video_info = {0};
video_info.vsync = g_settings.video.vsync;
video_info.force_aspect = false;
video_info.fullscreen = true;
video_info.smooth = g_settings.video.smooth;
video_info.input_scale = 2;
driver.video_data = xdk_d3d_init(&video_info, NULL, NULL);
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
gfx_ctx_set_swap_interval(d3d->vsync ? 1 : 0, false);
HRESULT hr = d3d9_init_font("game:\\media\\Arial_12.xpr");
if(hr < 0)
{
RARCH_ERR("Couldn't create debug console.\n");
}
}
static void xdk_d3d_restart(void)
{
}
static void xdk_d3d_stop(void)
{
void *data = driver.video_data;
driver.video_data = NULL;
d3d9_deinit_font();
xdk_d3d_free(data);
}
static void xdk_d3d_apply_state_changes(void)
{
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
d3d->should_resize = true;
}
const video_driver_t video_xdk_d3d = {
xdk_d3d_init,
xdk_d3d_frame,
xdk_d3d_set_nonblock_state,
xdk_d3d_alive,
xdk_d3d_focus,
NULL,
xdk_d3d_free,
"xdk_d3d",
xdk_d3d_start,
xdk_d3d_stop,
xdk_d3d_restart,
xdk_d3d_apply_state_changes,
xdk_d3d_set_rotation,
};
+67
View File
@@ -0,0 +1,67 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
* Copyright (C) 2011-2012 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _XDK360_VIDEO_H
#define _XDK360_VIDEO_H
#include <stdint.h>
#include "../xdk/xdk_defines.h"
#define DFONT_MAX 4096
#define PRIM_FVF (D3DFVF_XYZRHW | D3DFVF_TEX1)
#define MIN_SCALING_FACTOR (1.0f)
#define MAX_SCALING_FACTOR (2.0f)
typedef struct
{
float x;
float y;
float z;
float rhw;
float u;
float v;
} primitive_t;
typedef struct DrawVerticeFormats
{
float x, y;
float u, v;
} DrawVerticeFormats;
typedef struct xdk_d3d_video
{
bool block_swap;
bool fbo_enabled;
bool should_resize;
bool quitting;
bool vsync;
unsigned frame_count;
unsigned last_width;
unsigned last_height;
LPDIRECT3D d3d_device;
LPDIRECT3DDEVICE d3d_render_device;
LPDIRECT3DVERTEXBUFFER vertex_buf;
LPDIRECT3DTEXTURE lpTexture;
D3DTexture lpTexture_ot_as16srgb;
LPDIRECT3DTEXTURE lpTexture_ot;
IDirect3DVertexDeclaration9* v_decl;
XVIDEO_MODE video_mode;
D3DPRESENT_PARAMETERS d3dpp;
LPDIRECT3DSURFACE lpSurface;
} xdk_d3d_video_t;
#endif
+116
View File
@@ -0,0 +1,116 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "../driver.h"
#include <stdlib.h>
#include <stdbool.h>
#include "../general.h"
#include <xenon_sound/sound.h>
#define SOUND_FREQUENCY 48000
#define MAX_BUFFER 2048
typedef struct
{
uint32_t buffer[2048];
bool nonblock;
} xenon_audio_t;
static void *xenon360_init(const char *device, unsigned rate, unsigned latency)
{
static bool inited = false;
if (!inited)
{
xenon_sound_init();
inited = true;
}
g_settings.audio.out_rate = SOUND_FREQUENCY;
return calloc(1, sizeof(xenon_audio_t));
}
static inline uint32_t bswap_32(uint32_t val)
{
return (val >> 24) | (val << 24) | ((val >> 8) & 0xff00) | ((val << 8) & 0xff0000);
}
static ssize_t xenon360_write(void *data, const void *buf, size_t size)
{
xenon_audio_t *xa = data;
size_t written = 0;
const uint32_t *in_buf = buf;
for (size_t i = 0; i < (size >> 2); i++)
xa->buffer[i] = bswap_32(in_buf[i]);
if (!xa->nonblock)
{
while (xenon_sound_get_unplayed() >= MAX_BUFFER)
{
// libxenon doesn't have proper synchronization primitives for this :(
udelay(50);
}
xenon_sound_submit(xa->buffer, size);
written = size;
}
else
{
if (xenon_sound_get_unplayed() < MAX_BUFFER)
{
xenon_sound_submit(xa->buffer, size);
written = size;
}
}
return written;
}
static bool xenon360_stop(void *data)
{
(void)data;
return true;
}
static void xenon360_set_nonblock_state(void *data, bool state)
{
xenon_audio_t *xa = data;
xa->nonblock = state;
}
static bool xenon360_start(void *data)
{
(void)data;
return true;
}
static void xenon360_free(void *data)
{
if (data)
free(data);
}
const audio_driver_t audio_xenon360 = {
.init = xenon360_init,
.write = xenon360_write,
.stop = xenon360_stop,
.start = xenon360_start,
.set_nonblock_state = xenon360_set_nonblock_state,
.free = xenon360_free,
.ident = "xenon360"
};
+146
View File
@@ -0,0 +1,146 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
* Copyright (C) 2011-2012 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "../driver.h"
#include "../libretro.h"
#include <input/input.h>
#include <usb/usbmain.h>
#define MAX_PADS
static struct controller_data_s pad[MAX_PADS];
static void xenon360_input_poll(void *data)
{
(void)data;
for (unsigned i = 0; i < MAX_PADS; i++)
{
usb_do_poll();
get_controller_data(&pad[i], i);
}
}
static int16_t xenon360_input_state(void *data, const struct retro_keybind **binds,
bool port, unsigned device,
unsigned index, unsigned id)
{
(void)data;
(void)binds;
(void)index;
if (device != SNES_DEVICE_JOYPAD)
return 0;
unsigned player = 0;
if (port == SNES_PORT_2 && device == SNES_DEVICE_MULTITAP)
player = index + 1;
else if (port == SNES_PORT_2)
player = 1;
bool button;
// Hardcoded binds.
switch (id)
{
case SNES_DEVICE_ID_JOYPAD_A:
button = pad[player].b;
break;
case SNES_DEVICE_ID_JOYPAD_B:
button = pad[player].a;
break;
case SNES_DEVICE_ID_JOYPAD_X:
button = pad[player].y;
break;
case SNES_DEVICE_ID_JOYPAD_Y:
button = pad[player].x;
break;
case SNES_DEVICE_ID_JOYPAD_LEFT:
button = pad[player].left;
break;
case SNES_DEVICE_ID_JOYPAD_RIGHT:
button = pad[player].right;
break;
case SNES_DEVICE_ID_JOYPAD_UP:
button = pad[player].up;
break;
case SNES_DEVICE_ID_JOYPAD_DOWN:
button = pad[player].down;
break;
case SNES_DEVICE_ID_JOYPAD_START:
button = pad[player].start;
break;
case SNES_DEVICE_ID_JOYPAD_SELECT:
button = pad[player].select;
break;
case SNES_DEVICE_ID_JOYPAD_L:
button = pad[player].lt;
break;
case SNES_DEVICE_ID_JOYPAD_R:
button = pad[player].rt;
break;
default:
button = false;
break;
}
return button;
}
static void xenon360_free_input(void *data)
{
(void)data;
}
static void* xenon360_input_init(void)
{
return (void*)-1;
}
static bool xenon360_key_pressed(void *data, int key)
{
(void)data;
return false;
}
static void xenon360_input_set_default_keybind_lut(unsigned device, unsigned port)
{
(void)device;
(void)port;
}
static void xenon360_input_set_analog_dpad_mapping(unsigned device, unsigned map_dpad_enum, unsigned controller_id)
{
(void)device;
(void)map_dpad_enum;
(void)controller_id;
}
const input_driver_t input_xenon360 = {
.init = xenon360_input_init,
.poll = xenon360_input_poll,
.input_state = xenon360_input_state,
.key_pressed = xenon360_key_pressed,
.free = xenon360_free_input,
.set_default_keybind_lut = xenon360_input_set_default_keybind_lut,
.set_analog_dpad_mapping = xenon360_input_set_analog_dpad_mapping,
.max_pads = MAX_PADS,
.ident = "xenon360",
};
+272
View File
@@ -0,0 +1,272 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <string.h>
#include <xenos/xe.h>
#include <xenos/xenos.h>
#include <xenos/edram.h>
#include <xenos/xenos.h>
#include "driver.h"
#include "general.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define XE_W 512
#define XE_H 512
#define UV_BOTTOM 0
#define UV_TOP 1
#define UV_LEFT 2
#define UV_RIGHT 3
// pixel shader
const unsigned int g_xps_PS[] =
{
0x102a1100, 0x000000b4, 0x0000003c, 0x00000000, 0x00000024, 0x00000000,
0x0000008c, 0x00000000, 0x00000000, 0x00000064, 0x0000001c, 0x00000057,
0xffff0300, 0x00000001, 0x0000001c, 0x00000000, 0x00000050, 0x00000030,
0x00030000, 0x00010000, 0x00000040, 0x00000000, 0x54657874, 0x75726553,
0x616d706c, 0x657200ab, 0x0004000c, 0x00010001, 0x00010000, 0x00000000,
0x70735f33, 0x5f300032, 0x2e302e32, 0x30333533, 0x2e3000ab, 0x00000000,
0x0000003c, 0x10000100, 0x00000008, 0x00000000, 0x00001842, 0x00010003,
0x00000001, 0x00003050, 0x0000f1a0, 0x00011002, 0x00001200, 0xc4000000,
0x00001003, 0x00002200, 0x00000000, 0x10081001, 0x1f1ff688, 0x00004000,
0xc80f8000, 0x00000000, 0xe2010100, 0x00000000, 0x00000000, 0x00000000
};
// vertex shader
const unsigned int g_xvs_VS[] =
{
0x102a1101, 0x0000009c, 0x00000078, 0x00000000, 0x00000024, 0x00000000,
0x00000058, 0x00000000, 0x00000000, 0x00000030, 0x0000001c, 0x00000023,
0xfffe0300, 0x00000000, 0x00000000, 0x00000000, 0x0000001c, 0x76735f33,
0x5f300032, 0x2e302e32, 0x30333533, 0x2e3000ab, 0x00000000, 0x00000078,
0x00110002, 0x00000000, 0x00000000, 0x00001842, 0x00000001, 0x00000003,
0x00000002, 0x00000290, 0x00100003, 0x0000a004, 0x00305005, 0x00003050,
0x0001f1a0, 0x00001007, 0x00001008, 0x70153003, 0x00001200, 0xc2000000,
0x00001006, 0x00001200, 0xc4000000, 0x00002007, 0x00002200, 0x00000000,
0x05f82000, 0x00000688, 0x00000000, 0x05f81000, 0x00000688, 0x00000000,
0x05f80000, 0x00000fc8, 0x00000000, 0xc80f803e, 0x00000000, 0xe2020200,
0xc8038000, 0x00b0b000, 0xe2000000, 0xc80f8001, 0x00000000, 0xe2010100,
0x00000000, 0x00000000, 0x00000000
};
typedef struct DrawVerticeFormats
{
float x, y, z, w;
unsigned int color;
float u, v;
} DrawVerticeFormats;
typedef struct xenon360_video xenon360_video_t;
static bool g_quitting;
typedef struct gl
{
unsigned char *screen;
struct XenosVertexBuffer *vb;
struct XenosDevice * gl_device;
struct XenosDevice real_device;
struct XenosShader * g_pVertexShader;
struct XenosShader * g_pPixelTexturedShader;
struct XenosSurface * g_pTexture;
unsigned frame_count;
} gl_t;
static float ScreenUv[4] = {0.f, 1.0f, 1.0f, 0.f};
static void xenon360_gfx_free(void *data)
{
gl_t *vid = data;
if (!vid)
return;
free(vid);
}
static void *xenon360_gfx_init(const video_info_t *video, const input_driver_t **input, void **input_data)
{
gl_t * gl = calloc(1, sizeof(gl_t));
if (!gl)
return NULL;
gl->gl_device = &gl->real_device;
Xe_Init(gl->gl_device);
Xe_SetRenderTarget(gl->gl_device, Xe_GetFramebufferSurface(gl->gl_device));
static const struct XenosVBFFormat vbf =
{
3,
{
{XE_USAGE_POSITION, 0, XE_TYPE_FLOAT4},
{XE_USAGE_COLOR, 0, XE_TYPE_UBYTE4},
{XE_USAGE_TEXCOORD, 0, XE_TYPE_FLOAT2},
}
};
gl->g_pPixelTexturedShader = Xe_LoadShaderFromMemory(gl->gl_device, (void*)g_xps_PS);
Xe_InstantiateShader(gl->gl_device, gl->g_pPixelTexturedShader, 0);
gl->g_pVertexShader = Xe_LoadShaderFromMemory(gl->gl_device, (void*)g_xvs_VS);
Xe_InstantiateShader(gl->gl_device, gl->g_pVertexShader, 0);
Xe_ShaderApplyVFetchPatches(gl->gl_device, gl->g_pVertexShader, 0, &vbf);
gl->g_pTexture = Xe_CreateTexture(gl->gl_device, XE_W, XE_H, 1, XE_FMT_5551 | XE_FMT_16BE, 0);
gl->g_pTexture->use_filtering = 1;
edram_init(gl->gl_device);
// enable filtering for now
float x = -1.0f;
float y = 1.0f;
float w = 4.0f;
float h = 4.0f;
gl->vb = Xe_CreateVertexBuffer(gl->gl_device, 3 * sizeof(DrawVerticeFormats));
DrawVerticeFormats *Rect = Xe_VB_Lock(gl->gl_device, gl->vb, 0, 3 * sizeof (DrawVerticeFormats), XE_LOCK_WRITE);
ScreenUv[UV_TOP] = ScreenUv[UV_TOP] * 2;
ScreenUv[UV_LEFT] = ScreenUv[UV_LEFT] * 2;
// top left
Rect[0].x = x;
Rect[0].y = y;
Rect[0].u = ScreenUv[UV_BOTTOM];
Rect[0].v = ScreenUv[UV_RIGHT];
Rect[0].color = 0;
// bottom left
Rect[1].x = x;
Rect[1].y = y - h;
Rect[1].u = ScreenUv[UV_BOTTOM];
Rect[1].v = ScreenUv[UV_LEFT];
Rect[1].color = 0;
// top right
Rect[2].x = x + w;
Rect[2].y = y;
Rect[2].u = ScreenUv[UV_TOP];
Rect[2].v = ScreenUv[UV_RIGHT];
Rect[2].color = 0;
Rect[3].x = x + w;
Rect[3].y = y;
Rect[3].u = ScreenUv[UV_TOP];
Rect[3].v = ScreenUv[UV_RIGHT];
Rect[3].color = 0;
int i = 0;
for (i = 0; i < 3; i++)
{
Rect[i].z = 0.0;
Rect[i].w = 1.0;
}
Xe_VB_Unlock(gl->gl_device, gl->vb);
Xe_SetClearColor(gl->gl_device, 0);
return gl;
}
static bool xenon360_gfx_frame(void *data, const void *frame, unsigned width, unsigned height, unsigned pitch, const char *msg)
{
gl_t *vid = data;
vid->frame_count++;
ScreenUv[UV_TOP] = ((float) (width) / (float) XE_W)*2;
ScreenUv[UV_LEFT] = ((float) (height) / (float) XE_H)*2;
DrawVerticeFormats * Rect = Xe_VB_Lock(vid->gl_device, vid->vb, 0, 3 * sizeof(DrawVerticeFormats), XE_LOCK_WRITE);
// bottom left
Rect[1].v = ScreenUv[UV_LEFT];
Rect[2].u = ScreenUv[UV_TOP];
Xe_VB_Unlock(vid->gl_device, vid->vb);
// Refresh texture cache
uint16_t *dst = Xe_Surface_LockRect(vid->gl_device, vid->g_pTexture, 0, 0, 0, 0, XE_LOCK_WRITE);
const uint16_t *src = frame;
unsigned stride_in = pitch >>1;
unsigned stride_out = vid->g_pTexture->wpitch >> 1;
unsigned copy_size =width << 1;
for (unsigned y = 0; y < height; y++, dst += stride_out, src += stride_in)
memcpy(dst, src, copy_size);
Xe_Surface_Unlock(vid->gl_device, vid->g_pTexture);
// Reset states
Xe_InvalidateState(vid->gl_device);
Xe_SetClearColor(vid->gl_device, 0);
// Select stream
Xe_SetTexture(vid->gl_device, 0, vid->g_pTexture);
Xe_SetCullMode(vid->gl_device, XE_CULL_NONE);
Xe_SetStreamSource(vid->gl_device, 0, vid->vb, 0, sizeof(DrawVerticeFormats));
// Select shaders
Xe_SetShader(vid->gl_device, SHADER_TYPE_PIXEL, vid->g_pPixelTexturedShader, 0);
Xe_SetShader(vid->gl_device, SHADER_TYPE_VERTEX, vid->g_pVertexShader, 0);
// Draw
Xe_DrawPrimitive(vid->gl_device, XE_PRIMTYPE_TRIANGLELIST, 0, 1);
// Resolve
Xe_Resolve(vid->gl_device);
Xe_Sync(vid->gl_device);
return true;
}
static void xenon360_gfx_set_nonblock_state(void *data, bool state)
{
(void)data;
(void)state;
}
static bool xenon360_gfx_alive(void *data)
{
(void)data;
return !g_quitting;
}
static bool xenon360_gfx_focus(void *data)
{
(void)data;
return true;
}
const video_driver_t video_xenon360 = {
.init = xenon360_gfx_init,
.frame = xenon360_gfx_frame,
.alive = xenon360_gfx_alive,
.set_nonblock_state = xenon360_gfx_set_nonblock_state,
.focus = xenon360_gfx_focus,
.free = xenon360_gfx_free,
.ident = "xenon360"
};
+22
View File
@@ -1,8 +1,30 @@
Hans-Kristian Arntzen - <[email protected]>
- Main code, maintainer
- Gamecube/Wii libogc port
Devin J. Pohly - <[email protected]>
- Joypad axis support
Chris Moeller - <[email protected]>
- CoreAudio audio driver
Daniel De Matteis - <[email protected]>
- PlayStation 3 port
- XBox 360 XDK port
- Libxenon port
- XBox 1 port
- Gamecube/Wii libogc port
David Reichelt - <[email protected]>
- XBox 1 port
tukuyomi - <[email protected]>
- Cleanups in quickbuild
Michael Lelli - <[email protected]>
- Gamecube/Wii libogc port
- Raspberry Pi video driver
- Linux Raw keyboard input driver
Darren Alton -
- OpenPandora port
+125 -34
View File
@@ -1,13 +1,37 @@
include config.mk
TARGET = ssnes tools/ssnes-joyconfig
TARGET = retroarch tools/retroarch-joyconfig
OBJ = retroarch.o \
file.o \
file_path.o \
hash.o \
driver.o \
settings.o \
dynamic.o \
message.o \
rewind.o \
gfx/gfx_common.o \
patch.o \
compat/compat.o \
screenshot.o \
audio/null.o \
input/null.o \
gfx/null.o
JOYCONFIG_OBJ := tools/retroarch-joyconfig.o \
conf/config_file.o \
compat/compat.o
OBJ = ssnes.o file.o driver.o settings.o dynamic.o message.o rewind.o movie.o autosave.o gfx/gfx_common.o ups.o bps.o strl.o screenshot.o
JOYCONFIG_OBJ = tools/ssnes-joyconfig.o conf/config_file.o strl.o
HEADERS = $(wildcard */*.h) $(wildcard *.h)
LIBS = -lm
DEFINES = -DHAVE_CONFIG_H
DEFINES = -DHAVE_CONFIG_H -DHAVE_SCREENSHOTS
ifeq ($(REENTRANT_TEST), 1)
DEFINES += -Dmain=retroarch_main
OBJ += console/test.o
endif
ifneq ($(findstring Darwin,$(OS)),)
OSX := 1
@@ -23,21 +47,33 @@ ifneq ($(findstring BSD,$(OS)),)
DYLIB_LIB = -lc
endif
ifeq ($(HAVE_SRC), 1)
LIBS += $(SRC_LIBS)
DEFINES += $(SRC_CFLAGS)
else
OBJ += audio/hermite.o
ifneq ($(findstring Linux,$(OS)),)
LIBS += -lrt
DEFINES += -DIS_LINUX
OBJ += input/linuxraw_input.o
endif
ifeq ($(HAVE_THREADS), 1)
OBJ += autosave.o thread.o
LIBS += -lpthread
endif
ifeq ($(HAVE_CONFIGFILE), 1)
OBJ += conf/config_file.o
endif
ifeq ($(HAVE_BSV_MOVIE), 1)
OBJ += movie.o
endif
ifeq ($(HAVE_NETPLAY), 1)
OBJ += netplay.o
endif
ifeq ($(HAVE_COMMAND), 1)
OBJ += command.o
endif
ifeq ($(HAVE_RSOUND), 1)
OBJ += audio/rsound.o
LIBS += $(RSOUND_LIBS)
@@ -89,20 +125,34 @@ ifeq ($(HAVE_COREAUDIO), 1)
endif
ifeq ($(HAVE_SDL), 1)
OBJ += gfx/sdl.o gfx/gl.o input/sdl.o audio/sdl.o fifo_buffer.o
OBJ += gfx/sdl_gfx.o gfx/context/sdl_ctx.o input/sdl_input.o audio/sdl_audio.o fifo_buffer.o
DEFINES += $(SDL_CFLAGS) $(BSD_LOCAL_INC)
LIBS += $(SDL_LIBS)
ifeq ($(HAVE_X11), 1)
LIBS += $(X11_LIBS)
DEFINES += $(X11_CFLAGS)
endif
ifeq ($(HAVE_OPENGL), 1)
OBJ += gfx/gl.o gfx/fonts/freetype.o gfx/math/matrix.o
ifeq ($(OSX),1)
LIBS += -framework OpenGL
else
LIBS += -lGL
endif
endif
endif
ifeq ($(HAVE_RPI), 1)
OBJ += gfx/rpi.o
LIBS += -lOpenVG -lGLESv2 -lEGL -lbcm_host -lvcos -lvchiq_arm
endif
ifeq ($(HAVE_XVIDEO), 1)
OBJ += gfx/xvideo.o input/x11_input.o
LIBS += $(XVIDEO_LIBS)
DEFINES += $(XVIDEO_CFLAGS)
LIBS += $(XVIDEO_LIBS) $(X11_LIBS) $(XEXT_LIBS)
DEFINES += $(XVIDEO_CFLAGS) $(X11_CFLAGS) $(XEXT_CFLAGS)
endif
ifeq ($(HAVE_CG), 1)
@@ -111,18 +161,28 @@ ifeq ($(HAVE_CG), 1)
endif
ifeq ($(HAVE_XML), 1)
OBJ += gfx/shader_glsl.o gfx/image.o gfx/snes_state.o sha256.o cheats.o
OBJ += cheats.o
LIBS += $(XML_LIBS)
DEFINES += $(XML_CFLAGS)
ifeq ($(HAVE_OPENGL), 1)
OBJ += gfx/shader_glsl.o
endif
endif
ifeq ($(HAVE_XML), 1)
OBJ += gfx/state_tracker.o gfx/image.o
else ifeq ($(HAVE_CG), 1)
OBJ += gfx/state_tracker.o gfx/image.o
endif
ifeq ($(HAVE_DYLIB), 1)
OBJ += gfx/ext.o audio/ext.o
OBJ += gfx/ext_gfx.o audio/ext_audio.o
LIBS += $(DYLIB_LIB)
endif
ifeq ($(HAVE_FREETYPE), 1)
OBJ += gfx/fonts.o
OBJ += gfx/fonts/fonts.o
LIBS += $(FREETYPE_LIBS)
DEFINES += $(FREETYPE_CFLAGS)
endif
@@ -132,6 +192,11 @@ ifeq ($(HAVE_SDL_IMAGE), 1)
DEFINES += $(SDL_IMAGE_CFLAGS)
endif
ifeq ($(HAVE_LIBPNG), 1)
LIBS += $(LIBPNG_LIBS)
DEFINES += $(LIBPNG_CFLAGS)
endif
ifeq ($(HAVE_FFMPEG), 1)
OBJ += record/ffemu.o
LIBS += $(AVCODEC_LIBS) $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(SWSCALE_LIBS)
@@ -141,11 +206,7 @@ endif
ifeq ($(HAVE_DYNAMIC), 1)
LIBS += $(DYLIB_LIB)
else
LIBS += $(libsnes)
endif
ifeq ($(HAVE_STRL), 1)
DEFINES += -DHAVE_STRL
LIBS += $(libretro)
endif
ifeq ($(HAVE_PYTHON), 1)
@@ -154,16 +215,39 @@ ifeq ($(HAVE_PYTHON), 1)
OBJ += gfx/py_state/py_state.o
endif
ifeq ($(HAVE_SINC), 1)
OBJ += audio/sinc.o
else
OBJ += audio/hermite.o
endif
ifneq ($(HAVE_FIXED_POINT), 1)
OBJ += audio/utils.o
endif
ifneq ($(V),1)
Q := @
endif
CFLAGS += -Wall -O3 -g -I. -pedantic
OPTIMIZE_FLAG = -O3
ifeq ($(DEBUG), 1)
OPTIMIZE_FLAG = -O0
endif
CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) -g -I. -pedantic
ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else
ifneq ($(findstring icc,$(CC)),)
CFLAGS += -std=c99
CFLAGS += -std=c99 -D_GNU_SOURCE
else
CFLAGS += -std=gnu99
endif
endif
ifeq ($(NOUNUSED), yes)
CFLAGS += -Wno-unused-result
endif
all: $(TARGET) config.mk
@@ -171,12 +255,16 @@ config.mk: configure qb/*
@echo "config.mk is outdated or non-existing. Run ./configure again."
@exit 1
ssnes: $(OBJ)
retroarch: $(OBJ)
$(Q)$(CXX) -o $@ $(OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
@$(if $(Q), $(shell echo echo LD $@),)
tools/ssnes-joyconfig: $(JOYCONFIG_OBJ)
tools/retroarch-joyconfig: $(JOYCONFIG_OBJ)
ifeq ($(CXX_BUILD), 1)
$(Q)$(CXX) -o $@ $(JOYCONFIG_OBJ) $(SDL_LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
else
$(Q)$(CC) -o $@ $(JOYCONFIG_OBJ) $(SDL_LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
endif
@$(if $(Q), $(shell echo echo LD $@),)
%.o: %.c config.h config.mk $(HEADERS)
@@ -188,25 +276,28 @@ install: $(TARGET)
mkdir -p $(DESTDIR)/etc 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 2>/dev/null || /bin/true
install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
install -m644 ssnes.cfg $(DESTDIR)/etc/ssnes.cfg
install -m644 docs/ssnes.1 $(DESTDIR)$(PREFIX)/share/man/man1
install -m644 docs/ssnes-joyconfig.1 $(DESTDIR)$(PREFIX)/share/man/man1
install -m755 ssnes-zip $(DESTDIR)$(PREFIX)/bin
install -m644 retroarch.cfg $(DESTDIR)/etc/retroarch.cfg
install -m644 docs/retroarch.1 $(DESTDIR)$(PREFIX)/share/man/man1
install -m644 docs/retroarch-joyconfig.1 $(DESTDIR)$(PREFIX)/share/man/man1
install -m755 retroarch-zip $(DESTDIR)$(PREFIX)/bin
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/ssnes
rm -f $(DESTDIR)$(PREFIX)/bin/ssnes-joyconfig
rm -f $(DESTDIR)$(PREFIX)/bin/ssnes-zip
rm -f $(DESTDIR)/etc/ssnes.cfg
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/ssnes.1
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/ssnes-joyconfig.1
rm -f $(DESTDIR)$(PREFIX)/bin/retroarch
rm -f $(DESTDIR)$(PREFIX)/bin/retroarch-joyconfig
rm -f $(DESTDIR)$(PREFIX)/bin/retroarch-zip
rm -f $(DESTDIR)/etc/retroarch.cfg
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/retroarch.1
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/retroarch-joyconfig.1
clean:
rm -f *.o
rm -f audio/*.o
rm -f conf/*.o
rm -f gfx/*.o
rm -f gfx/fonts/*.o
rm -f gfx/context/*.o
rm -f gfx/py_state/*.o
rm -f compat/*.o
rm -f record/*.o
rm -f input/*.o
rm -f tools/*.o
+50
View File
@@ -0,0 +1,50 @@
# Before using this Makefile, be sure to do:
# $ source /usr/local/angstrom/arm/environment-setup
# $ setprj retroarch
PNDDIR=./pandora
BINDIR=$(PNDDIR)/bin
all: $(BINDIR)/retroarch
mkdir -p $(PNDDIR)/lib
@echo "Put libretro-*.so files in $(PNDDIR)/lib/ before making pnd!"
pnd: retroarch.pnd
install: all $(BINDIR)/retroarch-joyconfig $(PNDDIR)/readme.html
retroarch:
./configure --prefix=$PND_BASEDIR/$PRJ --disable-ffmpeg --disable-cg --disable-xml --disable-python --disable-libpng --disable-pulse --disable-opengl
make -f Makefile
$(BINDIR)/retroarch: retroarch
mkdir -p $(BINDIR)
cp retroarch $(BINDIR)/retroarch
$(BINDIR)/retroarch-joyconfig: tools/retroarch-joyconfig
mkdir -p $(BINDIR)
cp tools/retroarch-joyconfig $(BINDIR)/retroarch-joyconfig
$(PNDDIR)/readme.html: README.md
markdown README.md > $(PNDDIR)/readme.html
retroarch.pnd: install
pnd_make -c -p retroarch.pnd -d $(PNDDIR)/ -x $(PNDDIR)/PXML.xml -i $(PNDDIR)/icon.png
clean:
rm -f *.o
rm -f audio/*.o
rm -f conf/*.o
rm -f gfx/*.o
rm -f gfx/fonts/*.o
rm -f gfx/context/*.o
rm -f gfx/py_state/*.o
rm -f compat/*.o
rm -f record/*.o
rm -f input/*.o
rm -f tools/*.o
rm -f $(BINDIR)/retroarch
rm -f $(BINDIR)/retroarch-joyconfig
rm -f $(PNDDIR)/readme.html
rm -f retroarch
+173
View File
@@ -0,0 +1,173 @@
RARCH_VERSION = "0.9.7"
#which compiler to build with - GCC or SNC
#set to GCC for debug builds for use with debugger
CELL_BUILD_TOOLS = SNC
CELL_GPU_TYPE = RSX
CELL_PSGL_VERSION = ultra-opt
DEBUG = 0
DOWNLOAD_SHADERS = 1
STRIPPING_ENABLE = 0
HAVE_RGL = 1
HAVE_LOGGER = 0
CONTENT_ID_FULL = UP0001-SSNE10000_00-0000000000000001
CONTENT_ID = SSNE10000
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
PPU_TARGET = retroarch_ps3.elf
SALAMANDER_TARGET = retroarch-salamander_ps3.elf
EBOOT_PATH = ps3/pkg/USRDIR/EBOOT.BIN
CORE_PATH = ps3/pkg/USRDIR/cores/CORE.SELF
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
INCDIRS = -I. -Ips3 -Icommon
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
PKG_SCRIPT = ps3/ps3py/pkg.py
ifeq ($(shell uname), Linux)
PKG_FINALIZE = package_finalize
MAKE_SELF_WC = make_self_wc
MAKE_SELF = make_self_npdrm
PYTHON2 = python2
GIT = git
else
PKG_FINALIZE = package_finalize.exe
MAKE_SELF_WC = make_self_wc.exe
MAKE_SELF = make_self_npdrm.exe
PYTHON2 = python2.exe
GIT = git.exe
endif
PPU_SRCS = ps3/frontend/main.c
ifeq ($(HAVE_RGL), 1)
DEFINES = -DHAVE_RGL
GL_LIBS := -L. -lrgl_ps3
else
GL_LIBS := -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt -lPSGL -lPSGLcgc
endif
ifeq ($(CELL_BUILD_TOOLS), SNC)
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
else
ifneq($(system_platform), win)
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
PPU_CCLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
endif
PPU_LDLIBS = -ldbgfont $(GL_LIBS) -lretroarch_ps3 -lretro_ps3 -lcgc -lgcm_cmd -lgcm_sys_stub -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lsysutil_np_stub -lpngdec_stub -ljpgdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lnetctl_stub -lpthread
DEFINES += -DHAVE_DEFAULT_RETROPAD_INPUT -DHAVE_THREAD -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OPENGL_TEXREF -DHAVE_HEADSET -DHAVE_VID_CONTEXT -DHAVE_OPENGLES -DHAVE_CG -DHAVE_CG_MENU -DHAVE_FILEBROWSER -DHAVE_HDD_CACHE_PARTITION -DHAVE_FBO -DHAVE_RARCH_MAIN_WRAP -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RGL -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
else
PPU_OPTIMIZE_LV := -O3 -g
endif
ifeq ($(HAVE_LOGGER), 1)
DEFINES += -DHAVE_LOGGER
PPU_SRCS += console/logger/logger.c
INCDIRS += -Iconsole/logger
endif
PPU_CFLAGS := $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
EXIST_EBOOT_WILDCARD := $(wildcard $(EBOOT_PATH))
EXIST_CORE_WILDCARD := $(wildcard $(CORE_PATH))
EBOOT_EXISTS = 1
CORE_EXISTS = 1
ifneq ($(strip $(EXIST_EBOOT_WILDCARD)),)
EBOOT_EXISTS = 0
endif
ifneq ($(strip $(EXIST_CORE_WILDCARD)),)
CORE_EXISTS = 0
endif
include $(CELL_MK_DIR)/sdk.target.mk
MAKE_FSELF = $(CELL_SDK)/host-win32/bin/make_fself.exe
MAKE_FSELF_NPDRM = $(CELL_SDK)/host-win32/bin/make_fself_npdrm.exe
MAKE_PACKAGE_NPDRM = $(CELL_SDK)/host-win32/bin/make_package_npdrm.exe
.PHONY: create-selfs-npdrm create-npdrm-core create-core create-npdrm-salamander create-npdrm-salamander create-shaders clean-selfs
create-npdrm-core:
$(MAKE_FSELF_NPDRM) $(PPU_TARGET) $(CORE_PATH)
create-core:
$(MAKE_SELF_WC) $(PPU_TARGET) $(CORE_PATH)
create-npdrm-salamander:
$(MAKE_FSELF_NPDRM) $(SALAMANDER_TARGET) $(EBOOT_PATH)
create-salamander:
$(MAKE_SELF) $(SALAMANDER_TARGET) $(EBOOT_PATH) $(CONTENT_ID_FULL)
copy-media-files:
@cp console/rmenu/images/main-menu_1080p.png ps3/pkg/USRDIR/cores/borders/Menu/main-menu.png
create-shaders:
ifeq ($(DOWNLOAD_SHADERS),1)
$(RM) -rf ps3/pkg/USRDIR/cores/shaders
$(GIT) clone git://github.com/libretro/common-shaders.git ps3/pkg/USRDIR/cores/shaders
endif
pkg: $(PPU_TARGET) copy-media-files create-shaders create-npdrm-salamander create-npdrm-core
$(MAKE_PACKAGE_NPDRM) ps3/pkg/package.conf ps3/pkg
pkg-signed: $(PPU_TARGET) copy-media-files create-shaders create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) ps3/pkg/ retroarch-ps3-cfw-$(RARCH_VERSION).pkg
pkg-signed-standalone: $(PPU_TARGET) copy-media-files create-shaders create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) ps3/pkg/ retroarch-ps3-cfw-$(RARCH_VERSION).pkg
pkg-signed-cfw: $(PPU_TARGET) copy-media-files create-shaders create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) ps3/pkg/ retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
pkg-signed-cfw-standalone: $(PPU_TARGET) copy-media-files create-shaders create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) ps3/pkg/ retroarch-ps3-cfw-$(RARCH_VERSION).pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
clean-selfs:
ifeq ($(EBOOT_EXISTS),1)
@echo "WARNING: Couldn't find file to delete: [$(EBOOT_PATH)], skipping this step."
else
rm $(EBOOT_PATH)
endif
ifeq ($(CORE_EXISTS),1)
@echo "WARNING: Couldn't find file to delete: [$(CORE_PATH)], skipping this step."
else
rm $(CORE_PATH)
endif
+75
View File
@@ -0,0 +1,75 @@
RARCH_VERSION = "0.9.7"
#which compiler to build with - GCC or SNC
#set to GCC for debug builds for use with debugger
CELL_BUILD_TOOLS = SNC
CELL_GPU_TYPE = RSX
CELL_PSGL_VERSION = ultra-opt
DEBUG = 0
HAVE_RGL = 1
HAVE_LOGGER = 0
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
PPU_LIB_TARGET = libretroarch_ps3.a
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
INCDIRS = -I. -Ips3 -Icommon
PPU_SRCS = console/griffin/griffin.c console/rzlib/rzlib.c
ifeq ($(HAVE_RGL), 1)
DEFINES = -DHAVE_RGL
GL_LIBS := -lrgl_ps3
else
GL_LIBS := -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt -lPSGL -lPSGLcgc
endif
ifeq ($(CELL_BUILD_TOOLS), SNC)
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
SNC_PPU_AR = $(CELL_SDK)/host-win32/sn/bin/ps3snarl.exe
else
ifneq($(system_platform), win)
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
PPU_AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
endif
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
DEFINES += -DHAVE_DEFAULT_RETROPAD_INPUT -DHAVE_THREAD -DRARCH_CONSOLE -DHAVE_RMENU -DHAVE_OPENGL -DHAVE_OPENGL_TEXREF -DHAVE_HEADSET -DHAVE_VID_CONTEXT -DHAVE_OPENGLES11 -DHAVE_CG -DHAVE_CG_MENU -DHAVE_FILEBROWSER -DHAVE_HDD_CACHE_PARTITION -DHAVE_FBO -DHAVE_RARCH_MAIN_WRAP -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RGL -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
else
PPU_OPTIMIZE_LV := -O3 -g
endif
PPU_CFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
PPU_CXXFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
ifeq ($(HAVE_LOGGER), 1)
PPU_CFLAGS += -DHAVE_LOGGER
PPU_SRCS += console/logger/logger.c
endif
include $(CELL_MK_DIR)/sdk.target.mk
+53
View File
@@ -0,0 +1,53 @@
#which compiler to build with - GCC or SNC
#set to GCC for debug builds for use with debugger
CELL_BUILD_TOOLS = SNC
CELL_GPU_TYPE = RSX
DEBUG = 0
STRIPPING_ENABLE = 0
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
PPU_LIB_TARGET = librgl_ps3.a
LDDIRS = -L.
INCDIRS = -I.
PPU_SRCS = console/rgl/ps3/device_ctx.cpp \
console/rgl/ps3/rgl.cpp \
console/rgl/ps3/cgbio.cpp \
console/rgl/ps3/cgnv2rt.cpp
ifeq ($(CELL_BUILD_TOOLS), SNC)
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
SNC_PPU_AR = $(CELL_SDK)/host-win32/sn/bin/ps3snarl.exe
else
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
PPU_AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
endif
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
PPU_LDLIBS = -lio_stub
DEFINES += -D__CELLOS_LV2__
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
else
PPU_OPTIMIZE_LV := -O3
endif
PPU_CFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
PPU_CXXFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
include $(CELL_MK_DIR)/sdk.target.mk
+49
View File
@@ -0,0 +1,49 @@
CELL_BUILD_TOOLS = SNC
CELL_SDK ?= /usr/local/cell
HAVE_LOGGER = 0
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
STRIP = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-strip.exe
PPU_CFLAGS += -I. -D__CELLOS_LV2__ -DIS_SALAMANDER
PPU_SRCS = ps3/salamander/main.c console/rarch_console_exec.c console/rarch_console_libretro_mgmt.c file_path.c compat/compat.c conf/config_file.c
ifeq ($(HAVE_LOGGER), 1)
PPU_CFLAGS += -DHAVE_LOGGER -Iconsole/logger
PPU_SRCS += console/logger/logger.c
endif
PPU_TARGET = retroarch-salamander_ps3.elf
ifeq ($(CELL_BUILD_TOOLS),SNC)
PPU_CFLAGS += -Xbranchless=1 -Xfastmath=1 -Xassumecorrectsign=1 -Xassumecorrectalignment=1 -Xunroll=1 -Xautovecreg=1
PPU_CXXFLAGS += -Xbranchless=1 -Xfastmath=1 -Xassumecorrectsign=1 -Xassumecorrectalignment=1 -Xunroll=1 -Xautovecreg=1
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
else
ifneq($(system_platform), win)
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
endif
PPU_LDLIBS += -lm -lnet_stub -lnetctl_stub -lio_stub -lsysmodule_stub -lsysutil_stub -lsysutil_game_stub -lfs_stub -lsysutil_np_stub
PPU_OPTIMIZE_LV := -O2
MAKE_FSELF = $(CELL_SDK)/host-win32/bin/make_fself.exe
include $(CELL_MK_DIR)/sdk.target.mk
+70
View File
@@ -0,0 +1,70 @@
###
##
# Makefile for RetroArch PSL1GHT.
##
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CC = $(PS3DEV)/ppu/bin/ppu-gcc
CXX = $(PS3DEV)/ppu/bin/ppu-g++
LD = $(PS3DEV)/ppu/bin/ppu-ld
ELF_TARGET := retroarch_psl1ght.elf
INCLUDE := -I. -I$(PS3DEV)/ppu/include
LIBDIRS := -L$(PS3DEV)/ppu/lib -L$(PS3DEV)/portlibs/ppu/lib -L.
MACHDEP := -D__CELLOS_LV2__ -D__PSL1GHT__
CFLAGS += -Wall $(MACHDEP) $(INCLUDE)
LDFLAGS := $(MACHDEP)
LIBS := -lretro_psl1ght -laudio -lEGL -lGL -lio -lm -ljpgdec -lpngdec -lsysutil
OBJ = console/griffin/griffin.o console/rzlib/rzlib.o
OBJ += console/rgl/ps3/device_ctx.o console/rgl/ps3/rgl.o console/rgl/ps3/cgbio.o console/rgl/ps3/cgnv2rt.o
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
OBJ += console/logger/logger.o
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
RSXGL_DEFINES = -D__RSX__ -DGL3_PROTOTYPES
SHARED_FLAGS := -DHAVE_FILEBROWSER $(RSXGL_DEFINES) -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.7\" -Dmain=rarch_main -Wno-char-subscripts
CFLAGS += -std=gnu99 $(SHARED_FLAGS)
CXXFLAGS += $(SHARED_FLAGS)
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
CFLAGS += -O3
CXXFLAGS += -03
endif
all: $(ELF_TARGET)
$(ELF_TARGET): $(OBJ)
$(CC) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
clean:
rm -f $(ELF_TARGET)
rm -f $(OBJ)
.PHONY: clean
+85
View File
@@ -0,0 +1,85 @@
###
##
# Makefile for RetroArch Wii.
##
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
LD = $(DEVKITPPC)/bin/powerpc-eabi-ld$(EXE_EXT)
ELF2DOL = $(DEVKITPPC)/bin/elf2dol$(EXE_EXT)
DOL_TARGET := retroarch_gx.dol
ELF_TARGET := retroarch_gx.elf
INCLUDE := -I. -I$(DEVKITPRO)/libogc/include
LIBDIRS := -L$(DEVKITPRO)/libogc/lib/wii -L.
MACHDEP := -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(INCLUDE)
LDFLAGS := $(MACHDEP) -Wl,-Map,$(notdir $(ELF_TARGET)).map -T gx/ld/rvl.ld
LIBS := -lfat -lretro_wii -lwiiuse -logc -lbte
OBJ = console/griffin/griffin.o console/font.bmpobj console/rzlib/rzlib.o
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
CFLAGS += -Iconsole/logger
OBJ += console/logger/logger.o
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
CFLAGS += -Iconsole/logger
endif
CFLAGS += -std=gnu99 -DHAVE_DEFAULT_RETROPAD_INPUT -DHAVE_RGUI -DHAVE_THREAD -DRARCH_CONSOLE -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RARCH_EXEC -DHAVE_CONFIGFILE=1 -DGEKKO -DHW_RVL -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_GRIFFIN=1 -DHAVE_SCREENSHOTS -DPACKAGE_VERSION=\"0.9.7\" -Dmain=rarch_main -Wno-char-subscripts
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
CFLAGS += -O3
endif
all: $(DOL_TARGET)
%.dol: %.elf
$(ELF2DOL) $< $@
$(ELF_TARGET): $(OBJ)
$(CXX) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
%.bmpobj: %.bmp
$(LD) -r -b binary -o $@ $<
pkg: all
cp -r $(DOL_TARGET) gx/pkg/CORE.dol
clean:
rm -f $(DOL_TARGET)
rm -f $(ELF_TARGET)
rm -f $(OBJ)
.PHONY: clean
+85
View File
@@ -0,0 +1,85 @@
###
##
# Makefile for RetroArch Wii.
##
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
LD = $(DEVKITPPC)/bin/powerpc-eabi-ld$(EXE_EXT)
ELF2DOL = $(DEVKITPPC)/bin/elf2dol$(EXE_EXT)
DOL_TARGET := retroarch-salamander_gx.dol
ELF_TARGET := retroarch-salamander_gx.elf
INCLUDE := -I. -I$(DEVKITPRO)/libogc/include
LIBDIRS := -L$(DEVKITPRO)/libogc/lib/wii -L.
MACHDEP := -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(INCLUDE)
LDFLAGS := $(MACHDEP) -Wl,-Map,$(notdir $(ELF_TARGET)).map,--section-start,.init=0x81200000
LIBS := -lfat -lretro_wii -lwiiuse -logc -lbte
OBJ = gx/salamander/main.o console/rarch_console_exec.o console/rarch_console_libretro_mgmt.o file_path.o compat/compat.o conf/config_file.o console/exec/dol.o
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
CFLAGS += -Iconsole/logger
OBJ += console/logger/logger.o
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
CFLAGS += -Iconsole/logger
endif
CFLAGS += -std=gnu99 -DHAVE_DEFAULT_RETROPAD_INPUT -DIS_SALAMANDER -DRARCH_CONSOLE -DHAVE_RARCH_EXEC -DHAVE_CONFIGFILE=1 -DGEKKO -DHW_RVL -DPACKAGE_VERSION=\"0.9.7\" -Wno-char-subscripts
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
CFLAGS += -O3
endif
all: $(DOL_TARGET)
%.dol: %.elf
$(ELF2DOL) $< $@
$(ELF_TARGET): $(OBJ)
$(CXX) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
%.bmpobj: %.bmp
$(LD) -r -b binary -o $@ $<
pkg: all
cp -r $(DOL_TARGET) gx/pkg/boot.dol
clean:
rm -f $(DOL_TARGET)
rm -f $(ELF_TARGET)
rm -f $(OBJ)
.PHONY: clean
+104 -31
View File
@@ -1,7 +1,29 @@
TARGET = ssnes.exe
JTARGET = ssnes-joyconfig.exe
OBJ = ssnes.o file.o driver.o conf/config_file.o settings.o dynamic.o message.o rewind.o movie.o autosave.o gfx/gfx_common.o bps.o ups.o strl.o screenshot.o audio/hermite.o
JOBJ = conf/config_file.o tools/main-stub.o tools/ssnes-joyconfig.o strl.o
TARGET = retroarch.exe
JTARGET = retroarch-joyconfig.exe
OBJ = retroarch.o \
file.o \
file_path.o \
driver.o \
conf/config_file.o \
settings.o \
hash.o \
dynamic.o \
message.o \
rewind.o \
movie.o \
gfx/gfx_common.o \
patch.o \
compat/compat.o \
screenshot.o \
audio/utils.o \
audio/null.o \
input/null.o \
gfx/null.o
JOBJ := conf/config_file.o \
tools/retroarch-joyconfig.o \
compat/compat.o
CC = gcc
CXX = g++
@@ -10,8 +32,12 @@ HAVE_DINPUT = 1
HAVE_XAUDIO = 1
HAVE_DSOUND = 1
HAVE_SDL = 1
HAVE_OPENGL = 1
HAVE_DYLIB = 1
HAVE_NETPLAY = 1
HAVE_STDIN_CMD = 1
HAVE_THREADS = 1
DYNAMIC = 1
ifeq ($(SLIM),)
HAVE_SDL_IMAGE = 1
@@ -24,19 +50,32 @@ ifeq ($(SLIM),)
HAVE_FFMPEG = 1
endif
libsnes ?= -lsnes
libretro ?= -lretro
LIBS = -lm -lshlwapi
DEFINES = -I. -DHAVE_CONFIGFILE
LDFLAGS = -L. -static-libgcc -s
LDCXXFLAGS = -static-libstdc++
LIBS = -lm
DEFINES = -I. -DHAVE_CONFIGFILE -DHAVE_SDL -DHAVE_SCREENSHOTS -DHAVE_BSV_MOVIE -DPACKAGE_VERSION=\"0.9.7\"
LDFLAGS = -L. -static-libgcc
ifeq ($(TDM_GCC),)
LDCXXFLAGS += -static-libstdc++
endif
ifeq ($(HAVE_SDL), 1)
OBJ += gfx/sdl.o gfx/gl.o input/sdl.o audio/sdl.o fifo_buffer.o
LIBS += -lSDL -lopengl32
OBJ += gfx/sdl_gfx.o gfx/gl.o gfx/math/matrix.o gfx/fonts/freetype.o gfx/context/sdl_ctx.o input/sdl_input.o audio/sdl_audio.o fifo_buffer.o
LIBS += -lSDL
DEFINES += -ISDL -DHAVE_SDL
endif
ifeq ($(HAVE_THREADS), 1)
OBJ += autosave.o thread.o
DEFINES += -DHAVE_THREADS
endif
ifeq ($(HAVE_OPENGL), 1)
DEFINES += -DHAVE_OPENGL
LIBS += -lopengl32
endif
ifeq ($(HAVE_SDL_IMAGE), 1)
LIBS += -lSDL_image
DEFINES += -DHAVE_SDL_IMAGE
@@ -67,7 +106,7 @@ ifeq ($(HAVE_RSOUND), 1)
endif
ifeq ($(HAVE_XML), 1)
OBJ += gfx/shader_glsl.o gfx/image.o gfx/snes_state.o sha256.o cheats.o
OBJ += gfx/shader_glsl.o gfx/image.o gfx/state_tracker.o cheats.o
DEFINES += -Ilibxml2 -DHAVE_XML
LIBS += -lxml2 -liconv
endif
@@ -76,14 +115,19 @@ ifeq ($(HAVE_DYLIB), 1)
DEFINES += -DHAVE_DYLIB
endif
ifeq ($(HAVE_STDIN_CMD), 1)
DEFINES += -DHAVE_COMMAND -DHAVE_STDIN_CMD
OBJ += command.o
endif
ifeq ($(HAVE_NETPLAY), 1)
DEFINES += -DHAVE_NETPLAY
DEFINES += -DHAVE_NETPLAY -DHAVE_NETWORK_CMD
OBJ += netplay.o
LIBS += -lws2_32
endif
ifeq ($(HAVE_FREETYPE), 1)
OBJ += gfx/fonts.o
OBJ += gfx/fonts/fonts.o
DEFINES += -DHAVE_FREETYPE -Ifreetype2
LIBS += -lfreetype -lz
endif
@@ -91,7 +135,7 @@ endif
ifeq ($(DYNAMIC), 1)
DEFINES += -DHAVE_DYNAMIC
else
LIBS += $(libsnes)
LIBS += $(libretro)
endif
ifeq ($(HAVE_FBO), 1)
@@ -99,7 +143,7 @@ ifeq ($(HAVE_FBO), 1)
endif
ifeq ($(HAVE_DYLIB), 1)
OBJ += gfx/ext.o audio/ext.o
OBJ += gfx/ext_gfx.o audio/ext_audio.o
endif
ifeq ($(HAVE_PYTHON), 1)
@@ -117,15 +161,37 @@ endif
ifeq ($(HAVE_FFMPEG), 1)
LIBS += -lavformat -lavcodec -lavutil -lswscale -lws2_32 -lz
DEFINES += -DHAVE_FFMPEG -Iffmpeg
DEFINES += -DHAVE_FFMPEG_ALLOC_CONTEXT3
DEFINES += -DHAVE_FFMPEG_AVCODEC_OPEN2
DEFINES += -DHAVE_FFMPEG_AVIO_OPEN
DEFINES += -DHAVE_FFMPEG_AVFORMAT_WRITE_HEADER
DEFINES += -DHAVE_FFMPEG_AVFORMAT_NEW_STREAM
OBJ += record/ffemu.o
endif
ifneq ($(V),1)
ifeq ($(HAVE_SINC), 1)
OBJ += audio/sinc.o
else
OBJ += audio/hermite.o
endif
ifneq ($(V), 1)
Q := @
endif
CFLAGS += -Wall -O3 -std=gnu99 -I.
CXXFLAGS += -Wall -O3 -pedantic -I.
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
CFLAGS += -O3
LDCXXFLAGS += -s
endif
CFLAGS += -Wall -Wno-unused-result -I.
ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else
CFLAGS += -std=gnu99
endif
all: $(TARGET) $(JTARGET)
@@ -137,40 +203,47 @@ $(TARGET): $(OBJ)
$(Q)$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
@$(if $(Q), $(shell echo echo CC $<),)
%.o: %.cpp
$(Q)$(CXX) $(CXXFLAGS) $(DEFINES) -c -o $@ $<
@$(if $(Q), $(shell echo echo CXX $<),)
$(JTARGET): $(JOBJ)
ifeq ($(CXX_BUILD), 1)
$(Q)$(CXX) -o $@ $(JOBJ) -lSDL $(LDFLAGS)
else
$(Q)$(CC) -o $@ $(JOBJ) -lSDL $(LDFLAGS)
endif
@$(if $(Q), $(shell echo echo LD $@),)
clean:
rm -f *.o
rm -f audio/*.o
rm -f audio/xaudio-c/*.o
rm -f compat/*.o
rm -f conf/*.o
rm -f gfx/*.o
rm -f gfx/context/*.o
rm -f gfx/fonts/*.o
rm -f gfx/py_state/*.o
rm -f record/*.o
rm -f input/*.o
rm -f $(TARGET)
rm -f ssnes-joyconfig.exe
rm -f retroarch-joyconfig.exe
rm -f tools/*.o
dist_x86: all
zip -r ssnes-win32-0.8.zip $(TARGET) $(JTARGET) ssnes.cfg snes.dll SDL.dll
zip -r retroarch-win32-0.9.7.zip $(TARGET) $(JTARGET) retroarch.cfg SDL.dll
dist_x86_64: all
zip -r ssnes-win64-0.8.zip $(TARGET) $(JTARGET) ssnes.cfg snes.dll SDL.dll
zip -r retroarch-win64-0.9.7.zip $(TARGET) $(JTARGET) retroarch.cfg SDL.dll
libs_x86:
wget https://github.com/downloads/Themaister/SSNES/SSNES-win32-libs.zip --no-check-certificate
unzip SSNES-win32-libs.zip
wget https://github.com/downloads/Themaister/RetroArch/RetroArch-win32-libs.zip --no-check-certificate
unzip RetroArch-win32-libs.zip
wget https://github.com/downloads/Themaister/RetroArch/RetroArch-win32-headers.zip --no-check-certificate
unzip RetroArch-win32-headers.zip
libs_x86_64:
wget https://github.com/downloads/Themaister/SSNES/SSNES-win64-libs.zip --no-check-certificate
unzip SSNES-win64-libs.zip
wget https://github.com/downloads/Themaister/RetroArch/RetroArch-win64-libs.zip --no-check-certificate
unzip RetroArch-win64-libs.zip
wget https://github.com/downloads/Themaister/RetroArch/RetroArch-win64-headers.zip --no-check-certificate
unzip RetroArch-win64-headers.zip
.PHONY: all install uninstall clean dist_x86 dist_x86_64 libs_x86 libs_x86_64
+54
View File
@@ -0,0 +1,54 @@
###
##
# Makefile for RetroArch libxenon.
##
###
##
DEBUG = 0
CC = xenon-gcc
CXX = xenon-g++
OBJCOPY = xenon-objcopy
STRIP = xenon-strip
PPU_TARGET := retroarch-libxenon.elf
PPU_TARGET_ADJUSTED := retroarch-libxenon.elf32
LDDIRS = -L. -L$(DEVKITXENON)/usr/lib -L$(DEVKITXENON)/xenon/lib/32
INCDIRS = -I. -I$(DEVKITXENON)/usr/include
OBJ = fifo_buffer.o retroarch.o driver.o file.o file_path.o settings.o message.o rewind.o movie.o gfx/gfx_common.o patch.o compat/compat.o screenshot.o audio/hermite.o dynamic.o audio/utils.o conf/config_file.o 360/frontend-xenon/main.o 360/xenon360_audio.o 360/xenon360_input.o 360/xenon360_video.o thread/xenon_sdl_threads.o
LIBS = -lretro_xenon360 -lxenon -lm -lc
DEFINES = -std=gnu99 -DHAVE_CONFIGFILE=1 -DPACKAGE_VERSION=\"0.9.7\" -DRARCH_CONSOLE -DHAVE_GETOPT_LONG=1 -Dmain=rarch_main
DEFINES += -maltivec -mhard-float -m32 -mpowerpc64 -mcpu=cell -mtune=cell -fno-pic -g -Wall -DXENON $(INCDIRS)
DEFINES += -u read -u _start -u exc_base
ifeq ($(DEBUG), 1)
OPTIMIZE_LV := -O0 -g
else
OPTIMIZE_LV := -O3
endif
all: $(PPU_TARGET_ADJUSTED)
CFLAGS := $(OPTIMIZE_LV) $(DEFINES)
LDFLAGS := -m32 -n -T $(DEVKITXENON)/app.lds
$(PPU_TARGET_ADJUSTED): $(PPU_TARGET)
$(OBJCOPY) -O elf32-powerpc --adjust-vma 0x80000000 $< $@
$(STRIP) $@
$(PPU_TARGET): $(OBJ)
$(CXX) -o $@ $(OBJ) $(LDFLAGS) $(LDDIRS) $(LIBS)
%.o: %.c config.h
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -f $(PPU_TARGET)
rm -f $(OBJ)
.PHONY: clean
+105 -47
View File
@@ -1,32 +1,57 @@
# SSNES
# RetroArch
SSNES is a simple frontend for the libsnes library.
RetroArch (formerly known as SSNES) is a simple frontend for the libretro API. An API that attempts to generalize
a retro gaming system, such as SNES, NES, GameBoy, Arcade machines, etc.
Emulator/game cores are instantiated as loadable plugins.
# libsnes
# libretro
libsnes is the emulator core of [bSNES](http://www.byuu.org), the most accurate SNES emulator to date, in library form. The libsnes API has been implemented by SNES9x as well, allowing multiple different cores to be used for an emulator that supports libsnes.
This enables the possibility of custom front-ends for the emulator.
libretro is an API that exposes the core of a retro gaming system.
A frontend for libretro handles video output, audio output and input.
A libretro core written in portable C or C++ can run seamlessly on many platforms.
[libretro API header](https://github.com/Themaister/RetroArch/blob/master/libretro.h)
# Binaries
Latest Windows binaries are currently hosted on my [homepage](http://themaister.net/retroarch.html).
# Related projects
- GUI frontend for PC: [RetroArch-Phoenix](https://github.com/Themaister/RetroArch-Phoenix)
- Cg/HLSL shaders: [common-shaders](https://github.com/twinaphex/common-shaders)
- More Cg shaders: [Emulator-Shader-Pack](https://github.com/Themaister/Emulator-Shader-Pack)
- Helper scripts to build libretro implementations: [libretro-super](https://github.com/libretro/libretro-super)
# Philosophy
SSNES attempts to be very small and lean, while still having all the useful core features expected from an emulator.
It is used through command-line.
RetroArch attempts to be very small and lean,
while still having all the useful core features expected from an emulator.
It is used through command-line. It is also designed to be portable.
# Dependencies
# Platforms
SSNES requires these libraries to build:
RetroArch has been ported to the following platforms outside PC:
- PlayStation3
- Xbox 360 (Libxenon/XeXDK)
- Wii (Libogc)
- Raspberry Pi
# Dependencies (PC)
RetroArch requires these libraries to build:
- [libsnes](http://byuu.org/bsnes/)
- SDL
SSNES can utilize these libraries if enabled:
RetroArch can utilize these libraries if enabled:
- nvidia-cg-toolkit
- libxml2 (bSNES XML shaders)
- libfreetype2 (TTF font rendering on screen)
- libsamplerate
SSNES needs at least one of these audio driver libraries:
RetroArch needs at least one of these audio driver libraries:
- ALSA
- OSS
@@ -38,60 +63,93 @@ SSNES needs at least one of these audio driver libraries:
- XAudio2 (Win32)
- PulseAudio
# Building libsnes
To run properly, RetroArch requires a libretro implementation present, however, as it's typically loaded
dynamically, it's not required at build time.
- Download bSNES source (link over).
- Add -fPIC to flags in Makefile.
- <tt>$ make library profile=performance</tt> (accuracy, compatibility are the other profiles. compatibility is a great choice for decent PCs. :D)
- <tt># make prefix=/usr library-install</tt>
- <tt># cp snes/libsnes/libsnes.hpp /usr/include/</tt>
- ?!?!
- Profit!
# Dependencies (Console ports)
Console ports have their own dependencies, but generally do not require
anything other than what the respective SDKs provide.
# Configuring
The default configuration is defined in config.def.h.
These can later be tweaked by using the ssnes config file.
A sample configuration file is installed to /etc/ssnes.cfg.
These can later be tweaked by using a config file.
A sample configuration file is installed to /etc/retroarch.cfg.
This is the system-wide config file.
Each user should create a config file in $XDG\_CONFIG\_HOME/ssnes/ssnes.cfg.
Each user should create a config file in $XDG\_CONFIG\_HOME/retroarch/retroarch.cfg.
The users only need to configure a certain option if the desired value deviates from the value defined in config.def.h.
To configure joypads, start up <tt>jstest /dev/input/js0</tt> to determine which joypad buttons (and axis) to use. It is also possible to use the <tt>ssnes-joyconfig</tt> tool as well for simple configuration.
To configure joypads, use the <tt>retroarch-joyconfig</tt> tool.
It is also possible to configure joypads using the RetroArch-Phoenix GUI frontend.
# Compiling and installing
<b>Linux/Unix</b><br/>
As most packages, SSNES is built using the standard <tt>./configure && make && make install</tt>
Do note that the build system is not autotools based, but resembles it.
<b>PC</b><br/>
Instructions for compiling on PC can be found in the [wiki](https://github.com/Themaister/RetroArch/wiki).
Notable options for ./configure:
--with-libsnes=: Normally libsnes is located with -lsnes, however, this can be overridden.
--enable-dynamic: Do not link to libsnes at compile time, but load libsnes dynamically at runtime. libsnes\_path in config file defines which library to load. Useful for development.
<b>PlayStation3</b><br/>
Do note that these two options are mutually exclusive.
RetroArch PS3 needs to be compiled in the following order:
<b>Win32</b><br/>
It is possible with MinGW to compile for Windows in either msys or Linux/Unix based systems. Do note that Windows build uses a static Makefile since configuration scripts create more harm than good on this platform. Libraries, headers, etc, needed to compile and run SSNES can be fetched with a Makefile target.
1) Compile RetroArch Salamander
In Linux/Unix:<br/>
<tt>make -f Makefile.win32 libs</tt></br>
<tt>make -f Makefile.win32 CC=i486-mingw32-gcc CXX=i486-mingw32-g++</tt></br>
<tt>make -f Makefile.ps3.salamander</tt>
In MSYS:
<tt>mingw32-make -f Makefile.win32 libs</tt>. # You will need to have wget in your patch for this command! MSYS should provide this.</br>
<tt>mingw32-make -f Makefile.win32</tt>
2) Compile the RGL video driver
<tt>make -f Makefile.ps3.rgl</tt>
3) Compile RetroArch as a library
# Filters, bSNES XML shaders and Cg shader support
<tt>make -f Makefile.ps3.retroarch</tt>
This is not strictly not necessary for an emulator, but it can be enabled if desired.
For best performance, Cg shaders or bSNES XML shaders are recommended as they do not eat up valuable CPU time (assuming your GPU can handle the shaders).
Cg shaders and XML shaders (GLSL) are compiled at run-time.
All shaders share a common interface to pass some essential arguments such as texture size and viewport size. (Common for pixel art scalers)
Some Cg shaders are included in hqflt/cg/ and could be used as an example.
bSNES XML shaders can be found on various places on the net. Best place to start looking are the bSNES forums.
4) Finally, compile RetroArch packed together with the GUI:
The Cg shaders closely resemble the GLSL shaders found in bSNES shader pack, so porting them is trivial if desired.
<tt>make -f Makefile.ps3</tt>
<b>PlayStation3 - Creating a PKG installable file</b><br />
You can add 'pkg' as a parameter in order to make a PKG file - for example:
<tt>make -f Makefile.ps3 pkg</tt>
This creates an NPDRM package. This can be installed on debug PS3s.
To make a non-NPDRM package that can be installed on a jailbroken/CFW PS3 (such as PSGroove or PS3 CFWs and other 3.55 CFW derivatives), do:
<tt>make -f Makefile.ps3 pkg-signed</tt>
If you're using Kmeaw 3.55 firmware, the package needs to be signed:
<tt>make -f Makefile.ps3 pkg-signed-cfw</tt>
NOTE: A pre-existing libretro library needs to be present in the root directory in order to link RetroArch PS3. This file needs to be called <em><b>'libretro_ps3.a'</b></em>.
<b> Xbox 360 (XeXDK)</b><br />
You will need Microsoft Visual Studio 2010 installed (or higher) in order to compile RetroArch 360.
The solution file can be found at the following location:
<tt>msvc-360/RetroArch-360.sln</tt>
NOTE: A pre-existing libretro library needs to be present in the 'msvc-360/RetroArch-360/Release' directory in order to link RetroArch 360. This file needs to be
called <em><b>'libretro_xdk360.lib'</b></em>.
<b> Xbox 360 (Libxenon)</b><br />
You will need to have the libxenon libraries and a working Devkit Xenon toolchain installed in order to compile RetroArch 360 Libxenon.
<tt>make -f Makefile.xenon</tt>
NOTE: A pre-existing libretro library needs to be present in the root directory in order to link RetroArch 360 Libxenon. This file needs to be called <em><b>'libretro_xenon360.a'</b></em>.
<b> Wii</b><br >
You will need to have the libogc libraries and a working Devkit PPC toolchain installed in order to compile RetroArch Wii.
<tt>make -f Makefile.wii</tt>
NOTE: A pre-existing libretro library needs to be present in the root directory in order to link RetroArch Wii. This file needs to be called <em><b>'libretro_wii.a'</b></em>.
-39
View File
@@ -1,39 +0,0 @@
===================================================
SSNES - Simple Super Nintendo Emulator System
===================================================
SSNES is a simplistic emulator frontend designed for use without any GUI.
It is used from command line, but is designed to play well with eventual GUI frontends,
as the configuration file format is very simple.
This allows for great portability and focus on what matters in a frontend, such as video and audio performance.
Its core libraries for video and input are OpenGL and SDL, with many different audio library supported.
On first use you should get accustomed to how SSNES works.
- SSNES emphasizes simplicity. It has no graphical user interface, and is primarily used through the command line.
It is recommended for experienced users.
It is possible though to create a GUI which can use SSNES.
- SSNES isn't dependant on any emulator core, such as bSNES, SNES9x or ZSNES.
SSNES only talks to the libsnes interface,
which was created initially by bSNES but it has an implementation available for SNES9x as well.
- SSNES is configured through a config file. In the Win32 distribution, there should be a ssnes.cfg included.
This config file serves as a base for your custom configuration file.
It is recommended that you go through the config file and alter any configurations you might use.
This is a good way to learn about the features SSNES have.
It is possible to pick which configuration file you want with the '-c' flag.
E.g.: ssnes.exe -c myconfig.cfg rom.sfc.
- When unsure which command line flags to use, use the command: ssnes.exe --help.
- When something is not working as expected, try using verbose logging first to see what is happening:
E.g.: ssnes.exe -v romfile.sfc
If something is not working, and you want to file a bug report,
please include console output with the -v flag turned on.
- SSNES does not support zipped roms directly. It only supports roms with extentions .sfc and .smc.
However, SSNES can read roms from stdin,
which makes it possible to create wrapper programs that can support every zip format under the sun.
This can also be performed by a GUI frontend.
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
+33
View File
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>RetroArch</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5
+26
View File
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.retroarch"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".main"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="@string/app_name" android:name="rombrowser" />
<activity android:label="@string/app_name" android:name="com.retroarch.fileio.FileChooser" />
</application>
<!-- Tell the system this app requires OpenGL ES 2.0. -->
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
</manifest>
+12
View File
@@ -0,0 +1,12 @@
RARCH_VERSION = "0.9.7"
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := retroarch
LOCAL_SRC_FILES = ../../console/griffin/griffin.c ../../console/rzlib/rzlib.c
LOCAL_CFLAGS = -DANDROID -DHAVE_DYNAMIC -DHAVE_ZLIB -DINLINE=inline -DRARCH_CONSOLE -DLSB_FIRST -D__LIBRETRO__ -DHAVE_CONFIGFILE=1 -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -std=gnu99
include $(BUILD_SHARED_LIBRARY)
+20
View File
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
+14
View File
@@ -0,0 +1,14 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-15
Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

+24
View File
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content" android:orientation="vertical" android:layout_width="wrap_content">
<Button android:id="@+id/fileChooserSubmit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="Submit">
</Button>
<ListView android:id="@+id/fileChooserView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:scrollbars="vertical"
android:fastScrollEnabled="true"
android:padding="2dp"
android:layout_above="@id/fileChooserSubmit">
</ListView>
</RelativeLayout>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content" android:orientation="vertical" android:layout_width="fill_parent">
<TextView android:text="@+id/TextView01"
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textStyle="bold"
android:layout_marginTop="5dip"
android:layout_marginLeft="5dip">
</TextView>
<TextView android:text="@+id/TextView02"
android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip">
</TextView>
</LinearLayout>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello world from RomBrowser" />
</LinearLayout>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@+id/main" android:showAsAction="ifRoom|withText" android:title="Main" android:icon="@drawable/ic_action_main"></item>
<item android:id="@+id/open" android:showAsAction="collapseActionView" android:title="Open ROM" android:icon="@drawable/ic_action_open"></item>
<item android:id="@+id/close" android:showAsAction="collapseActionView" android:title="Close ROM" android:icon="@drawable/ic_action_close"></item>
<item android:id="@+id/load" android:showAsAction="collapseActionView" android:title="Load" android:icon="@drawable/ic_action_load"></item>
<item android:id="@+id/save" android:showAsAction="collapseActionView" android:title="Save" android:icon="@drawable/ic_action_save"></item>
<item android:id="@+id/history" android:showAsAction="collapseActionView" android:title="History" android:icon="@drawable/ic_action_history"></item>
<item android:id="@+id/settings" android:showAsAction="collapseActionView" android:title="Settings" android:icon="@drawable/ic_action_settings"></item>
</menu>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, MainActivity!</string>
<string name="app_name">RetroArch</string>
</resources>
@@ -0,0 +1,130 @@
package com.retroarch;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioTrack;
public class audio_android
{
private static AudioTrack _track;
private static int _minSamples;
private static float _volume = AudioTrack.getMaxVolume();
private static int _rate;
private static int _bits;
private static int _channels;
private audio_android()
{
}
public static void pause()
{
if (_track != null && _track.getPlayState() != AudioTrack.PLAYSTATE_PAUSED)
_track.pause();
}
public static void resume()
{
if (_track != null && _track.getPlayState() != AudioTrack.PLAYSTATE_PLAYING)
_track.play();
}
public int getMinSamples()
{
return _minSamples;
}
public static int write(short[] data, int size)
{
int retVal = 0;
if (_track == null)
return retVal;
retVal = _track.write(data, 0, size);
return retVal;
}
void set_volume(int vol)
{
final float min = AudioTrack.getMinVolume();
final float max = AudioTrack.getMaxVolume();
_volume = min + (max - min) * vol / 100;
if (_track != null)
_track.setStereoVolume(_volume, _volume);
}
public static void free()
{
if (_track != null)
{
_track.pause();
_track.release();
_track = null;
}
}
public static boolean init(int rate, int bits, int channels)
{
_track = null;
_rate = rate;
_bits = bits;
_channels = channels;
// generate format
int format = (_bits == 16
? AudioFormat.ENCODING_PCM_16BIT
: AudioFormat.ENCODING_PCM_8BIT);
// determine channel config
int channelConfig = (_channels == 2
? AudioFormat.CHANNEL_OUT_STEREO
: AudioFormat.CHANNEL_OUT_MONO);
int bufferSize = AudioTrack.getMinBufferSize(_rate, channelConfig,
format);
_minSamples = bufferSize;
try
{
_track = new AudioTrack(
AudioManager.STREAM_MUSIC,
_rate,
channelConfig,
format,
bufferSize,
AudioTrack.MODE_STREAM);
if (_track.getState() == AudioTrack.STATE_UNINITIALIZED)
_track = null;
}
catch (IllegalArgumentException e)
{
_track = null;
return false;
}
// set max volume
_track.setStereoVolume(_volume, _volume);
return true;
}
public static int getMaxBufferSize()
{
return _minSamples;
}
}
@@ -0,0 +1,118 @@
package com.retroarch.fileio;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import com.retroarch.R;
import com.retroarch.R.layout;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.SectionIndexer;
import android.widget.TextView;
public class FileArrayAdapter extends ArrayAdapter<Option> implements SectionIndexer
{
HashMap<String, Integer> alphaIndexer;
String[] sections;
private Context c;
private int id;
private List<Option>items;
public FileArrayAdapter(Context context, int textViewResourceId,
List<Option> objects) {
super(context, textViewResourceId, objects);
c = context;
id = textViewResourceId;
items = objects;
initAlphaIndexer();
}
private void initAlphaIndexer()
{
alphaIndexer = new HashMap<String, Integer>();
int size = items.size();
for (int x = 0; x < size; x++) {
Option o = items.get(x);
String ch = o.getName().substring(0, 1);
ch = ch.toUpperCase();
if (!alphaIndexer.containsKey(ch))
{
alphaIndexer.put(ch, x);
}
}
Set<String> sectionLetters = alphaIndexer.keySet();
ArrayList<String> sectionList = new ArrayList<String>(sectionLetters);
Collections.sort(sectionList);
sections = new String[sectionList.size()];
sectionList.toArray(sections);
}
public Option getItem(int i)
{
return items.get(i);
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (v == null) {
LayoutInflater vi = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(id, null);
}
final Option o = items.get(position);
if (o != null) {
TextView t1 = (TextView) v.findViewById(R.id.TextView01);
TextView t2 = (TextView) v.findViewById(R.id.TextView02);
if(t1!=null)
{
t1.setText(o.getName());
}
if(t2!=null)
{
t2.setText(o.getData());
}
}
return v;
}
public int getPositionForSection(int section)
{
// FIXME
if (section >= sections.length)
{
return 0;
}
return alphaIndexer.get(sections[section]);
}
public int getSectionForPosition(int position)
{
return 1;
}
public Object[] getSections()
{
return sections;
}
}
@@ -0,0 +1,264 @@
package com.retroarch.fileio;
import java.io.File;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Stack;
import com.retroarch.R;
import com.retroarch.main;
import com.retroarch.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;
public class FileChooser extends Activity
{
private static final String LOG_TAG = "FileChooser";
public static final String EXTRA_START_DIR = "StartDir";
public static final String EXTRA_EXTENSIONS = "Extensions";
public static final String EXTRA_TEMP_DIR = "TempDir";
public static final String EXTRA_SELECT_DIR = "SelectDir";
public static final String PAYLOAD_FILENAME = "Filename";
public static final String PAYLOAD_SELECTED_DIR = "DirSelected";
private File currentDir;
private FileArrayAdapter adapter;
private String _startDir;
private String _extensions;
private String _tempDir;
private String _selectDir;
private Stack<String> _dirStack;
private ListView _view;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.file_choose);
_view = (ListView)findViewById(R.id.fileChooserView);
_startDir = getIntent().getStringExtra(EXTRA_START_DIR);
_extensions = getIntent().getStringExtra(EXTRA_EXTENSIONS);
_tempDir = getIntent().getStringExtra(EXTRA_TEMP_DIR);
_selectDir = getIntent().getStringExtra(EXTRA_SELECT_DIR);
// clamp start dir and remove the /
if (_startDir == null)
{
_startDir = Environment.getExternalStorageDirectory().getAbsolutePath();
}
else if (_startDir.endsWith("/"))
{
_startDir = _startDir.substring(0, _startDir.length() - 1);
}
// push the start dir onto the stack
_dirStack = new Stack<String>();
_dirStack.push(_startDir);
// clamp extentions to all or extra specified
if (_extensions == null)
{
_extensions = ".*";
}
// clamp temp dir
if (_tempDir == null)
{
_tempDir = Environment.getExternalStorageDirectory().getAbsolutePath();
}
// regular filesystem dir
currentDir = new File(_startDir);
fill(currentDir);
// are we dir selecting?, add button
if (_selectDir == null)
{
// hide button
Button b = (Button)findViewById(R.id.fileChooserSubmit);
b.setVisibility(Button.GONE);
}
else
{
// add on click submit
Button b = (Button)findViewById(R.id.fileChooserSubmit);
b.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
String s = _dirStack.peek();
Toast.makeText(FileChooser.this, "Selected: " + s, Toast.LENGTH_SHORT).show();
Intent intent=new Intent();
intent.putExtra(FileChooser.PAYLOAD_SELECTED_DIR, s);
setResult(RESULT_OK, intent);
finish();
}
});
}
}
public boolean onCreateOptionsMenu(Menu menu)
{
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main_menu, menu);
return true;
}
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case R.id.main:
this.finish();
break;
case R.id.open:
//TODO: Return to root dir
break;
default:
Toast.makeText(this, "MenuItem " + item.getTitle() + " selected.", Toast.LENGTH_SHORT).show();
break;
}
return true;
}
private void fill(File f)
{
File[]dirs = f.listFiles();
this.setTitle("Path: "+f.getAbsolutePath());
List<Option>dir = new ArrayList<Option>();
List<Option>fls = new ArrayList<Option>();
try
{
for(File ff: dirs)
{
if(ff.isDirectory())
{
dir.add(new Option(ff.getName() + "/","Folder",ff.getAbsolutePath()));
}
else
{
int dotIndex = ff.getName().lastIndexOf('.');
if (dotIndex > 0)
{
String extension = ff.getName().substring(dotIndex+1).toLowerCase();
if (extension.matches(_extensions))
{
fls.add(new Option(ff.getName(),"File Size: "+ff.length(),ff.getAbsolutePath()));
}
}
}
}
}
catch(Exception e)
{
}
Collections.sort(dir);
Collections.sort(fls);
dir.addAll(fls);
dir.add(0,new Option("..", "Parent Directory", f.getParent()));
adapter = new FileArrayAdapter(FileChooser.this,R.layout.file_view,dir);
_view.setAdapter(adapter);
_view.setOnItemClickListener(new OnItemClickListener()
{
public void onItemClick(AdapterView<?> arg0, View arg1,
int arg2, long arg3)
{
int pos = arg0.getPositionForView(arg1);
Option o = adapter.getItem(pos);
if(o.getData().equalsIgnoreCase("folder")||o.getData().equalsIgnoreCase("parent directory"))
{
if (o.getPath() != null)
{
currentDir = new File(o.getPath());
fill(currentDir);
_dirStack.push(o.getPath());
}
}
else
{
String path = o.getPath();
int dotIndex = path.lastIndexOf('.');
String ext = null;
if (dotIndex >= 0)
{
ext = path.substring(dotIndex+1).toLowerCase();
}
onFileClick(o);
}
}
});
}
private void onFileClick(Option o)
{
Toast.makeText(this, "Loading: "+o.getName() + "...", Toast.LENGTH_SHORT).show();
Intent intent=new Intent();
intent.putExtra(FileChooser.PAYLOAD_FILENAME, o.getPath());
setResult(RESULT_OK, intent);
finish();
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK)
{
if (_dirStack.size() > 1)
{
_dirStack.pop();
File file = new File(_dirStack.peek());
currentDir = file;
fill(currentDir);
}
else
{
Intent intent = new Intent();
setResult(RESULT_OK, intent);
finish();
}
return true;
}
return super.onKeyDown(keyCode, event);
}
}
@@ -0,0 +1,34 @@
package com.retroarch.fileio;
public class Option implements Comparable<Option>
{
private String name;
private String data;
private String path;
public Option(String n,String d,String p)
{
name = n;
data = d;
path = p;
}
public String getName()
{
return name;
}
public String getData()
{
return data;
}
public String getPath()
{
return path;
}
public int compareTo(Option o) {
if(this.name != null)
return this.name.toLowerCase().compareTo(o.getName().toLowerCase());
else
throw new IllegalArgumentException();
}
}
+82
View File
@@ -0,0 +1,82 @@
package com.retroarch;
import com.retroarch.R;
import com.retroarch.R.id;
import com.retroarch.R.menu;
import com.retroarch.fileio.FileChooser;
import android.app.Activity;
import android.content.Intent;
import android.content.Context;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
public class main extends Activity
{
private GLSurfaceView ctx_gl;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
this.setTitle("RetroArch | Main");
ctx_gl = new rgl_context(this);
setContentView(ctx_gl);
}
public boolean onCreateOptionsMenu(Menu menu)
{
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main_menu, menu);
return true;
}
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case R.id.main:
this.finish();
break;
case R.id.open:
Toast.makeText(this, "Select a ROM image from the Filebrowser.", Toast.LENGTH_SHORT).show();
Intent myIntent = new Intent(main.this, FileChooser.class);
main.this.startActivity(myIntent);
break;
default:
Toast.makeText(this, "MenuItem " + item.getTitle() + " selected.", Toast.LENGTH_SHORT).show();
break;
}
return true;
}
@Override
protected void onPause()
{
super.onPause();
ctx_gl.onPause();
}
@Override
protected void onResume()
{
super.onResume();
ctx_gl.onResume();
}
}
class rgl_context extends GLSurfaceView
{
public rgl_context(Context context)
{
super(context);
setEGLContextClientVersion(2);
setRenderer(new rgl());
}
}
+95
View File
@@ -0,0 +1,95 @@
package com.retroarch;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.ByteOrder;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;
public class rgl implements GLSurfaceView.Renderer
{
private int cprg;
private int v_position_handle;
private FloatBuffer triangle_vbo;
private void triangles_init()
{
float triangle_coords[] = {
// X, Y, Z
-0.5f, -0.25f, 0,
0.5f, -0.25f, 0,
0.0f, 0.559016994f, 0
};
ByteBuffer vbb = ByteBuffer.allocateDirect(triangle_coords.length * 4);
vbb.order(ByteOrder.nativeOrder());
triangle_vbo = vbb.asFloatBuffer();
triangle_vbo.put(triangle_coords);
triangle_vbo.position(0);
}
private void shader_init()
{
final String vprg =
"attribute vec4 vPosition; \n" +
"void main(){ \n" +
" gl_Position = vPosition; \n" +
"} \n";
final String fprg =
"precision mediump float; \n" +
"void main(){ \n" +
" gl_FragColor = vec4 (0.63671875, 0.76953125, 0.22265625, 1.0); \n" +
"} \n";
int vertex_shader, fragment_shader;
vertex_shader = GLES20.glCreateShader(GLES20.GL_VERTEX_SHADER);
GLES20.glShaderSource(vertex_shader, vprg);
GLES20.glCompileShader(vertex_shader);
fragment_shader = GLES20.glCreateShader(GLES20.GL_FRAGMENT_SHADER);
GLES20.glShaderSource(fragment_shader, fprg);
GLES20.glCompileShader(fragment_shader);
cprg = GLES20.glCreateProgram();
GLES20.glAttachShader(cprg, vertex_shader);
GLES20.glAttachShader(cprg, fragment_shader);
GLES20.glLinkProgram(cprg);
//get handle to the vertex shader's vPosition member
v_position_handle = GLES20.glGetAttribLocation(cprg, "vPosition");
; }
public void onSurfaceCreated(GL10 unused, EGLConfig config)
{
//background color
GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
triangles_init();
shader_init();
}
public void onDrawFrame(GL10 unused)
{
GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
GLES20.glUseProgram(cprg);
// Triangle
GLES20.glVertexAttribPointer(v_position_handle, 3, GLES20.GL_FLOAT, false, 12, triangle_vbo);
GLES20.glEnableVertexAttribArray(v_position_handle);
GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 3);
}
public void onSurfaceChanged(GL10 unused, int width, int height)
{
GLES20.glViewport(0, 0, width, height);
}
}
Loaded 100 of 395 files, more files were not shown because too many files have changed in this diff. Show more