Commit graph

179 commits

Author SHA1 Message Date
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
Fayvel Victor
6255821d71 Build Python3 compatible resource modules 2014-10-05 12:35:47 +02:00
Fayvel Victor
d58c10e402 Use uic from imports to allow resource loading with Python3 2014-10-05 12:33:46 +02:00
Fayvel Victor
d3193c513a Replace deprecated slot "activated" with "triggered" 2014-10-05 12:07:50 +02:00
Fayvel Victor
df9b39ca8e Replace deprecated pyqtSignature with modern @pyqtSlot decorator 2014-10-05 11:51:49 +02:00
Milan Nikolic
0027e46087 Merge pull request #16 from fayvel/deprecated
Replace some deprecated python constructs + Fix PyQt elements search paths
2014-09-22 16:17:35 +02:00
Milan Nikolic
0706e30608 Merge pull request #7 from fayvel/mime
Don't installing conflicting mime type for *.*64
2014-09-20 18:51:21 +02:00
Milan Nikolic
a652ac90f4 Merge pull request #14 from V1del/negativeQspinBox
Allow QSpinBox lower than 0
2014-09-20 18:50:20 +02:00
V1del
d68c52211b Allow QSpinBox lower than 0
As of the config option merge in glide64mk2 we have to be able to set sub zero values as well in order to support the new game ini default
2014-09-19 22:13:09 +02:00
Fayvel Victor
cde1b7155a Don't installing conflicting mime type for *.*64
There is already an mime type for Nintendo64 roms called application/x-n64-rom.
This one has to be extended instead of installing a conflicting type. Otherwise
only one of the desktop entries for mupen64plus-ui-console or m64py works and
not both.
2014-09-06 09:58:07 +02:00
Fayvel Victor
a9d5c7bec8 Fix path to ui element modules for python without local search path 2014-09-05 23:38:54 +02:00
Fayvel Victor
7cb8a8234c Replace deprecated except syntax which makes current python parser fail 2014-09-05 22:58:06 +02:00
Milan Nikolic
5ba1e04f64 Merge pull request #13 from fayvel/failure_plugin
Handle missing dependencies of plugins during plugin_load_try
2014-09-05 21:15:41 +02:00
Fayvel Victor
a6a922e043 Handle missing dependencies of plugins during plugin_load_try
Instead of letting m64py crash with an OSError when the loading of a plugin
fails, it should better create an error message but continue working with the
remaining plugins.

An error can for example look like this:

Frontend: ERROR: failed to load plugin /usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-video-glide64mk2.so: libpng15.so.15: cannot open shared object file: No such file or directory
2014-09-05 21:08:18 +02:00
Milan Nikolic
4c9b82da7a Merge pull request #6 from fayvel/debian
dist/debian modifications for better debian package building
2014-09-04 16:19:22 +02:00
Fayvel Victor
1638da3a5e compress debian package only with gzip for older systems 2014-09-04 11:29:23 +02:00
Fayvel Victor
aac6a64f2b use unversioned python dependency to allow very old debian systems 2014-09-04 11:23:50 +02:00
Fayvel Victor
e3e8eb656c add correct path to icon for debian menu 2014-09-04 11:20:32 +02:00
Fayvel Victor
0c21fcc162 don't check for game volti in debian menu 2014-09-04 11:19:55 +02:00
Fayvel Victor
cd65c5b8e7 automatically generate debian version number from m64py source 2014-09-04 11:19:17 +02:00
Fayvel Victor
db28e1640e install upstream changelog with debian package 2014-09-04 10:58:40 +02:00
Fayvel Victor
c9b4fd8134 skip building of unused debian diff tarballs to avoid source tarball dependency 2014-09-04 10:58:39 +02:00
Fayvel Victor
5962f6f133 clean debian build before and after the build for pristine builds 2014-09-04 10:58:19 +02:00
Fayvel Victor
24ed63a011 cleanup debian build path before trying to build again 2014-09-04 10:17:51 +02:00