Exemple #1
0
@@ -285,7 +285,7 @@ static int ini_callback(const char *sect
 
 void load_options() {
     use_default_options();
-    ini_load("SDLPoP.ini", ini_callback);
+    ini_load(PKGSRC_DATA_PATH "SDLPoP.ini", ini_callback);
     if (!options.use_fixes_and_enhancements) disable_fixes_and_enhancements();
 }
Exemple #2
0
void load_options() {
    use_default_options();
    ini_load("SDLPoP.ini", global_ini_callback); // global configuration

    // load mod-specific INI configuration
    if (use_custom_levelset) {
        char filename[256];
        snprintf(filename, sizeof(filename), "mods/%s/%s", levelset_name, "mod.ini");
        ini_load(filename, mod_ini_callback);
    }

    if (!options.use_fixes_and_enhancements) disable_fixes_and_enhancements();
}
Exemple #3
0
void show_use_fixes_and_enhancements_prompt() {
    if (options.use_fixes_and_enhancements != 2) return;
    draw_rect(&screen_rect, 0);
    show_text(&screen_rect, 0, 0,
		"\n"
		"Enable bug fixes and\n"
		"gameplay enhancements?\n"
		"\n"
		"NOTE:\n"
		"This option disables some game quirks.\n"
		"Certain tricks will no longer work by default.\n"
		"\n"
		"\n"
		"Y:  enhanced behavior \n"
		"N:  original behavior    \n"
		"\n"
		"Y / N ?\n"
		"\n"
		"\n"
		"\n"
		"You can fine-tune your preferences\n"
		"and/or bypass this screen by editing the file\n"
		"'SDLPoP.ini'"
	);
    while (options.use_fixes_and_enhancements == 2 ) {
		idle();
        switch (key_test_quit()) {
            case SDL_SCANCODE_Y:
                options.use_fixes_and_enhancements = 1;
                printf("Enabling game fixes and enhancements.\n");
                break;
            case SDL_SCANCODE_N:
                options.use_fixes_and_enhancements = 0;
                printf("Disabling game fixes and enhancements.\n");
                break;
		}
    }
    if (!options.use_fixes_and_enhancements) disable_fixes_and_enhancements();
}
Exemple #4
0
void load_options() {
    use_default_options();
    ini_load("SDLPoP.ini", ini_callback);
    if (!options.use_fixes_and_enhancements) disable_fixes_and_enhancements();
}