Reformat to something more readable for me :3
This commit is contained in:
+4
-4
@@ -26,7 +26,7 @@ uint8_t *utils_read_file_alloc( const char *path, size_t *fileLength )
|
||||
{
|
||||
FILE *f = fopen( path, "rb" );
|
||||
|
||||
if( !f ) return NULL;
|
||||
if( !f ) return nullptr;
|
||||
|
||||
fseek( f, 0, SEEK_END );
|
||||
size_t length = (size_t)ftell( f );
|
||||
@@ -73,7 +73,7 @@ int main( void )
|
||||
|
||||
uint8_t *rom = utils_read_file_alloc( "baserom.us.z64", &romSize );
|
||||
|
||||
if( rom == NULL )
|
||||
if( rom == nullptr )
|
||||
{
|
||||
printf("\nFailed to read ROM file \"baserom.us.z64\"\n\n");
|
||||
return 1;
|
||||
@@ -94,7 +94,7 @@ int main( void )
|
||||
free( rom );
|
||||
|
||||
RenderState renderState;
|
||||
renderState.mario.index = NULL;
|
||||
renderState.mario.index = nullptr;
|
||||
vec3 cameraPos = { 0, 0, 0 };
|
||||
float cameraRot = 0.0f;
|
||||
|
||||
@@ -144,7 +144,7 @@ int main( void )
|
||||
|
||||
if (!controller) // keyboard
|
||||
{
|
||||
const Uint8* state = SDL_GetKeyboardState(NULL);
|
||||
const Uint8* state = SDL_GetKeyboardState(nullptr);
|
||||
|
||||
float dir;
|
||||
float spd = 0;
|
||||
|
||||
Reference in New Issue
Block a user