is presently its sole maintainer,
You can support him:
Recap and plan for today
Review of related code
Getting rid of hardcoded file names
Listing file names on Windows (FindFirstFile)
The lpFileName parameter can include wildcards
Listing the rest of the files (FindNextFile)
Guarding against invalid handle values
Invoking FindClose on the file handle returned by FindFirstFile
Structuring the file loop to be more uniform
(aside) Textbook horrible API design
Problem: we don't know how many files there are until we have looped over them
Revising the file API. There's no need for random access of files. Sequential access is enough and is cleaner to implement
Preiterating the files
Allocating space for the win32 opaque data segment of the platform_file_group struct
Discussion on extensible platform non-specific types. This type of "space saving for dynamic unions" can be implemented using C++ inheritance, but we will encounter other types that can't
Freeing the platform_file_group
Second iteration to load the files, now that we know how many of them there are
Jumping to the definitions of windows system calls using Visual Studio
Choosing the ANSI versions of system calls and structures
Getting the file names
Testing the code so far
Parameterizing the file extension
Write your own string system if you work with strings frequently
Possible extensions to the file API
ttbjm Q: Does the save file need to use this system now?
kirroyale27 Q: How do you feel now that you finished this?
d7samurai Q: Socapex insists that the STL *is* the language and that you therefore should use "strings" from it
marumoto Q: Could you elaborate on the union style inheritance you mentioned? In the same vein, will entities end up being unions?
quatzequatel Q: What about updating the asset file with more files? How do you manage a ton assets as in knowing what is where?
insofaras Q: Will the ASCII version of FindFirstFile work even if the full file path has unicode in it?
cubercaleb Q: Will pre-rendered fonts be included into the HHA file?
dannypauhd Q: Is this the new Call of Duty?
pseudonym73 Q: Does the requirement to call FileClose() make more sense when you consider that FindFirstChangeNotification/FindNextChangeNotification/RefreshDirectory are part of the same API?
tthomasedison Q: How are you doing the audio?
figurato Q: You wrote code for "Lineage Forever"? Any comment on writing it on the game/any other Lineage games? Lineage 1 pretty much sparked my entire career as a computer scientist/programmer
soysaucethekid Q: What's after the asset file loading?
captainduh Q: Why do you use #defines for things like PLATFORM_GET_ALL_FILE_OF_TYPE_BEGIN instead of just normal function call?
henco7 Q: I have not followed the latest episodes due to I actually watching it from the beginning. But is there any like crypting in savefiles regarding cheating, etc?
infiniteloop8 Q: Are there any books on game programming or general programming that you would recommend?
mmisu Q: What do you think about "Game Engine Architecture" by J. Gregory ? The books looks solid
quatzequatel Q: (Referring back to Q at 00:59:26) I meant the artist is making files how do you track what you added and what you didn't. What assets have changed. and need updated kind of thing?
reinfrenchments Q: Is the graphics double-buffered?
When are you going to stream your hands coding? Would be neat. You talked about doing it some time
qwnepra Q: (Referring back to Q at 01:10:03) Well just because people would know how to beat the encryption, doesn't mean it would be a bad thing to teach in this series
bassxzero Q: Have you read "The Tao of Programming?"
insofaras Q: Does it tear with Aero disabled?