mirror of
https://github.com/lindbergh-loader/lindbergh-loader.git
synced 2026-10-03 04:07:56 +03:00
Add in libkswapapi to the build
This commit is contained in:
@@ -7,7 +7,7 @@ BUILD = build
|
||||
|
||||
OBJS := $(patsubst %.c,%.o,$(wildcard src/lindbergh/*.c))
|
||||
|
||||
all: lindbergh.so libsegaapi.so
|
||||
all: lindbergh.so libsegaapi.so libkswapapi.so
|
||||
|
||||
lindbergh.so: $(OBJS)
|
||||
mkdir -p $(BUILD)
|
||||
@@ -21,5 +21,8 @@ libsegaapi.so: src/libsegaapi/segaapi.o
|
||||
$(LIBSEGA_LD) $(LIBSEGA_LDFLAGS) src/libsegaapi/segaapi.o -L/usr/lib/i386-linux-gnu -lalut -fPIC -shared -o $(BUILD)/libsegaapi.so
|
||||
rm -f src/libsegaapi/*.o
|
||||
|
||||
libkswapapi.so: src/libkswapapi/libkswapapi.o
|
||||
$(LIBSEGA_LD) $(LIBSEGA_LDFLAGS) src/libkswapapi/libkswapapi.o -L/usr/lib/i386-linux-gnu -fPIC -shared -o $(BUILD)/libkswapapi.so
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#include "libkswapapi.h"
|
||||
|
||||
/**
|
||||
* Hook for the only function provided by kswapapi.so
|
||||
* @param p No idea this gets discarded
|
||||
*/
|
||||
void kswap_collect(void *p)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef __LIBKSWAP_H
|
||||
#define __LIBKSWAP_H
|
||||
|
||||
/**
|
||||
* Hook for the only function provided by kswapapi.so
|
||||
* @param p No idea this gets discarded
|
||||
*/
|
||||
void kswap_collect(void *p);
|
||||
|
||||
#endif /* __LIBKSWAP_H */
|
||||
Binary file not shown.
@@ -107,6 +107,9 @@ int initPatch()
|
||||
setVariable(0x0a737f1c, 2); // amSysDataDebugLevel
|
||||
setVariable(0x0a737f20, 2); // bcLibDebugLevel
|
||||
setVariable(0x0a737f24, 0x0FFFFFFF); // s_logMask
|
||||
detourFunction(0x08320178, amDongleInit);
|
||||
detourFunction(0x08320459, amDongleIsAvailable);
|
||||
detourFunction(0x083203c0, amDongleUpdate);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user