Skip to content

Commit 9b225dc

Browse files
committed
Update F1DP version string to 1.3
1 parent a6b01f1 commit 9b225dc

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ UsefulPrivate/
2121
###############################
2222

2323

24-
# Took from: https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
24+
# Taken from: https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
2525

2626
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
2727
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

F1DPPatcher/.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

F1DPPatcher/Utils/EXEPatchUtils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ uint8_t readMem8EXE(void *addr, bool corrct_addr) {
9393

9494

9595
void hookCallEXE(uint32_t addr, funcptr_t (func_ptr)) {
96-
// Pointer correction below on `func`.
96+
// Pointer correction below on `func_ptr`.
9797
writeMem32EXE(addr + 1, (uint32_t) getRealBlockAddrCode(func_ptr) - ((uint32_t) getRealEXEAddr(addr) + 5), true);
9898
}
9999

@@ -117,5 +117,6 @@ void *getRealEXEAddr(volatile uint32_t addr) {
117117
if (addr >= DATA_SEC_EXE_IDA_BEGIN_ADDR) {
118118
return (void *) (addr + SN_DATA_SEC_EXE_ADDR);
119119
}
120+
120121
return (void *) (addr + SN_CODE_SEC_EXE_ADDR);
121122
}

F1DPPatcher/Utils/General.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,17 @@
2121
#define F1DPPATCHER_GENERAL_H
2222

2323

24-
2524
// The Microsoft-chosen newline characters: CR LF
2625
#define NL "\r\n"
2726

2827
// Maximum path length on DOS, including the NULL character
2928
#define MAX_DOS_PATH_LEN 80
3029

31-
// 5 chars exactly or change the initial strings with the dashes (so that it's the same length as the Loader)
32-
#define F1DP_VER_STR "1.2.3"
30+
// 3 chars exactly or change the initial strings with the dashes (so that it's the same length as the Loader)
31+
#define F1DP_VER_STR "1.3"
3332

3433
// Generic function pointer type, like void* for data pointers (universal, including for casting (use no parameters in that case))
3534
#define funcptr_t(sym_name) void (*sym_name)(void)
3635

3736

38-
3937
#endif //F1DPPATCHER_GENERAL_H

F1DPPatcher/main.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static char version_str[] = "F1DP v"F1DP_VER_STR" by Edw590 ";
5959
bool realMain(void);
6060
static void patchVerStr(void);
6161
bool applyPatches(void);
62-
void fixPSPNotSaving(void);
6362

6463
__declspec(naked) int main(void) {
6564
// The special number declaration below is for the loader to look for it and start the execution right there.
@@ -112,7 +111,7 @@ bool realMain(void) {
112111

113112
GET_BD_SYM(struct FileInfo, f1dpatch_ini_info_G).is_main_ini = true;
114113

115-
printlnStr(" /--- F1DP v"F1DP_VER_STR" Patcher ---\\");
114+
printlnStr(" /---- F1DP v"F1DP_VER_STR" Patcher ----\\");
116115

117116
// Open the main INI file
118117
if (!readFile(F1DP_MAIN_INI, &f1dpatch_ini_info_G)) {
@@ -158,12 +157,12 @@ bool realMain(void) {
158157

159158
free(GET_BD_SYM(struct FileInfo, f1dpatch_ini_info_G).contents);
160159

161-
printlnStr(" \\--- F1DP v"F1DP_VER_STR" Patcher ---/");
160+
printlnStr(" \\---- F1DP v"F1DP_VER_STR" Patcher ----/");
162161

163162
return ret_var;
164163
}
165164

166-
__declspec(naked) static void getverstr_hook(void) {
165+
static __declspec(naked) void getverstr_hook(void) {
167166
__asm {
168167
push edx
169168
push edi

0 commit comments

Comments
 (0)