Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87c9733e09 | ||
|
|
e3fc6ebe52 | ||
|
|
41314fa873 | ||
|
|
04cadcf953 | ||
|
|
daf43609ca | ||
|
|
42e84f9f4a |
@@ -24,11 +24,3 @@ Simple rules for publishing code:
|
||||
Make sure your code compiles before making a pull request! and make sure that it's readable
|
||||
|
||||
Remember ALL your changes will be licensed under GNU General Public License V3.0.
|
||||
|
||||
## Compiling the project:
|
||||
> [!NOTE]
|
||||
> The project is currently in a non-compilable state (as of 3/3/2026)
|
||||
|
||||
1. Install CMake, Make, GCC (>= 15.0), G++ (>= 15.0).
|
||||
2. Create a new directory named build after cloning the repository.
|
||||
3. Enter the new directory and run `cmake ..` and then run `make`
|
||||
|
||||
@@ -49,6 +49,7 @@ void GameMode::render(float a)
|
||||
|
||||
bool GameMode::useItem(shared_ptr<Player> player, Level *level, shared_ptr<ItemInstance> item, bool bTestUseOnly)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void GameMode::initPlayer(shared_ptr<Player> player)
|
||||
|
||||
@@ -102,7 +102,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
|
||||
{
|
||||
FileEntry *sourceFe = sourceSave->createFile( sourcePlayerDatPath );
|
||||
FileEntry *targetFe = targetSave->createFile( targetPlayerDatPath );
|
||||
printf("Processing player dat file %s\n", playerFiles->at(fileIdx)->data.filename);
|
||||
wprintf(L"Processing player dat file %ls\n", playerFiles->at(fileIdx)->data.filename);
|
||||
ProcessSimpleFile(sourceSave, sourceFe, targetSave, targetFe);
|
||||
|
||||
targetFe->data.lastModifiedTime = sourceFe->data.lastModifiedTime;
|
||||
|
||||
@@ -86,7 +86,7 @@ void FileOutputStream::write(unsigned int b)
|
||||
);
|
||||
#else // LINUX
|
||||
int fileDescriptor = (int)(intptr_t)(m_fileHandle);
|
||||
ssize_t numberOfBytesWritten = ::write(fileDescriptor, NULL, 1);
|
||||
ssize_t numberOfBytesWritten = ::write(fileDescriptor, &value, 1);
|
||||
int result = static_cast<int>(numberOfBytesWritten);
|
||||
#endif // _WIN32
|
||||
|
||||
@@ -115,7 +115,7 @@ void FileOutputStream::write(byteArray b)
|
||||
);
|
||||
#else // Linux
|
||||
int fileDescriptor = (int)(intptr_t)(m_fileHandle);
|
||||
ssize_t numberOfBytesWritten = ::write(fileDescriptor, NULL, 1);
|
||||
ssize_t numberOfBytesWritten = ::write(fileDescriptor, static_cast<const void*>(b.data), b.length);
|
||||
int result = static_cast<int>(numberOfBytesWritten);
|
||||
#endif // _WIN32
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ void ChunkStorageProfilerDecorator::tick()
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
#ifdef __PSVITA__
|
||||
sprintf(buf,"Average load time: %f (%lld)",0.000001 * (double) timeSpentLoading / (double) loadCount, loadCount);
|
||||
#elif defined(__linux__)
|
||||
sprintf(buf,"Average load time: %f (%lld)",0.000001 * (double) timeSpentLoading / (double) loadCount, (long long)loadCount);
|
||||
#else
|
||||
sprintf(buf,"Average load time: %f (%I64d)",0.000001 * (double) timeSpentLoading / (double) loadCount, loadCount);
|
||||
#endif
|
||||
@@ -55,6 +57,8 @@ void ChunkStorageProfilerDecorator::tick()
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
#ifdef __PSVITA__
|
||||
sprintf(buf,"Average save time: %f (%lld)",0.000001 * (double) timeSpentSaving / (double) loadCount, loadCount);
|
||||
#elif defined(__linux__)
|
||||
sprintf(buf,"Average save time: %f (%lld)",0.000001 * (double) timeSpentSaving / (double) loadCount, (long long)loadCount);
|
||||
#else
|
||||
sprintf(buf,"Average save time: %f (%I64d)",0.000001 * (double) timeSpentSaving / (double) loadCount, loadCount);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user