All 70 California state parks that were at one time scheduled to be shut down on Sunday due to the budget crisis will remain open, at least temporarily and in some cases at reduced staffing levels, it was announced Thursday.

The decision affects four parks in San Diego and Imperial counties.

Palomar State Park had already been saved earlier this year when an agreement was signed with a nonprofit group that guarantees to make up the difference between operating costs and revenues for the next three years through private donations.

Still in jeopardy were the San Pasqual Battlefield State Historic Park off state Route 78, and the much larger Salton Sea and Picacho state recreation areas in Imperial County.

None will close at the end of this week as had been threatened for months, and all have nonprofit groups trying to raise funds to keep the parks open indefinitely.

Of the 70 parks once on the closure list, 40 have signed agreements in place and 25 have agreements in the works.

Ruth Coleman, director of the state parks system, said during a teleconference Thursday morning that the parks crisis has been difficult, but she was buoyed by the response from people who are passionate about the sites.

“We have re-energized the people who love parks, and they are stepping up and contributing to parks in all sorts of ways,” Coleman said.

Thursday’s announcement was made after Gov. Jerry Brown partially vetoed a state parks funding bill, allocating $10 million in new funds rather than the $41 million the Legislature had approved.

Still, the $10 million, in combination with ongoing efforts by nonprofits, private donors and local government and other entities to take on responsibility for threatened parks, is enough to stave off closure for the time being.

“We’re going to leave all of them open for now,” said state parks spokesman Clark Blanchard. “We’ve bought ourselves some time.”

The five state parks on the initial closure list that so far do not have any agreements at least in the works, and are therefore at the greatest risk of eventually being closed, are Benicia State Recreation Area near Vallejo, California Mining and Mineral Museum east of Merced, Gray Whale Cove State Beach near Half Moon Bay, Providence Mountains State Recreation Area in the Mojave Desert, and Zmudowski State Beach near Watsonville.