Merge pull request #2008 from vgturtle127/beautification-2
Beautification part 2
This commit is contained in:
commit
b034ba1522
|
@ -1 +1 @@
|
|||
console.log("Hello world! See apidoc.htm for documentation.");
|
||||
console.log("Hello world! See apidoc.htm for documentation.");
|
||||
|
|
|
@ -123,7 +123,7 @@ typedef std::map<std::string, std::string> Files;
|
|||
|
||||
void RegionSection(CFile &TargetIniFile, Files &files, const char * Region, const char * RegionCode)
|
||||
{
|
||||
stdstr_f LineData = stdstr_f("//--------------- %s Region Cheat Codes ---------------\r\n\r\n", Region);
|
||||
stdstr_f LineData = stdstr_f("//--------------- %s Region cheat codes ---------------\r\n\r\n", Region);
|
||||
TargetIniFile.Write(LineData.c_str(), (int)LineData.length());
|
||||
|
||||
bool first = true;
|
||||
|
@ -226,9 +226,9 @@ void JoinFile(const char * Directory, const char * Target)
|
|||
}
|
||||
if (strcmp(CPath(Target).GetExtension().c_str(), "cht") == 0)
|
||||
{
|
||||
stdstr_f LineData = stdstr_f("// Project64 Official Cheats Database\r\n");
|
||||
stdstr_f LineData = stdstr_f("// Project64 official cheat database\r\n");
|
||||
TargetIniFile.Write(LineData.c_str(), (int)LineData.length());
|
||||
LineData = stdstr_f("// Not for use with PJ64 v1.6 or previous\r\n");
|
||||
LineData = stdstr_f("// Not for use with Project64 v1.6 or lower\r\n");
|
||||
TargetIniFile.Write(LineData.c_str(), (int)LineData.length());
|
||||
LineData = stdstr_f("// ----------------------------------------------------\r\n\r\n");
|
||||
TargetIniFile.Write(LineData.c_str(), (int)LineData.length());
|
||||
|
|
|
@ -185,7 +185,7 @@ void RegisterSetting(short SettingID, SETTING_DATA_TYPE Type, const char * Name,
|
|||
case Data_DWORD_RDB_Setting:
|
||||
if (DefaultDW != 0)
|
||||
{
|
||||
//create default
|
||||
// Create default
|
||||
DefaultID = SettingID + g_PluginSettings.DefaultStartRange;
|
||||
g_PluginSettings.RegisterSetting(g_PluginSettings.handle, DefaultID, g_PluginSettings.NoDefault,
|
||||
Data_DWORD, SettingType_ConstValue, g_PluginSettingName, "", DefaultDW);
|
||||
|
@ -200,7 +200,7 @@ void RegisterSetting(short SettingID, SETTING_DATA_TYPE Type, const char * Name,
|
|||
case Data_String_RDB_Setting:
|
||||
if (DefaultStr != NULL && strlen(DefaultStr) > 0)
|
||||
{
|
||||
//create default
|
||||
// Create default
|
||||
DefaultID = SettingID + g_PluginSettings.DefaultStartRange;
|
||||
g_PluginSettings.RegisterSetting(g_PluginSettings.handle, DefaultID, g_PluginSettings.NoDefault,
|
||||
Data_String, SettingType_ConstString, g_PluginSettingName, DefaultStr, 0);
|
||||
|
@ -384,4 +384,4 @@ void CNotification::BreakPoint(const char * FileName, int LineNumber)
|
|||
{
|
||||
g_PluginNotification.BreakPoint(FileName, LineNumber);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Get Plugin Settings, take a setting id
|
||||
// Get plugin settings, take a setting ID
|
||||
unsigned int GetSetting(short SettingID);
|
||||
const char * GetSettingSz(short SettingID, char * Buffer, int BufferLen);
|
||||
|
||||
// Get System Settings, take a setting returned by FindSystemSettingId
|
||||
// Get system settings, take a setting returned by FindSystemSettingId
|
||||
unsigned int GetSystemSetting(short SettingID);
|
||||
const char * GetSystemSettingSz(short SettingID, char * Buffer, int BufferLen);
|
||||
|
||||
|
@ -19,20 +19,20 @@ extern "C" {
|
|||
void SetSystemSetting(short SettingID, unsigned int Value);
|
||||
void SetSystemSettingSz(short SettingID, const char * Value);
|
||||
|
||||
// enum's
|
||||
// Enums
|
||||
enum SETTING_DATA_TYPE
|
||||
{
|
||||
Data_DWORD_General = 0, // A unsigned int setting used anywhere
|
||||
Data_DWORD_General = 0, // An unsigned int setting used anywhere
|
||||
Data_String_General = 1, // A string setting used anywhere
|
||||
Data_DWORD_Game = 2, // A unsigned int associated with the current game
|
||||
Data_DWORD_Game = 2, // An unsigned int associated with the current game
|
||||
Data_String_Game = 3, // A string associated with the current game
|
||||
Data_DWORD_RDB = 4, // A unsigned int associated with the current game in the rom database
|
||||
Data_String_RDB = 5, // A string associated with the current game in the rom database
|
||||
Data_DWORD_RDB_Setting = 6, // A unsigned int read from the rom database, with config file
|
||||
Data_String_RDB_Setting = 7, // A string read from the rom database, with config file
|
||||
Data_DWORD_RDB = 4, // An unsigned int associated with the current game in the ROM database
|
||||
Data_String_RDB = 5, // A string associated with the current game in the ROM database
|
||||
Data_DWORD_RDB_Setting = 6, // An unsigned int read from the ROM database, with config file
|
||||
Data_String_RDB_Setting = 7, // A string read from the ROM database, with config file
|
||||
};
|
||||
|
||||
// set other information about different settings
|
||||
// Set other information about various settings
|
||||
int SettingsInitilized(void);
|
||||
void SetModuleName(const char * Name);
|
||||
void RegisterSetting(short SettingID, SETTING_DATA_TYPE Type, const char * Name, const char * Category,
|
||||
|
@ -41,7 +41,7 @@ extern "C" {
|
|||
short FindSystemSettingId(const char * Name);
|
||||
void FlushSettings(void);
|
||||
|
||||
// this must be implemented to be notified when a setting is used but has not been set up
|
||||
// This must be implemented to be notified when a setting is used but has not been set up
|
||||
void UseUnregisteredSetting(int SettingID);
|
||||
|
||||
typedef void(*SettingChangedFunc)(void *);
|
||||
|
|
|
@ -326,7 +326,7 @@ int main (int argc, char *argv[])
|
|||
if (PDNameSections.size() > 0)
|
||||
{
|
||||
fprintf(fp,"//================ PD ================\n");
|
||||
fprintf(fp,"//\n// ROMs below are PD/Intros/Emus and other Non Commercial\n\n");
|
||||
fprintf(fp,"//\n// ROMs below are public domain/homebrew and other non-commercial releases\n\n");
|
||||
for (strmap::iterator itr = PDNameSections.begin(); itr != PDNameSections.end(); itr++)
|
||||
{
|
||||
std::string GoodName = itr->first;
|
||||
|
|
|
@ -70,4 +70,4 @@ int main()
|
|||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue