Commit graph

202 commits

Author SHA1 Message Date
Milan Nikolic
758fb9f4a1 add vsync option 2015-04-27 12:49:26 +02:00
Milan Nikolic
33eda07d38 update ui files 2015-04-27 12:38:09 +02:00
Milan Nikolic
7c426c8101 always add glwidget to stack 2015-01-02 19:06:33 +01:00
Milan Nikolic
2a06f5088f handle custom resolutions 2015-01-02 19:01:33 +01:00
Milan Nikolic
aea77ba059 toggle vidext without restart 2015-01-02 18:00:52 +01:00
Milan Nikolic
f1188bfe52 encode devicename 2015-01-02 15:58:56 +01:00
Milan Nikolic
a84d0a9301 Merge pull request #39 from conchurnavid/semi-auto
save input-sdl device name to allow correct auto-configuration
2015-01-01 13:15:10 +01:00
Conchúr Navid
7b58bfa213 save input-sdl device name to allow correct auto-configuration 2015-01-01 10:53:26 +01:00
Milan Nikolic
63147f26da force ini file on windows and osx 2014-12-26 13:18:20 +01:00
Milan Nikolic
e6c9ed2d11 build exe with python3/pyqt5 2014-12-21 16:27:11 +01:00
Milan Nikolic
3e23697c43 fix file_path 2014-12-21 02:56:40 +01:00
Milan Nikolic
2c21ef546a handle better paths change 2014-12-21 00:39:33 +01:00
Milan Nikolic
3bd350d52f clean __pycache__ dir 2014-12-20 23:04:46 +01:00
Milan Nikolic
1c6983a611 remove main() function per recommendation http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html#object-destruction-on-exit 2014-12-20 22:37:56 +01:00
Milan Nikolic
e59fcb73a3 xlib XinitThreads is no longer needed 2014-12-20 22:32:18 +01:00
Milan Nikolic
dd737d1c01 sip.setapi is no longer needed 2014-12-20 22:20:14 +01:00
Milan Nikolic
2c1ec337a5 don't import all from PyQt5 2014-12-20 22:03:03 +01:00
Milan Nikolic
95198d2a68 remove unused import 2014-12-20 21:57:09 +01:00
Milan Nikolic
20ecf25ca0 move romreader to separate file 2014-12-20 21:12:29 +01:00
Milan Nikolic
8c393c96aa truncate label in statusbar 2014-12-20 20:52:21 +01:00
Milan Nikolic
6eca049a0f adapt QFileDialog for Qt5 2014-12-20 19:55:35 +01:00
Fayvel Victor
0751e24e35 pyqt5
Signed-off-by: Milan Nikolic <gen2brain@gmail.com>
2014-12-20 19:52:40 +01:00
Milan Nikolic
6ea9a7a8e7 select first row after refreshing romlist 2014-12-20 18:12:05 +01:00
Milan Nikolic
84fce23417 Python 3 support 2014-12-20 18:04:01 +01:00
Milan Nikolic
2657f1494e Merge pull request #33 from fayvel/py3
Decode/Encode bytes buffer from/to core as UTF-8
2014-11-10 00:09:44 +01:00
Fayvel Victor
cf922d0ff8 Decode/Encode bytes buffer from/to core as UTF-8 2014-11-09 23:55:41 +01:00
Fayvel Victor
9320ef8f4c Don't mix spaces and tabs for indentation 2014-11-09 23:50:49 +01:00
Milan Nikolic
a58760e751 replace deprecated syntax 2014-10-19 15:19:30 +02:00
Milan Nikolic
3081927c26 remove unused function 2014-10-19 14:59:23 +02:00
Milan Nikolic
4a97af3360 fix inconsistent use of tabs and spaces in indentation 2014-10-19 14:47:39 +02:00
Milan Nikolic
435933bc9e Merge pull request #30 from fayvel/short_url
Fix short url to my contributions
2014-10-18 22:01:40 +02:00
Fayvel Victor
d8bb7a7389 Fix short url to my contributions 2014-10-18 21:42:40 +02:00
Milan Nikolic
d393bd9e17 prepare release 2014-10-18 20:14:54 +02:00
Milan Nikolic
43568aeccf add author 2014-10-18 20:13:30 +02:00
Milan Nikolic
e795dc2f63 delete initial QLabel text 2014-10-18 20:12:32 +02:00
Milan Nikolic
af7af86664 Merge pull request #23 from fayvel/config_int
Avoid loading invalid numeric config entries
2014-10-13 22:11:22 +02:00
Milan Nikolic
537419e816 Merge pull request #28 from fayvel/joystick_detect
Add special SDL2 joystick event system for input config
2014-10-13 15:53:07 +02:00
Milan Nikolic
f1932eb247 Merge pull request #26 from fayvel/array_cleanup
Remove unused numeric and numarray references
2014-10-13 15:51:44 +02:00
Milan Nikolic
a29805e828 Merge pull request #24 from fayvel/non_native_romlist
Add support for non-native rom files in romlist
2014-10-13 15:47:44 +02:00
Fayvel Victor
aa5713ba7e Add special SDL2 joystick event system for input config
The SDL1.2 system cannot cope with Dualshock and similar controllers. After
pressing the config button, an random axis will be configured. This happens
because the state of the device (with 27 or more axis) changes all the time.

This problem can be avoided for these devices under Linux when SDL2 is used
together with its event system. These random movements doesn't anymore with
these joysticks and the hid_sony driver in SDL2+SDL_PollEvent.

This seem to be fixable with SDL1.2 because it just cannot handle newer
devices. Also the SDL_PollEvent doesn't work with the ctypes version of PySDL
for unknown reasons. Thus the implementation cannot be shared between SDL1.2
and SDL2.

To use the new input detection, m64py must be started with the sdl2 option and
a version of mupen64plus compiled against SDL2.

 $ m64py --sdl2
2014-10-12 13:53:57 +02:00
Fayvel Victor
1ac5f2a8d8 Remove unused numeric and numarray references 2014-10-12 01:43:52 +02:00
Fayvel Victor
b678a45758 Add support for non-native rom files in romlist
mupen64plus supports roms in native (*.z64), byteswapped (*.v64) and
wordswapped (*.n64) rom files. Unfortunately, m64py only supported native rom
files because it didn't swap the also swapped big endian crc values back to the
unswapped host ordered crc values for non-native rom files. This caused crc
checks to fail for these rom files.
2014-10-11 22:39:21 +02:00
Fayvel Victor
dfd8fb022d Validate size config values to avoid crashes 2014-10-11 21:47:16 +02:00
Fayvel Victor
b1f9ca3f00 Fix recent_files config option automatically
The recent_files list has to be an python object serialization. This object
must be an array of strings. Python will save unicode strings and Python3
strings. Not following this rule make m64py crash either while loading the
recent_files information or when adding a new entry when a file is opened.
2014-10-11 21:47:16 +02:00
Fayvel Victor
4e1bc6b79d Avoid loading invalid numeric config entries
Don't try to load old style "true"/"false" config entries as integer. This
would cause an value error and crash m64py. Instead try to load the content
only when it is valid and otherwise use the m64py default value.
2014-10-11 20:45:30 +02:00
Milan Nikolic
783f5c6ab0 Merge pull request #22 from fayvel/sdl_array
Don't try numarray and Numeric to get uint* data types
2014-10-09 22:15:53 +02:00
Fayvel Victor
be49758e4d Don't try numarray and Numeric to get uint* data types
Neither numarray nor Numeric provide the types uint8, uint16 or uint32. Trying
to use them without having numpy installed will cause an AttributeError.
2014-10-09 19:31:38 +02:00
Milan Nikolic
d665235e87 Merge pull request #20 from fayvel/deprecated
Replace deprecated functionality with new ones
2014-10-05 21:22:03 +02:00
Fayvel Victor
6238121c0d Replace old-style signal/slots with new-style signal/slots 2014-10-05 14:38:14 +02:00
Fayvel Victor
7019530147 Compare binary ROM data using binary datatype without string conversion 2014-10-05 12:47:59 +02:00