mirror of
https://github.com/brain-hackers/version-txt-dumper.git
synced 2025-07-05 11:04:19 +09:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d4f13bc628 | ||
![]() |
d87c204701 | ||
![]() |
841a4d41fa |
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
VERSION_MAJOR=1
|
VERSION_MAJOR=1
|
||||||
VERSION_MINOR=0
|
VERSION_MINOR=1
|
||||||
VERSION_PATCH=0
|
VERSION_PATCH=0
|
||||||
|
|
||||||
PREFIX?=/opt/cegcc
|
PREFIX?=/opt/cegcc
|
||||||
|
6
main.cpp
6
main.cpp
@ -53,9 +53,13 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPTSTR lpCmd, int nShow)
|
|||||||
file = CreateFile(L"\\Storage Card\\version.txt", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
file = CreateFile(L"\\Storage Card\\version.txt", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
if (file == INVALID_HANDLE_VALUE)
|
if (file == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
MessageBox(NULL, L"Failed to create \\Storage Card\\version.txt", L"(X_X) < OMG", MB_ICONWARNING);
|
file = CreateFile(L"\\NAND3\\version.txt", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
|
if (file == INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
|
MessageBox(NULL, L"Failed to create \\Storage Card\\version.txt and \\NAND3\\version.txt", L"(X_X) < OMG", MB_ICONWARNING);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!WriteFile(file, buf, fileSize, NULL, NULL))
|
if (!WriteFile(file, buf, fileSize, NULL, NULL))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user