We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f06152 commit 19786a4Copy full SHA for 19786a4
1 file changed
src/main.cpp
@@ -144,9 +144,11 @@ void writeHexDumpToFile()
144
145
void searchForText()
146
{
147
+ File_Remove("\\fls0\\FoundAddresses.txt");
148
+
149
unsigned int sr = save_sr();
150
write_sr(0x100000F0 | sr);
- int fd = File_Open("\\fls0\\FoundAddresses.txt", FILE_OPEN_CREATE | FILE_OPEN_WRITE);
151
+ int fd = File_Open("\\fls0\\FoundAddresses.txt", FILE_OPEN_CREATE | FILE_OPEN_WRITE | FILE_OPEN_APPEND);
152
153
char buffer[33];
154
char addressTextBuffer[32];
@@ -182,7 +184,10 @@ void searchForText()
182
184
}
183
185
186
start = (uintptr_t)0x00000000;
- end = (uintptr_t)0x00000000;
187
+ end = (uintptr_t)0x00000000;
188
189
+ File_Close(fd);
190
+ write_sr(sr);
191
192
193
int main() {
0 commit comments