mirror of
https://github.com/PCSX2/pcsx2-sourceforge.git
synced 2026-02-04 03:11:18 +01:00
joysticks should be opend as readonly
This commit is contained in:
@@ -680,7 +680,7 @@ bool JoystickInfo::Init(const char* pdevid, int id, bool bStartThread)
|
||||
assert(pdevid != NULL );
|
||||
Destroy();
|
||||
|
||||
if ((js_fd = open(pdevid, O_RDWR)) < 0) {
|
||||
if ((js_fd = open(pdevid, O_RDONLY)) < 0) {
|
||||
js_fd = -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -9,12 +9,15 @@ echo ----------------
|
||||
if [ $# -gt 0 ] && [ $1 = "all" ]
|
||||
then
|
||||
|
||||
#if possible
|
||||
make distclean
|
||||
|
||||
aclocal
|
||||
automake -a
|
||||
autoconf
|
||||
chmod +x configure
|
||||
./configure --prefix=${PCSX2PLUGINS}
|
||||
make clean
|
||||
make distclean
|
||||
make install
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user