mirror of
https://github.com/lindbergh-loader/lindbergh-loader.git
synced 2026-10-13 17:48:27 +03:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be78a23a31 | ||
|
|
8942c510ec | ||
|
|
685d569a08 |
@@ -305,6 +305,15 @@ int open(const char *pathname, int flags, ...)
|
||||
|
||||
int (*_open)(const char *pathname, int flags, ...) = dlsym(RTLD_NEXT, "open");
|
||||
|
||||
// Attempt to open /dev/dsp and /dev/dsp1
|
||||
if (strcmp(pathname, "/dev/dsp") == 0) {
|
||||
int dspFileDescriptor = _open("/dev/dsp", flags, mode);
|
||||
if(dspFileDescriptor != -1)
|
||||
return dspFileDescriptor;
|
||||
|
||||
return _open("/dev/dsp1", flags, mode);
|
||||
}
|
||||
|
||||
if (strcmp(pathname, "/dev/lbb") == 0)
|
||||
{
|
||||
hooks[BASEBOARD] = _open(HOOK_FILE_NAME, flags, mode);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "securityboard.h"
|
||||
#include "log.h"
|
||||
#include "config.h"
|
||||
|
||||
#define SECURITY_BOARD_FRONT_PANEL 0x38
|
||||
#define SECURITY_BOARD_FRONT_PANEL_NON_ROOT 0x1038
|
||||
@@ -51,8 +52,10 @@ int securityBoardSetDipResolution(int width, int height)
|
||||
setResolutionDips(1, 1, 0);
|
||||
else if (width == 1360 && height == 768)
|
||||
setResolutionDips(1, 1, 1);
|
||||
else
|
||||
log_warn("Resolution not compatible, using 640 x 480\n");
|
||||
else {
|
||||
if(getConfig()->showDebugMessages)
|
||||
log_warn("Resolution not original, setting dips to 640 x 480.\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user